SERVO MOTOR CONTROL WITH AN ARDUINO
After mapping the range from the sensor to degrees (0-90 one movement 90 – 180 opposite) we connect the rest of the elements and make the servo motor work.
TONE OUTPUT USING AN ARDUINO
A) After connecting the circuit as said on the lab page, you can tell that the minimum value of the range was obtained only when one photocell was cover, and the maximum value of the range was obtained when the other photocell was cover,, if you cover or uncover both, you obtained a medium value. High value means higher frequency tone, and low value means low frequency tone.
B) A melody was coded so when the circuit was powered it could play it.
C) At last a “three note keyboard” was built with force sensors as it is shown in the following video: