Introduction to Buzzer
In this project we’re going to learn about buzzer and how to make different sounds using it and its connection with Arduino.
Kit: Junkbot Edu kit.
- Arduino Uno
- Connecting wires
- USB cable
Code brick program:
- How to test a speaker or buzzer:
- Connect the positive pin (red wire) of the buzzer to 5v and negative (black) to the GND of Arduino.
- After connecting, a beep sound will be played saying your buzzer is working.
- Controlling buzzer:
- To control buzzer initially connect the signal pin of buzzer to data pin of Arduino.
- Connect the positive (+) to Vin or 5v, negative (-) to Gnd and Signal (S) to pin 9 on Arduino.
- Connect the Arduino to the computer using USB cable.
- Open codebricks, click the events block.
- Click on the control block and connect to it.
- Click on robots block and insert
- This program will give sound from the buzzer which is connected to pin 9 when you click the in codebricks.
- Music Band
- How to control multiple tones using keyboard keys:
- Click on events block and drag and connect of robots block to it.
- Give different controls of keyboard to different tones of buzzer. Plenty of different rone are available.
- So when you use keys on your laptop as same as like you’re using the keys of a piano.
- Establishing Connection:
- Even though you connected Arduino to your computer, it won’t start communicating with codebricks until you connect them manually.
- This is represented in codebricks, with dot to show status.
- Click boards
- Click connect
- The dot will turn from red to green, representing the connection established.
- Now click to make the buzzer on.
- According to different keys used for different tones the buzzer will buzz or sounds.
- With help of this project you can actually create a piano keys on your laptop keyboard and have your own music.
- Lectures 0
- Quizzes 0
- Duration 50 hours
- Skill level All level
- Language English
- Students 0
- Certificate No
- Assessments Self