USB Hourglass random number generator

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. Jack says:

    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.

Discuss this article with the rest of the community on our Discord server!

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


Ready to dive into the realm of hands-on innovation? This collection serves as your passport to an exhilarating journey of cutting-edge tinkering and technological marvels, encompassing 15 indispensable books tailored for budding creators.

Escape to an island of imagination + innovation as Maker Faire Bay Area returns for its 15th iteration!

Buy Tickets today! SAVE 15% and lock-in your preferred date(s).