The 2n2222 is an NPN BJT transistor.
See: http://en.wikipedia.org/wiki/2N2222
Yes, when voltage is applied to the base, current will flow from C to E. When the base is low, there is no flow.
The 2n2222 is an NPN BJT transistor.
See: http://en.wikipedia.org/wiki/2N2222
Yes, when voltage is applied to the base, current will flow from C to E. When the base is low, there is no flow.
Best Regards,
Kurt A. Kroh
KrohTech
“Goodbye and thanks for all the fish”
Thanks for the help, I appreciate it.
Would the 2n2222 work for my application? (i.e. just pulling a 5V wire to ground?) Which transistor would you recommend?
Thanks again,
TOny
Last edited by TonyA; - 4th March 2008 at 22:17.
None!
Just use the Tri-State output of the PIC.
Added:Code:PORTB.0 = 0 ; Pin goes to gnd when not Tri-Stated TRISB.0 = 0 ; Output to Ground ;.... TRISB.0 = 1 ; Output Tri-Stated
If there's any possibility that the external 5V is higher than the PIC's 5V?
Use PORTA.4 instead. It doesn't have the VDD voltage limit.<br>
Last edited by Darrel Taylor; - 4th March 2008 at 23:04. Reason: RA4
DT
Darrel, and FalingTrea thanks. I was wondering about that. Thanks again.
Tony
Last edited by TonyA; - 5th March 2008 at 01:06.
Bookmarks