Pages: [1]   Go Down
Author Topic: Making sounds with a mini Pro?  (Read 577 times)
0 Members and 1 Guest are viewing this topic.
Utah
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Fly it till you wreck it!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all!
I'm working on a little project...it's going to be a toy for my button/switch addicted toddler to play with. Something with lots of little push buttons and switches on it so it will distract him from other more system critical buttons/switches in the house.  smiley-lol
It's going to be plexiglass box with colorful wiring and lots of leds that will get switched on and off.
I would like to add some sound to the design and I have a Arduino Pro mini that is just sitting around. I've only just dipped my tows into the arduino ocean. So still don't know all the stuff it can/can't do. So my question is.....is there an easy way to hook up a pizzo buzzer(to one of the outputs)....program in my own sounds and output them according to different buttons pushed?

Thanks!
Logged

Offline Offline
Edison Member
*
Karma: 9
Posts: 1016
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, yes and yes.

Most people just connect a piezo buzzer to an output pin. You could use add extra 100 ohm resistor for safety (output to resistor, resistor to piezo, piezo to ground).

The tone library is used to play tones. http://arduino.cc/en/Reference/Tone
There are also links to tutorials on that page.
Logged

Pages: [1]   Go Up
Jump to: