Creating an Electronic Die and Controlling Traffic by hndou

"Arduino Workshop" - John Boxall Pages 113-118 and 74-79
Box number 25 Learned From Troubleshooting Electronic Die Adding Power Source: No effect Changing LED's: No effect Changing Boards: A certain board did not work however others did which leads me to believe only that board doesn't work Summary: The random LED generator was a partial success. I was able to plug in up to five LED's and have them light up sequentially in random order and get progressively slower. Upon plugging in the sixth LED, the code written would work when the board was reset but the code would no longer upload from codebender.cc. Controlling Traffic Adding Power Source: No effect Changing LED's: No effect Changing Boards: A certain board did not work however others did which leads me to believe only that board doesn't work Summary: The Traffic Controller was a complete success. The code runs and causes red LED of one set of three LED's and the green LED of the other set of three LED's to light up. Upon the press of the button correlating to the set of three LED's with the red on lit, the green LED from the other set will turn off and the yellow LED will turn on for a while. Then, the red LED will turn on. After another delay, the yellow LED of the set of three with the red LED turned on will blink while the red LED stays on. Then, the red and yellow LED's will both turn off and the green LED turns on. The same happens in the reverse way when the other button is pressed. Integration Project (Still underway) Description: Take both of the previously described codes and put them together into one code so that they run on the same board and perform the different desired actions on their respective breadboards. Adding Power Source: Brightens LED's Changing LED's: Not tried Changing Boards: A certain board did not work however others did which leads me to believe only that board doesn't work Summary:

Embed This Sketch

Use the following HTML code to embed the sketch code above in your blog or website.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:282221" frameborder="0"></iframe>

Embed The Serial Monitor

You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>