<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jan 15, 2016 at 5:23 PM, Ron Garret <span dir="ltr"><<a href="mailto:ron@flownet.com" target="_blank">ron@flownet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div>In fact, you can probably get pretty reasonable results with no circuitry at all and just letting the ADC pin float (I’ve tried this on a Teensy3 and it actually works quite well).</div></div></div></blockquote><div><br></div><div>That's probably fine for seeding PRNGs for games.  It may have worked well in that you saw no pattern, but 1) there could have been one you did not see, and 2) any actual randomness from pin A0 might go away under different conditions, such as running on a battery inside a metal box.</div><div><br></div><div>I was going to recommend what I'd do to figure out the thermal noise you can count on, but this guy <a href="http://www.openmusiclabs.com/learning/digital/atmega-adc/">already did all of the work for me</a>.</div><div><br></div><div>The R-C stages on the input to the ADC act as an anti-aliasing filter.  The 8K Ohm feeding the 10pF gives a 12MHz roll-off, which is not quite right, since I'm not taking the 12K into 4pF stage into account.  From <a href="http://www.radio-electronics.com/info/rf-technology-design/noise/thermal-calculations.php">this site</a>, we can easily compute the expected thermal noise as 40uV.  This 10-bit A/D has what, 2mV resolution on the input?  In a _very_ quite external environment, where is the noise coming from that will reliably cause A0 to wander all over the place?  I would be surprised if it were there.  The data from the probably_random project seems to show that even with the post-whitening, there isn't much randomness there.</div><div><br></div><div>My first guess is that you're measuring power supply noise.  Can you try generating a bunch of floating A0 samples when running on a battery, with good bypass caps, in a nice shielded environment like a metal box?</div><div><br></div><div>Bill </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div> </div></div></div></blockquote></div></div></div>