×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Sampling a Voltage

Sampling a Voltage

Sampling a Voltage

(OP)
Hi,

I'm a new poster but I read these forums often. I recently built a circuit that generates random bits from amplified resistor noise. Currently, the output is a voltage of either 5V or 0V, changing very rapidly. I need a way to sample the output to a computer so that I can use 8 bits in a row to produce a number between 0 and 255. What is the best way to do this? I do not have any bugdet concerns, and I want to be able to easily move this Random number generator to any computer. Any tips, links, or help is well appreciated.

RE: Sampling a Voltage

I would probably run your random signal into a serial to parallel shift register then just read out the the shift register when you want the number.

RE: Sampling a Voltage

A micro processor and pick an interface.
rs 232 , usb , 10/100 ect..

RE: Sampling a Voltage

Just connect your random bit to an input port and assemble the 8-bit number in software. You'll just need a wire (or perhaps two including the return or ground).

Once the numbers are flowing in, be sure to check them using software to make sure that they're truly randomly distributed.

They probably won't be because your random bit probably isn't perfectly distributed between 0 and 1. It might be very close, but almost certainly not quite perfectly 50:50.  Maybe the rise time is a shade different than fall time, or any number of reasons. Thus the 8-bit numbers will not be perfectly distributed but will show odd patterns based on what might be called 'parity'.

All great fun as long as you're not expecting perfection.

RE: Sampling a Voltage

(OP)
itsmoked: Yes I have seen that site.  The thing is, I am looking to use odd (perhaps biological) materials as the resistance eventually.  I will change it from a DC to an AC bias to do this.  Therefore, I need my own RNG.  Thanks, though.

Everyone else:  Thanks a bunch, I'll try some of these things, and probably end up using a microprocessor with usb or rs232 if the others dont work.

RE: Sampling a Voltage

Sounds like a cool device.  Please keep us posted.  We love random stuff.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources