capturing LED readout

Status
Not open for further replies.

walkern

Smack-Fu Master, in training
53
Well... that's a pretty generic question. If the device in question doesn't have any sort of PC interface, you're going to have to make one.

This is far easier if you can get the appropriate specifications. But otherwise, just rip the thing open, wire it into a breadboard, and try giving each wire signal and see what happens (be careful, it's not that hard to break things). Try to figure out what does what. Then you'll want to splice the wires you need, probably into a serial or parallel port, and then you've got the host of issues writing a device driver.

From the tone of the post I'm going to guess that this project might be beyond your scope.
 

HitScan

Ars Tribunus Militum
2,523
Subscriptor++
You could take off the 7-segment displays, and replace them with opto-isolators. They're essentially LEDs connected to photocells so teh scale wouldn't know the difference. Then, you have to connect the photocell end of the isolators to a data capture device; if it's only 1 digit, you could use the parallel port for instance. Otherwise I'm not certain the best way, since all the info would be coming in parallel. Then, you have to write up a routine to decode the resulting 7-bit information into a single digit. You'll have to make up a table to help you keep it all straight. Here's an example:

<tt>
7-segment display:
 _
|_|
|_|</tt>
Let's say that the centerbar (the "lit" one) is connected to your first opto-isolator, and you travel clockwise around with the rest (upper-left, top, upper-right, lower-right, bottom, lower-left) and it's connected to your box. To read the number "7" you need to look for the pattern "0011100" Here's why:
<tt>
 _
|_|
|_|</tt>
So, top, upper-right, and lower-right are the center 3 bits of the data if the isolators are connected as above. I hope some of this makes sense. :)

Let me know if this helped or if you need a better explaination, I'm making this up as I go :D

HitScan
 

petrov

Ars Tribunus Militum
2,714
there are two cases that are possible given this question:
a) you work in a professional lab with grant money and funding, in this case you are better served by buying a measurement device that natively supports output to a PC. it'll probably come with driver software and will be able to output CSV data for import into Excel or Matlab or SPSS or whatever program you use to manipulate the data.
b) you are an amateur who is interested in a home science experiment for a class or your own personal edification. If this is the case, be aware that the tools to do what you want (amateur electrical engineering) are not cheap, you'll want to get a digital multimeter for reading individual signals and general poking around, and an oscilloscope for more sophisticated analysis. neither of these are cheap, both are gonna retail for over $100 (well more than your average bathroom scale), oscilloscopes in particular are closer to $500. If you are trying to run an experiment that requires measurements over a short enough time frame that you can't do it with a pencil and paper and a stopwatch, you may be better off rigging a camera with automatic picture taking capability (or using a camera and stopwatch), something that'll take N pictures in M seconds. I don't know diddly about photography, but I do know a bit about electrical engineering and interfacing a scale to a parallel port is a non-trivial endeavor.

---sam
 
Status
Not open for further replies.