Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: m4nti on September 27, 2009, 10:44:02 AM
-
Do you know what the part which will do the beeping is called? (Then I'll find how to connect it myself no worries)
-
Hi,
Several options for beeping really; loudspeaker, piezo buzzer, piezo disc etc. Some just needs a supply voltage to beep, other types need an oscillator to drive them.
-
Does a buzzer work by supplying voltage?
I just want something like: I pass a 1 and it beeps. Is it possible? Nothing too complex, just to add some fun to it, you know?
-
Yes you can do this very easily. you could try connecting the buzzers positive lead to the output of the MCU and the negative lead to the negative, then send a HIGH signal to the pin for a certain amount of time.
example in pseudo code:
output_HIGH;
delay_500ms;
output_LOW;
Hopefully that is what you wanted. :)
-
exactly what i wanted :) cheers!
-
Cool. I hope it works for you! :)