Electronic dice are the role of microcontroller programming

By now most of us are familiar with the Arduino platform. In the world of microcontrollers this is a cheap and fairly simple way. For many projects, there is no need to go beyond the general control of the microcontroller unless you want to know more about its internal functions. [Cristiano] He was keen to expand some of his knowledge, so he decided to make this electronic dice using a PIC microcontroller instead of the Arduino platform with which he was more familiar.

As a result, the project is set up as a way to further dive into the world of microcontrollers that do not have the same hand-holding setup as Arduino. To take care of the need for a random number for dice, PIC’s random number generator is used but a random number of seeds is added from an internal timer. The timer starts when a mercury tilt switch signals the device that it has rotated and after a few counts a single digit number appears on a seven-segment display.

While this may seem simple on the surface, the project comes with an in-depth guide to programming the PIC family of microcontrollers, and has a polish that is not commonly seen in newer projects, including the use of mercury tilt switches that give it a reversal. Conduct. For some more tips on how to create such projects, see this guide on how to create power supplies for your projects.

Leave a Reply

Your email address will not be published.