I use a simple IR adapter for RS232, which consists of an IR detector attached by an anode to pin 4 and a cathode to pin 2 (RX data). When connected to a computer with a simple terminal set to 2400 baud, 7 Data 1 Stop, No parity, No handshake, it produces the following line
013651211
which repeats approximately every 400 ms. The first 5 digits are indicated on the counter, digit 6 is the decimal point, digit 8 is the functional position
VDC = 1 AmpDC = 9
The last digit seems automatic / manual mixed with a sign; I donβt need the rest (for now).
source share