Homework due Nov 1, 2017


There were two assignments due – control a servo motor with a mouse, and turn the LED on and off with buttons on computer.

To know that the Servo and LED were attached properly, I initially used Servo sweep function and LED blink function.

The first assignment was fairly easy because it was very similar to the LED dimmer, however the second assignment took some additional thinking. The program refused to work, because of a curly bracket in the wrong place in Arduino code, which I realized after switching up everything else I could imagine.

Something that seems odd is that the buttons do not always react to being pressed, which I realized with the println().

Controlling Servo code




Turning LED on/off with buttons




Leave a Reply

Your email address will not be published. Required fields are marked *