Hi everybody,
I wrote for fun a random generator based on a floating pin, with an output rate greater than 9kbit/s.
It's randomness is not so bad.
If u want to spend a look, I've pubblished it over gitHub (gitHub repo), with explanation and results produced by some statistical random suite.
Any comment is welcomed.
From the title I was hoping it was something that generated random hardware. That would be interesting! Not to disparage your random number generator, I’m sure it’s very cool too.
I've noticed an higher output rate when my notebook (which feeds the arduino) is connected to the electricity grid, instead of be powered only by battery.
This could be the result of a 50 Hz (60 Hz) signal being induced on the floating pin.
Or, it could be the result of a micro-ripple from the USB voltage regulator.
You may have to devise your own test for such a problem.
Thanks. This is quite useful to me Marco, as I have been making a series of "psychic" toys, such as an 8 ball, I Ching, and Weegee board. I have been utilizing non-matching pairs of analogReads() of floating analog pins, but missed discarding data adjacent to an endpoint. I will add that now. I'll study your code further, it looks very slick!
This could be the result of a 50 Hz (60 Hz) signal being induced on the floating pin.
Yes,this is probably true. I've tried to run test with and without electricity grid,and results(about entropy) don't aggravate.
Thanks. This is quite useful to me Marco, as I have been making a series of "psychic" toys, such as an 8 ball, I Ching, and Weegee board. I have been utilizing non-matching pairs of analogReads() of floating analog pins, but missed discarding data adjacent to an endpoint. I will add that now. I'll study your code further, it looks very slick!