We continued using the arduino to control LEDs and servos using input from a potentiometer and a photocell.
- Connect Servo to Arduino and run "Sweep" example.
- Modify "sweep" program to make the servo move faster. (increments of 10 degrees)
- Connect Potentiometer and run "Knob" example. We noticed that the servo moves as we turn the knob.

- Modify "knob." We change the values of the potentiometer to go from 0 to 500, making the servo move 180 degrees when the knob is turned halfway.

- Control blink rate of LED using a potentiometer.

- Connect a photocell and use it to control the LED and servo. When the photocell senses dark or dim, the LED turns on and moves the servo to one position. When the photocell senses bright or very bright, it turns the LED off and moves the servo to the other posion.

- Change the blink rate of the LED based on readings from the photocell.



No comments:
Post a Comment