Wednesday, November 27, 2013

November 25th, Code

LCD and Servo Code
Below is the code that will run the LCD and the Servo motor. The LCD is a required part of the project and we didn't have a specific need so we wanted to make it cool. When the hovercraft the LCD will read "System Charging". While driving the LCD will then read what direction it is driving. For example "slight left, slight right, left, and right". The servo code will turn the servo in increments of 30 degrees. LED Code
Another required element to the project was the use of LED's. Again, we wanted to use this feature to make our hovercraft cooler. We decided to use red and blue LED lights. The code below is used to control the LED lights. When the Hovercraft turns a certain way, lights on that side will blink. Motor Control Code
This code is used to control the big fan on the back of the hovercraft.

No comments:

Post a Comment