Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: m4nti on September 27, 2009, 10:44:02 AM

Title: I want to make a robot beep in certain situations
Post 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)
Title: Re: I want to make a robot beep in certain situations
Post by: Soeren on September 27, 2009, 02:19:48 PM
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.
Title: Re: I want to make a robot beep in certain situations
Post by: m4nti on September 28, 2009, 12:18:41 AM
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?
Title: Re: I want to make a robot beep in certain situations
Post by: galannthegreat on September 28, 2009, 12:37:09 AM
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. :)
Title: Re: I want to make a robot beep in certain situations
Post by: m4nti on September 28, 2009, 12:40:41 AM
exactly what i wanted :) cheers!
Title: Re: I want to make a robot beep in certain situations
Post by: galannthegreat on September 28, 2009, 12:46:37 AM
Cool. I hope it works for you! :)