ok i tried to make a shcematc for ya. disregard the black box around the circuit if any.
Im not sure if the (B) PNP transistor is in fact a PNP, it could be some weird 3 pin device.
also its werid how there is a 5+ going into the solenoids RED supply and 4.2+ going into the solenoid on the BLACK supply. when i drive the npn base high (portc.2) the solenoid gets "stuck on" the 4.4 that was present on the BLACK is now 0vdc. and the RED is at 3.5 vdc, meaning the vdd is at 3.5.
even if i drive the portc.2 LOW the transistor stays on cause the board has "crashed". now i cant read the voltage at the transistor base because when i put the (my multimeter) black probe on the battery ground and the red probe
on the NPN base it drives the base Low making te solenoid turn off, and putting 5+ back on the VDD, thereby reseting the pic to the top of the program. if i disconnect the solenoid, i get all the expected reading at the expected times, e.g. portc.2 will actully out a 5+ vdc when i tell it to and 0vdc when i tell it too.
lastly, im telling you there is not a harware problem, power supply problem, solenoid problem. i have tested all my parts on another board, that still has the old code, and they work.
Bookmarks