Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


More on LinuxToday


Arduino hardware hacking: Part 3

Jan 19, 2010, 18:34 (0 Talkback[s])

"In our previous two tutorials (see here and here), we created a Simon-type game using the Arduino, a hardware platform for simple, and not so simple, electronics projects.

"We placed three buttons and three LEDs on to something called a breadboard, and wrote a small program that would send a random sequence to the LEDs, which the player would then need to replicate by pressing the buttons in the same order. Each time you got the sequence correct, the sequence would be extended by one and repeated. The further into the random sequence you got, the higher you scored.

"In this, part three, we're going to build on what we already created and add another important feature - sound! So, get the hardware out, make some coffee, and prepare for some hardware hacking fun...

"Adding sound to our project is actually very easy, and it has a dramatic effect on the playability of the game. If you purchased a starter pack of components with your Arduino kit, there's a good chance that the kit included some kind if Piezo element. These are usually small, black and circular (about the same size as the average coat button), with a small hole in the top. They can be used to generate sound, as well simple sound capture, which is why they're usually included in starter kits."

Complete Story

Related Stories: