Andres Rodriguez
New Member
The schematic shows a circuit designed to monitor the condition of a Mercury switch (shown as a button in the schematic). To avoid using battery power while waiting for a event, I'm trying to use the two transistors as a switch activated by the Merc. switch. Once the program reaches the end, the last instruction will pull down the base of the NPN transistor.
When the gate of the PNP is pulled to ground I expected to measure a voltage equal or very close to V but nothing happens.
This is the code I'm planning to use to avoid using power during the idle time between actuation of the Mercury switch.
I am using a P chan Mosfet https://www.fairchildsemi.com/datasheets/ND/NDT452AP.pdf
When the gate of the PNP is pulled to ground I expected to measure a voltage equal or very close to V but nothing happens.
This is the code I'm planning to use to avoid using power during the idle time between actuation of the Mercury switch.
Code:
[color=Navy]#picaxe [/color][color=Black]08m2[/color]
[color=Navy]#No_Data
[/color][color=Blue]High C.4[/color]
[color=Black]Main:
[/color][color=Green]'THE REST OF THE PROGRAM
'**********************
'**********************
[/color][color=Blue]Low C.4[/color]