Assignment Due Nov. 1: Servo Dimmer / On-Off Rectangles

Background:

This assignment asked to create a control for the servo using a servo sketch. The servo was to move based on the mouse position on the sketch, the servo moves to one side when the mouse is positioned to the left of the sketch and to an opposite side when the mouse pointer is on the right. 

The second part of the assignment asked to turn on a LED by clicking on a rectangle and to turn it off when another is clicked. 

Code:

Part 1: Processing

Part 1: Arduino

 

Part 2: Processing

 

Part 2: Arduino

 

Images:

Image of the Processing Sketch
Image of the Processing Sketch

Leave a Reply

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