The purpose of the project is to mimic the random role of a dice.  The button activates the LED lights and it randomly stops to mimic the roll of the dice.  

I used two codes to mimic a dice. The first code had the LED lights constantly flashing.  






This code worked correctly because the LED lights would flash and stop like a dice. 


The following are pictures of the boards.  


This project was more difficult because I had issues wiring the boards to make it connect and run properly. It took me several tries to get the connections right. I could not figure out how to place the middle LED, so I left it off.  Another difficulty was the LED lights that did not turn off. For some reason, some of the LED lights remained on, but would flash.  

As for the code, it took several tries to get the correct code.  One code had the lights constantly flashing. Then, after some modifications, the code allowed me to use the dice as a random number picker.  

For the future, I would focus on determining how to turn off the LED lights. I would also focus on connecting the middle LED light. 

















Comments

Popular posts from this blog

Maker Spacer

Week 2 Maker spacer challenge