I'm designing a locker system using Arduino.
Due to system requirement, two IOs will be used control the relay, and only when two IOs are ON, then the relay will be triggered.
- PNP = BC807
- NPN = BC817
- Coil = 720 ohm, 20 mA
- Diode = 1N4148
My question is will PNP be switched on/off reliably?
Any risk to consider here?
Any suggestions are welcome.
Best Answer
If you're using Arduino to control the coil, why are you trying to implement a logical AND with BJTs?
Just keep the NPN transistor and write
in your code.
A
andB
should correspond to the activation conditions of the IO pins in your original schematic.