labs for class 4

SERVO MOTOR CONTROL WITH AN ARDUINO

For this lab the first, we choose a force sensor to control de servo motor and the first thing we did was to check the range of the sensor that was from 0 to 1004.
Screen Shot 2014-09-21 at 15.42.44

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:

1 Response

  1. Thank you so much for documenting the labs! They are really great and so glad they worked and you had fun with them!

Leave a Reply