body, html {font-family: 'Open Sans', sans-serif;} #nav a, #nav span.in{font-family: 'Open Sans', sans-serif;} #title #tagline {font-family: 'Open Sans', sans-serif;} #main .gridItem h3 {font-family: 'Open Sans', sans-serif;}

supporting 16th JC: Tone_Key


While working on our 16th  joint cache Frequency I needed to have somthing giving me tones with a known frequency. So I built this supporting tone generator and called it „Tone_Key“ (because a tone is played, when a key is pressed). I realized the hardware on the same breadboard as the main cache Frequency, but I hope, this illustration will make it a little bit clear:


screen-capture-2

Tone_Key is placed on the left of the breadboard using the front rows of GND and Vdd („positive“) while the power of Frequency is using the back rows. To prevent noise, both GND are connected (but Vdd for sure NOT).

At the beginning I designed it a little bit different using 4 buttons but after a redesign I’m only using 3. Because I’m using interrupts to determine whether a key was pressed, this sketch can’t run on an Uno, because an Uno is only offering 2 interrupts.

The sketch is running quite well and so I’m publishing it here

Last and least: The Arduino isn’t providing a sinus wave but a rectangle signal, so the sound isn’t the best one…

IMG 9521


Update 1/1/2017:

I just modified the sketch again. Hitting the button „play tone“ now toggles between playing a tone or not. Sketch in downloads was updated.




 

©  Olaf Goette 2008 - 2018