November 25, 2013

Randuino: An Arduino-based random number generator

Generating random numbers in your Arduino-based projects gives many opportunities from the simple dice project to strange forms of music, generating data for testing other sketches and many other uses. However generating truly random numbers is theoretically impossible due to the digital nature of the microcontroller, thus the use of the typical analogueRead() method to seed the random number generator.

There is a hitch with using this method, as the value measured from an analogue input can often fall within a "usual" range and not go near anywhere zero or 1023. This has been noticed by Desi Quintans who has created a more complex form of random number generator, which seeds the random number generator with another random number and displaying the output on a typical LCD. 

So if you're interested in experimenting with random number generation with your Arduino, check out Desi's website. And for more, we're on twitter and Google+, so follow us for news and product updates as well. 

If you're using an LCD with your Arduino-based projects - instead of building your own LCD module onto a breadboard, save time and move forward with the Freetronics LCD & Keypad shield which contains a bright 16x2 character LCD and five buttons that can be read from only one analog input pin: 

Leave a comment

Comments have to be approved before showing up.