Powered by Blogger.

Wednesday 18 November 2015

Circuit to control a buzzer using arduino uno

by realfinetime  |  in Buzzer at  11:34

Buzzers are commonly used to produce beep sounds when some keys are pressed. Beep sound will help us to confirm the key press easily. Many ways are there to connect buzzers in a circuit. A simple circuit to connect a small buzzer to arduino uno is shown below.
After completing the circuit, upload the following program to your arduino board. If uploading is successful, beep sound will be heard from the buzzer in one second delay.
// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin 13 as an output.
  pinMode(13, OUTPUT);

// the loop function runs over and over again forever
void loop() {
  digitalWrite(13, HIGH);   // turn the buzzer on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(13, LOW);    // turn the buzzer off by making the voltage LOW
  delay(1000);              // wait for a second



All the circuits, published in this blog is only after testing and getting proper results in my private lab. When you try these circuits, you should check the supply voltage, polarity of components, presence of childrens nearby and shorts in the circuits. This website will not be responsible for any harm happened to you or your components caused by your carelessness.

For More Electronic Tips

Proudly Powered by Blogger.