Hi,
So I've been mucking around with some 2N2222A NPN transistors, a Raspberry Pi Zero, and a sourcing input module (1746-IV16) from Allen Bradley. My project is to use the transistors to drive inputs on the PLC. This will let the PLC use logic via a FIFO and produce a few outputs. The PLC side of things is done and tested via a few software trials. My issue is with the transistors. Typically we'd use Sinking inputs at work but this salvaged SLC rack had a sourcing input module. This SLC rack also powers the 24v I'm using to drive the inputs. Being still a pup and not being far enough in my schooling I started with a very basic idea of transistors. Starting out I tested my transistors using a handheld oscope and signal generator. I didn't use any base resistors since my current was super tiny anyway. Everything worked without a problem. Next was making it drive my input module. That's where things broke down. to make a long story short this is what I found:
http://www.ittc.ku.edu/~jstiles/312/handouts/Example A BJT Circuit in Saturation.pdf
https://en.wikipedia.org/wiki/Bipolar_junction_transistor
http://www.electronics-tutorials.ws/transistor/tran_1.html
http://www.allaboutcircuits.com/textbook/semiconductors/chpt-4/bipolar-junction-transistors-bjt/
Examples in Electronics Demystified
Examples in the 2nd edition Fundamentals of Electric Circuits
I'm still not sure why the extra resistors between the supply and load and the tied COMs and the SLC COM is needed. So I guess my questions are these:
Also here's some info on the 1746-IV16
http://literature.rockwellautomation.com/idc/groups/literature/documents/in/1746-in027_-en-p.pdf
and the Raspberry Pi
http://www.mosaic-industries.com/em...spberry-pi/gpio-pin-electrical-specifications
Voltage drop with 2 transistors @ 3.2k OHM

Voltage drop with more than 2 transistors @ 3.2k OHM

Voltage drop with 2 transistors @ 1k OHM

Voltage drop with more than 2 transistors @ 1k OHM

Working simulated circuit with 1 transistor

Working simulated circuit with all transistors
- With no base resistor or any resistors besides the internal 3k Ohms of the input module my transistors would be saturated without voltage/current from the Raspberry pi. So they would be true 100% of the time.
- With a 3.2k OHM resistor between the tied Raspberry pi and emitter and the COM on the SLC I could operate 2 transistors but when a third was introduced my inputs would all go black.
- If I changed the resistor used between the emitter and COM to 1k my voltage would then stay above 5v with all 5 transistors on. However I'd have to have 2 transistors on before the voltage would be high enough to activate a transistor. I also put in 10k OHM resistors at the base.
- If I took another 1k OHM resistor and put it between the power supply and the loads I could drive all the transistors without voltage issues.
http://www.ittc.ku.edu/~jstiles/312/handouts/Example A BJT Circuit in Saturation.pdf
https://en.wikipedia.org/wiki/Bipolar_junction_transistor
http://www.electronics-tutorials.ws/transistor/tran_1.html
http://www.allaboutcircuits.com/textbook/semiconductors/chpt-4/bipolar-junction-transistors-bjt/
Examples in Electronics Demystified
Examples in the 2nd edition Fundamentals of Electric Circuits
I'm still not sure why the extra resistors between the supply and load and the tied COMs and the SLC COM is needed. So I guess my questions are these:
- What are the purpose of the 2 resistors? Are they needed for some type of current biasing loop?
- What is the math behind the loops? I'm guessing it's something to do with KCLs.
- Besides changing the input module to a sinking module and using PNPs is there an simplified version of this circuit?
Also here's some info on the 1746-IV16
http://literature.rockwellautomation.com/idc/groups/literature/documents/in/1746-in027_-en-p.pdf
and the Raspberry Pi
http://www.mosaic-industries.com/em...spberry-pi/gpio-pin-electrical-specifications
Voltage drop with 2 transistors @ 3.2k OHM

Voltage drop with more than 2 transistors @ 3.2k OHM

Voltage drop with 2 transistors @ 1k OHM

Voltage drop with more than 2 transistors @ 1k OHM

Working simulated circuit with 1 transistor

Working simulated circuit with all transistors
