Arduino Computers & Mobile Technology
USB Hourglass random number generator

This is my new, favorite random number generator (old favorite: lava lamps):


It watches falling sand in an hourglass with an optical sensor. That data is sent via the Arduino USB output to the PC where it’s analyzed. This entropy is useful for all your random number needs. My favorite part: when the hourglass runs dry a servo motor flips it over and it starts again.

Says maker Peter Allan:

With the USB Hourglass, the user can look at the sand falling through the center of the hourglass and monitor the randomness in the USB output data. And one can read the code line-by-line, compile it, and upload it to the microcontroller using only open-source and widely supported tools.

USB Hourglass

[Thanks, Scott Burris!]

2 thoughts on “USB Hourglass random number generator

  1. See, while I don’t have much use for complete randomness, this would certainly make a great usb-desk-candy gadget. Even though the world’s already full of them.

Comments are closed.


John Edgar Park likes to make things and tell people about it. He builds project for Adafruit Industries. You can find him at and twitter/IG @johnedgarpark

View more articles by John Edgar Park