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.
Should you upgrade to HUSKYLENS 2? This comparison breaks down processor speed, AI capabilities, LLM integration, and custom model support. Find out which vision sensor fits your robotics or STEM project—specs, prices, and real-world use cases.
The landscape of K–12 education is rapidly evolving, moving from simple digital making to complex problem-solving with Artificial Intelligence. At DFRobot, we believe in equipping educators with the best tools and knowledge to navigate this shift. That is why we are thrilled to announce that DFRobot will be a featured presenter at the upcoming 2026 Fab Educators Summit on Friday, January 30th.
From smart wearables and robotic skins to industrial monitoring, Force Sensitive Resistors (FSR) and Thin Film Pressure Sensors are essential components for tactile feedback. DFRobot offers a comprehensive range of force sensors, but choosing the right one can be tricky.