Samuel's Website

Random number generation

Samuel Forestier — 19 January 2015
Here we are !

On this project, the idea was to generate a "random" number (note the quotes !) based on some of the information take out from the environment next to the Arduino.

We can find the temperature, humidity and pressure (with BMP085 and DHT11), the seconds (with the DS1302 RTC Module), the luminosity with a photo-resistor, and the distance between the breadboard and something in front of (with HC-SR04).

If a sound is detected (like a 'clap' or something else) (with a sound detector module) the program read data from all the sensors and, with a little function, make a big salad to get out a number.

Once the number is generated, we compute the dispersion rate of all the numbers generated since the launching, and print these two values on the screen.

Code ? Here.

Thanks to Jojo' for the final hashing :wink: