Questions tagged [buzzer]

An electrical device, similar to a bell, that makes a buzzing noise and is used for signaling.

An electrical device, similar to a bell, that makes a buzzing noise and is used for signaling.

60 questions
6
votes
2 answers

Tone() conflicts with IRremote library (multiple definition of `__vector_7')

I have just started with Arduino and C++ so I apologise if my question is very basic. I am trying to use tone() with a passive buzzer to create a sound while also using the IRremote library for a remote. However, whenever they are used together, it…
rgiller
  • 63
  • 1
  • 6
4
votes
1 answer

Can't stop the 3 pin active buzzer

I was simply trying to program a buzzer with the ultrasonic HC SR04 and 128x64 OLED display. The buzzer is an active buzzer (3 pin) on a small board. The problem is that, once on, it never stops buzzing. I have used the following code which is…
Bukaida
  • 141
  • 2
2
votes
3 answers

I develop an earthquake detector but when it detects a movement, the alarm doesn't stop from ringing

This is the code that I used. Actually, I use to code: for Arduino sofware and processing IDE software. Arduino Source Code/Program: #include // lcd Header LiquidCrystal lcd(7,6,5,4,3,2); // pins for LCD Connection #define buzzer…
2
votes
3 answers

How do I make my piezo buzzer only hum once without repetition?

I have a problem with getting my buzzer to only do the tones I programmed in once. I know I have to add some sort of code but I'm relatively new to this so I don't really know. I want it to start playing the tones I have in the code once I press the…
Éemia
  • 33
  • 4
2
votes
2 answers

Buzzer+Push button+arduino

I want to stop the sound of a buzzer after I push the push button. I tried a code, but when the button is not pushed, the buzzer continue to make sound. How can I fixed it? const int pin_contact= 6; const int buzzer = 9; //buzzer to arduino pin…
Biancaaa
  • 61
  • 1
  • 5
2
votes
1 answer

Arduino buzzer code sequence not triggering

I have a problem with my arduino buzzer: the code should be doing the following: I have a security system where in order to open the door you have to enter a 4 digit code from the remote. If the code is correct the door opens. if not you can try…
2
votes
5 answers

Emergency Vehicle - Make two LEDs flash with buttons and a passive buzzer change sound

My Dad and I are just learning how to use my new UNO. We have learned how to make leds flash at the touch of a button. We have also learned how to make a passive buzzer sound at the touch of a button and change tone to sound like a police car. We…
2
votes
3 answers

Circuit with buzzer not working :(

so I have a circuit with a buzzer and a resistor: This circuit should be working, but for some reason the buzzer doesn't sound. I pushed the buzzer into the breadboard as hard as I could, I put the + side to positive and the - side to negative but…
user15851
1
vote
1 answer

playTone function of Buzzer

I am making "Simon says" game using Arduino on TinkerCad. I am facing issue in Buzzer sound function. I want something like this: Use the following steps to generate the tone for the red LED: Play 440 Hz for 150ms Wait for 1136us Play 440 Hz for…
Snoke
  • 23
  • 5
1
vote
0 answers

DC motor and buzzer blink without delay code

So I am trying to put together a code for 4dc motors, buzzer, ultrasonic and lcd to work together,. they will together make up a small car. when the distance to the ultrasonic is smaller than 10cm, the buzzer makes a random sound, and a funny face.…
mmmmhe
  • 21
  • 1
1
vote
2 answers

Can we generate 20kHz tone with normal buzzer in arduino?

Can normal buzzer be used for generating high frequency audio and if this is possible then can normal microphone module be able to detect the same frequency range(15 kHz - 20 kHz). Here is the specifications of this buzzer:- Rated Voltage : 6V…
astrick
  • 193
  • 1
  • 9
1
vote
1 answer

Is this a feasible circuit?

The last couple months I’ve been working on this project, I’m nearing its end and I’m getting really excited! However, this is still pretty new to me and so I was hoping my electrical diagram/accumulated knowledge could be verified before I go and…
dhw123
  • 11
  • 2
1
vote
0 answers

esp-01 with rf receiver keeps crashing

SOLVED: after may hours of testing i have solved the problem. it turned out to not be a software issue. the power supply i was using did not have a flyback diode and thus caused large voltage spikes that would crash the esp. the solution was to add…
alex
  • 11
  • 4
1
vote
0 answers

Why is my buzzer always on?

I wanted to make a buzzer go off when the distance measured by the ultrasonic sensor becomes more than 100cm. The things used in this project are a 4x4 keypad, an hc-sr04 ultrasonic sensor, and a passive buzzer all connected to a keyestudio mega…
Abhi
  • 31
  • 2
1
vote
3 answers

Why is my passive buzzer clicking instead of buzzing when set to HIGH?

everyone. I am working on learning Arduino from scratch and I am on the buzzer lesson. The tutorial I am following consists on writing a code to get an input from the user in the form of an integer number, and, if it is greater than 10 (or whatever…
Coy Ote
  • 13
  • 1
  • 4
1
2 3 4