Thursday, December 12, 2013

A Crabby Code

The above code controls the crab. It is a very simple code with only two sections. The first section calibrates the photo-sensor to map its output values between the lowest and highest light values it has detected. The second section takes the output values from the photo-sensor and translates them to speed and direction for the servo and color for the RGB LED.

No comments:

Post a Comment