Step 6: Program the ATMEGA

The last step is to program the ATMEGA chip using the Arduino software.  Download the attached sketch (glitchamin.pde) and upload it to your Arduino.  If you're not using the kill switch, comment out the line "#define KILLSWITCH".  This will prevent any killswitch related code from being generated.  If you would like to tweak some things, or debug your setup, uncomment the line "#define DEBUG".  This enables the Serial monitor (running at 115200 baudrate), which spits out the current values of the CdS, both pots, and the kill switch, every time it goes through the loop().  However, doing so slows down the loop quite a bit, causing some sound distortion, so be sure to disable it when you move to your finished circuit.
<p>Hey awesome man! Works great! thank you very much! Would love some lights on how to modify the code concerning the sound or how to move forward! </p>
<p>Anyone have a link to the code?</p>
<p>Hi, great project! It was fun! Attached is my build of your theremin. Works great! I'm gonna hack it in a bit to get the sound I want. Will upload mod soon. Thank you for the great design, Gatesphere.</p>
<p>Hey man great project just finished! and thank you again :) i had one question is there any way to change the code to make the signal sound different?</p>
can i using this mono jack instead of yours?
I did a project similar to this one. Then I shrunk it down to an ATTiny85 chip. Check it out here: <a href="https://www.youtube.com/watch?v=BsKRtUCCle4" rel="nofollow">https://www.youtube.com/watch?v=BsKRtUCCle4</a>
awesome. Id like to try some other CdS photoresistors. Any recommendations? What about using a full solar panel through some kind of transistor? An audio way to fine tune the solar gain of a panel
will two 5kohm potents work?
You have successfully helped me annoy my family.
Nice. :)
I can't get the code
I just clicked the link... it works for me. Anyways, here's an alternative link: <a href="http://suspended-chord.info/downloads/glitchamin/glitchamin.pde" rel="nofollow">http://suspended-chord.info/downloads/glitchamin/glitchamin.pde</a>

About This Instructable




More by gatesphere:Arduino Photocell Theremin Synth (glitchamin) 
Add instructable to: