Reading a 7 segment display.
Hannalee
Posts: 3
Hello, I hope this is the right fourm.
I have 18 7 segment displays which I have to scan and then send the value of each display out as rs-232.
I know I could open each box and read the signal that is sent to the display, but I am not allowed to alter any of the hardware.
Short of using 126 ( 7 x 18 ) photo sensors anyone have any ideas? I though about maybe using a vision based system and then doing
some OCR, but I would like to do everything with STAMPS.
TIA
Maitin
I have 18 7 segment displays which I have to scan and then send the value of each display out as rs-232.
I know I could open each box and read the signal that is sent to the display, but I am not allowed to alter any of the hardware.
Short of using 126 ( 7 x 18 ) photo sensors anyone have any ideas? I though about maybe using a vision based system and then doing
some OCR, but I would like to do everything with STAMPS.
TIA
Maitin
Comments
1. Do the displays themselves have to be visible after the modification, or does the RS232 connection substitute for that?
2. If the displays have to remain visible, how close to the displays can the sensor be?
3. Are these 18 individually-housed single-digit displays? How close together are they?
4. How often do the values change?
5. How often do you have to transmit updated values?
6. Are the digits straight up and down or italicised? ('Weird question, I know, but I have a reason to ask.)
The non-opening-the-box requirement is rather inane, IMO, but some customers/bosses are irrational or needlessly fearful, so I guess you just have to live with it.
-Phil
You've posted the same question in the BASIC Stamp forum. Cross-posting is not allowed. Please delete your other post (using the X in the upper right corner), before someone answers it.
Post Edited (Phil Pilgrim (PhiPi)) : 6/30/2009 8:07:24 PM GMT
I know my description is lacking, ill try to simplfy it
you have Pins 1,2,3,4,5,6
you have displays 1 and 2 both with 4 segments so a total of 8 LEDs
Pin 1 connects to every LED pin in Display 1, Pin 2 connects to every LED pin in Display 2
Pin 3 connects to pin 1 on LED 1 in display 1 and display 2
pin 4 connects to pin 2 on LED 1 in display 1 and display 2
Pin 5 connects to pin 3 on LED 1 in display 1 and display 2
Pin 6 connects to pin 4 on LED 1 in display 1 and display 2
This way when ever a LED segment lights up, you will mesure voltage on 2 pins, for example pin 1 and 4 would tell me it is Display 1 segment 2
This approach will get you down from 126 sensors down to 25. I would think you could probably cut this down further by using some sort of array approach to make a 3 or 4 pin combo with some thinking about the problem.
PS - These boxes, are they external to the main chassis, and if so do they have a ribbon or other cable going to them? Is there a connector on either end of the cable?
Posting a picture of the box, it's cabling if any, and a schematic of what you plan would be helpful. Lots of ingenious folks on this forum.
-Phil
Anyway to clarify, I have no electrical connection to the 6 boxes. Whatever solution I devise will have to be optical.
The BS2p40 Seems like a good fit as it has plenty of i/o, enough to support one box ( 3 seven segment led ). This is even easier as I do not have to multiplex the 6-7 photoresitors . I could actually have the STAMP monitor 5 seven segment LEDs, but since they are in different racks I t might just be easier to have one stamp per box
These 6 BS2p-40 will then output a string every so often ( 100 msec?) and a seventh stamp will poll 6 input pins it and then write it out to the web via PINK.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
Did you have time to consider the questions I posed above? It would help if you could answer them...
-Phil