Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Using a 555 timer and ADC as a random seed
bandit
Administrator
Posts: 321
Permalink
Post Using a 555 timer and ADC as a random seed
on: October 1, 2012, 21:31
Quote

Post : Using a 555 timer and ADC as a random seed
URL : http://hackaday.com/2012/10/01/using-a-555-timer-and-adc-as-a-random-seed/
Posted : October 1, 2012 at 2:01 pm
Author : Mike Szczys
Tags : adc, entropy, prng, random, seed
Categories : arduino hacks, Microcontrollers

http://hackadaycom.files.wordpress.com/2012/10/555-random-seed.jpg

Most toolchains for embedded system include support for random number generation. But if you've read the manual you'll know that this is really just pseudo random number generation (PRNG). When calling this function the same numbers will always return in the same order unless a different random number seed is supplied in advance. [Gardner] put together a simple and cheap solution for deriving better random number seeds. He reads a voltage from a 555 timer using the ADC (http://1474orchard.ca/projects/?x=entry:entry120926-185104) on the microcontroller. At first glance it may not seem like a great source of randomness, but he performed some testing and the results look quite promising.

The project is aimed at Arduino-based circuits, but any chip with an ADC will work. The 555 timer is used as a free running oscillator. We know that this not be very stable when compared to even the worst of crystal oscillators, but that's what makes it work so well as a random seed source. Add to this the low parts count and small size of the additional circuitry and you've got a winning combination. So keep this in mind when you need a random number but don't necessarily need rock solid entropy (http://hackaday.com/2010/02/06/hardware-based-randomness-for-linux/) .

[via Reddit (http://www.reddit.com/r/arduino/comments/10qon5/experiments_with_hardwarebased_random_number/) and Freetronics (http://www.freetronics.com/blogs/news/6654822-hardware-based-random-number-generator-seed-for-arduino) ]

Add a comment to this post: http://hackaday.com/2012/10/01/using-a-555-timer-and-adc-as-a-random-seed/#respond

--
WordPress.com | Thanks for flying with WordPress!

Image

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.015 seconds.

 

Comments are closed.