Category Archives: pseudo-random

Entropy and The Arduino: When Clock Jitter is Useful

What do you do, when you need a random number in your programming? The chances are that you reach for your environment’s function to do the job, usually something like rand() or similar. This returns the required number, and you go happily on your way.

Except of course the reality isn’t quite that simple, and as many of you will know it all comes down to the level of randomness that you require. The simplest way to generate a random number in software is through a pseudo-random number generator, or PRNG. If you prefer to think in hardware terms, the …read more

Continue reading

Posted in arduino, Arduino Hacks, entropy, Hackaday Columns, Microcontrollers, pseudo-random, random, random number generator, random numbers, Skills | Leave a comment

Follow the Bouncing Ball of Entropy

When [::vtol::] wants to generate random numbers he doesn’t simply type rand() into his Arduino IDE, no, he builds a piece of art. It all starts with a knob, presumably connected to a potentiometer, which sets a frequency. An Arduino UNO takes the reading and generates a tone for an upward-facing speaker. A tiny ball bounces on that speaker where it occasionally collides with a piezoelectric element. The intervals between collisions become our sufficiently random number.

The generated number travels up the Rube Goldberg-esque machine to an LCD mounted at the top where a word, corresponding to our generated number, …read more

Continue reading

Posted in arduino, Arduino Hacks, Arduino Uno, art, babble, ball, digital, frequency, kinetic, piezo, poetry, poetry robot, pseudo-random, rand, random, random number generator, rube goldberg, speaker, square wave, tone, uno | Leave a comment