Stupid Pet Trick (Revisited) – Photo Sensor Tone Generator the Digital Way

After trying to calibrate the analog sensor to play a tune, I was unsuccessful in getting particular shades to consistently play the tones I want. I instead tried to use the photocell to detect white or black, representing 0 or 1. Using 4 photocells, I can create 16 combinations which is enough for a 2 octave scale. Below is the printed chart I used to map the tones and a clip playing the 2 octave scale .

 
DigitalScale
 
 

Permalink|Comments RSS Feed|Trackback URL

Stupid Pet Trick – Photo Sensor Tone Generator

Using a photocell, I can play 2 octaves of the C major scale. The next objective is to try to play a tune.

Permalink|Comments RSS Feed|Trackback URL

Servo Motor Lab

Using a potentiometer and the Arduino servo library to control a servo motor.

Permalink|Comments RSS Feed|Trackback URL