Im not sure if the (B) PNP transistor is in fact a PNP, it could be some weird 3 pin device.
I would assume (B) is a Diode in a three pin package.
(Cathode should be connected to the red wire of the solenoid, anode to the black wire.
Is there any SMD code printed on it?
also its weird how there is a 5+ going into the solenoids RED supply and 4.2+ going into the solenoid on the BLACK supply.
with the NPNs (A) base low there is a voltage drop of about 0.8V accross the solenoid, this means there must be something else connected to the NPNs collector that is drawing current.
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.
looks like the solenoid draws more power than the Vreg can deliver, that causes the voltage drop at the Vreg's output.
even if i drive the portc.2 LOW the transistor stays on cause the board has "crashed".
If the transistor stays on, the base isn't low !
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.
Questions:
1. what is the resistance of the solenoid?
2. what kind of multimeter are you using and what is it's input resistance in the voltage range you have selected?
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.
are you really sure the schematic matches the board?
Last edited by NavMicroSystems; - 7th May 2005 at 16:17.
regards
Ralph
_______________________________________________
There are only 10 types of people:
Those who understand binary, and those who don't ...
_______________________________________________
Bookmarks