Arduino Tutorials – பாடம் 38 – Use A Buzzer Module Using Raspberry Pi Pico

Raspberry Pi Pico வை பயன்படுத்தி Buzzer (ஒலிப்பான்) ஐ கட்டுபடுத்துவது.

Required Components

  1. Buzzer module-1 no
  2. Raspberry Pi Pico-1 no
  3. Connecting wires-1 set

Circuit

Steps

  1. நாம் பயன்படுத்தும் உபகரணங்கள் சரியாக வேலை செய்கிறதா என்பதை உறுதி செய்து கொள்ளவும்.
  2. Buzzer (ஒலிப்பான்) ஐ Raspberry Pi Pico GP15உடன் இணைக்க வேண்டும்.
  3. Buzzer (ஒலிப்பான்) Ground உடன் Raspberry Pi Pico Ground ஐ இணைக்க வேண்டும்.
  4. Arduino program ஐ சரி பார்க்க வேண்டும்.
  5. மின்சுற்றை சரி பார்க்க வேண்டும்.
  6. Arduino program ஐ ரன் செய்ய வேண்டும்.

Arduino Program

const int buzzer = 8;

void setup( )
{
  pinMode(buzzer, OUTPUT);
}

void loop()
{
  tone(buzzer, 1000);
  delay(1000);
  noTone(buzzer);
  delay(1000);        
}

Leave a Reply

Your email address will not be published. Required fields are marked *