Wednesday, November 18, 2015

Project 4: Programming the LED


For this project, we turned on and off the light. We changed a couple parts of the code so the light would be able to turn on and off either staying on or staying off. So we replaced 13 with the color red so the Arduino would know that its turning on the LED light. There were 4 different parts to this project: turn on the light without it turning off, turn the light off without it turning it on, turn it on for 15 seconds and off  for 3 seconds, and turn it on for 1 second and off for 1 second. The first one is pretty easy since you have to delete a part of the code which is the turn off part of the code. The second is the same way of the first one but the opposite. The third one has the light on longer than having it off the longest. The last one has the LED light blinking on and off for a second each.

No comments:

Post a Comment