Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Light And Sound Machine for the Arduino Uno

branch: master
Repository: Brain Machine for Arduino
Attribution: Chris Sparnicht - Laughter on Water -
Creation Date: 2011.01.31
Last Modification Date: 2011.02.15
License: Creative Commons 2.5 Attrib. & Share Alike

Derivation and Notes:
Make sure you have dual wheel potentiometer to reduce
the volume of the audio with your headset. If you don't, 
you might damage your ear drums, your arduino or your headset.
Add a 4.7K ohm resistor from each tone pin to each volume-in
on the potentiometer to further reduce possibility of physical harm.

This arduino sketch is based on the original Sound & Light Machine 
by - Mitch Altman - 19-Mar-07 as featured in Make Magazine 10.

See notes in code below for how I adapted Mitch Altman's version for Arduino

The sleep coding comes partially from here:
Fixed error in breadboard diagram. 
Added new longer show and gamma frequency (40.4Hz).

Added liability notice.

Changed to switch/case format for stage choices.

Added functions for alternating LED blinking for 
each of the four stages. So now, there are 
eight cases: b, B, a, A, t, T, d, and D.

I've included a Stereo Eyephone Test sketch 
and a Stereo Tone Test Sketch. These sketches are purely
for development purposes, used to confirm preferred programming
prior to putting it into the Arduino Brain Machine Sketch.

If you're having trouble with Eyephones or Earphones, try
isolating the cause using one of these simpler sketches.

Light and Sound Machines can be fun for many of us,
but may be seriously dangerous for those prone to siezures. 
When in doubt, seek medical attention. 
You assume all liability for any damage 
done to your own health, those to whom you expose this
technology and/or to your equipment when using any notes
sketches or any associated files within this Git repository.

Something went wrong with that request. Please try again.