J
jim barchuk
Guest
Hi All!
I want to control the switches of an infrared transmitter via PC parallel
port. My main Q is regarding converting voltages and protecting the port and
the transmitter.
I have a *ton* of software and digital experience, and enough analog
experience to interface simple stuff like LEDs and phototransistors to PIC
uC, but very little practical analog experience.
(The transmitter has one IC, an SC2262IR. I find only a few distributor's
pages on the net about it, and a sample schematic, but no real data sheet.
But this is all simple enough that that shouldn't be necessary anyway.)
The transmitter has little dome buttons with a carbon coating underneath
that snap down onto a 'grid' array on a PCB.
The transmitter is powered by a typical 3V CR2032 button cell.
The dome buttons simply short 3V to the IC inputs. The carbon does offer
very slight resistance though.
'Closing a switch by shorting it through a mA meter' I see it draws 1mA.
Cool.
A parallel port pin is supposed to source 2.6mA, so I think in theory I
could drive the transmitter IC directly if I'm sure to divide the parallel
port voltage and limit the current.
I think I need to divide the 5V off the parallel port down to 3V, -and-
limit the current to the transmitter to 1mA.
I'm using the voltage divider calculator at
http://www.raltron.com/cust/tools/voltage_divider.asp but I'll draw the
schematic here to so you don't have to bother going there to understand what
I write further.
O---/\/\/\---o-------O
| R1 | |
+ \ +
Vin / R2 Vout
- \ -
| / |
O------------o-------o
Vin = 5v from the parallel port.
I set R1 to 5k to limit current to 1mA.
Vout = 3v that goes to the IR transmitter IC pin.
The calculator tells me R2 should be 7.5k.
Bingo? Or should I keep a fire extinguisher handy.
Does the -way- I'm thinking about this whole thing seem right?
Tx very much for your interest and attention.
Have a
day!
jb
--
jim barchuk
jb@jbarchuk.com
http://www.jbarchuk.com
I want to control the switches of an infrared transmitter via PC parallel
port. My main Q is regarding converting voltages and protecting the port and
the transmitter.
I have a *ton* of software and digital experience, and enough analog
experience to interface simple stuff like LEDs and phototransistors to PIC
uC, but very little practical analog experience.
(The transmitter has one IC, an SC2262IR. I find only a few distributor's
pages on the net about it, and a sample schematic, but no real data sheet.
But this is all simple enough that that shouldn't be necessary anyway.)
The transmitter has little dome buttons with a carbon coating underneath
that snap down onto a 'grid' array on a PCB.
The transmitter is powered by a typical 3V CR2032 button cell.
The dome buttons simply short 3V to the IC inputs. The carbon does offer
very slight resistance though.
'Closing a switch by shorting it through a mA meter' I see it draws 1mA.
Cool.
A parallel port pin is supposed to source 2.6mA, so I think in theory I
could drive the transmitter IC directly if I'm sure to divide the parallel
port voltage and limit the current.
I think I need to divide the 5V off the parallel port down to 3V, -and-
limit the current to the transmitter to 1mA.
I'm using the voltage divider calculator at
http://www.raltron.com/cust/tools/voltage_divider.asp but I'll draw the
schematic here to so you don't have to bother going there to understand what
I write further.
O---/\/\/\---o-------O
| R1 | |
+ \ +
Vin / R2 Vout
- \ -
| / |
O------------o-------o
Vin = 5v from the parallel port.
I set R1 to 5k to limit current to 1mA.
Vout = 3v that goes to the IR transmitter IC pin.
The calculator tells me R2 should be 7.5k.
Bingo? Or should I keep a fire extinguisher handy.
Does the -way- I'm thinking about this whole thing seem right?
Tx very much for your interest and attention.
Have a
jb
--
jim barchuk
jb@jbarchuk.com
http://www.jbarchuk.com