week 4

This week I started playing with the servo motor and controlled it through the Arduino using
analog input.

1 st attempt

Then I moved the LED and attached it to the servo, so it will move as the servo is moving, see here:


That’s the code I used:

Screen shot 2015-09-30 at 20.49.07