Week 4 arduino challenge (dice machine)
This week we had to create a dice machine with our Arduino. The purpose of the code and layout was that by pressing a button you will get random numbers from 1 to 6 out. For this you needed to write out and give each pin an led. There was also a button involved. This is the code that I wrote for it. Video explanation of project: Reflection: This project was a combination of the previous projects we have done. I didn't want to risk it with a map but I learned that you could map out the lights and shorten your code. Another learning moment was the understanding of the button function and how you can make a circuit or there are two circuits in there and can be split on both sides of the bread. Extension : Just for a game you can easily make a dice machine for the sole purpose of the game. This can add a digital component to a board game. This can also work for your christmas lights to keep a random flow coming and the lights vivid, to replicate nat...