True random number generation is hard, but nature can help! This project uses the unpredictability of wind to increase randomness.
How it works: the wind blows and spin the turbine, which spins magnets surrounding a Hall Effect sensor. The sensor's analog reading is then used to seed Arduino's random number generator.
In this project, I demonstrate how it works using an Arduino Leonardo with LCD shield to display both the sensor reading and the generated random numbers.
Parts List
Arduino + Mounting Hardware + LCD Shield by DFRobot + 9V Battery with Connector.
Hall Effect Sensor + Wire.
4 Magnets (1/4" diameter cylinder. 1/16" thick).
2" T-pins (it's the axle).
BB gun ammo, Stainless Steel, 4.5 mm (balls for bearing).
For enclosure: #6 machine screw
Easy to make; no soldering. No print support. Any dimensional correct printer setting would do. The only overhang is screw mounting holes, which you tap out. The rest of the overhangs are no larger than 45 degrees. Many parts are friction fitted.
Follow this step-by-step tutorial to connect the FireBeetle 2 ESP32-C5 to Home Assistant using MQTT. Learn to configure the Mosquitto broker, flash your board with Arduino, and display sensor data for your smart home automation projects.
Explore the new FireBeetle 2 ESP32-C5, a powerful IoT development board featuring dual-band 2.4/5GHz Wi-Fi 6, multi-protocol support (BLE, Zigbee, Thread), and integrated solar charging. See how it outperforms the ESP32-C6 for advanced, low-power projects.
DFRobot showcases its revolutionary Unihiker K10 AIoT board at FAB25 Czechia with interactive workshops, free device trials, and exclusive maker gifts for attendees.