Okay, made sense about the Transistors. I changed the NPN to PNP because they were seemed better for the job.
I also added 10k pull-down resistors to the emitter-PIC I/O wire.
Thanks for input
Okay, made sense about the Transistors. I changed the NPN to PNP because they were seemed better for the job.
I also added 10k pull-down resistors to the emitter-PIC I/O wire.
Thanks for input
Seems you have something workable now
You can safely remove R1.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
okay, I figured why am I using 2 more resistors than I need to. I took your advice changed programming a little and used the internal pullups, check it out.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
I don't think those tr's will work like that, you need 12v on base to turn off and PIC pins only go to 5v. Need to have PIC drive PNP to drive base of NPN or make tr low side switches of PNP.
don
amgen
true...
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
I never did it, but I think It could work. Use a pull up between tr base and 12V, then a resistor in serie with the PIC. In your software, you set GPIO to 0, and later you play with TRIS to toggle your pin. Set to input, the tr should be off, Set to Output, tr should be almost ON. I would bet something like 10K pull-up, and something like 100-1K match could do.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks