Your problem description sounds like the transistor is in backwards. A word of caution about 2222A pin order - MPS2222A is EBC but 2N2222A is CBE.
Your problem description sounds like the transistor is in backwards. A word of caution about 2222A pin order - MPS2222A is EBC but 2N2222A is CBE.
Last edited by Charlie; - 9th February 2014 at 15:19.
At a quick glance I think your circuit has some GOTCHAS in it.
You can supply a HI to the transistor, but you cannot send a LO to it, (diode blocking it) so the transistor base is floating.
Unsure as to your reason for feeding your ground through a diode.
You have no decoupling or smoothing caps in the 5V line
Also think that your 10K pull down should be on the other side of the diode as when the controller reset is LO the pic is not able to see it as it will not pass through the diode.
Well the biggest issue I see is GPIO.3 MCLR needs to be pulled high unless you disable it in your configs.
I agree with previous about diodes. Remove them especially on the power pins and add the decoupling caps. They are not really necessary in light of the slow speed of your program.
If PIC is getting hot it's sinking/sourcing too much current. Usually to the base of the transistor you'd use a 10K but if you look at datasheet of 2222A you can calculate the right size to get the transistor to saturation. Diodes to transistor isn't necessary and should be removed.
Resistor to GPIO.1 should be at pin to pull pin low when circuit is not setting it high. You can ditch the diode there also.
Since you're doing all that shifting I'd suggest you not use GPIO.0 and GPIO.1. They are the ICSP pins and with out a switch to isolate circuit use of those pins as shown will not allow you to do ICSP. Don't forget GPIO.3 is an input only when configured properly and your controller reset input is the best use of that pin.
I suspect it will work as drawn once you fix the MCLR pin and transistor orientation if incorrect.
Last edited by AvionicsMaster1; - 9th February 2014 at 18:30. Reason: oopse
Bookmarks