rhor...@gmail.com
2024-01-28 17:14:20 UTC
I want to use an EC1 rotary encoder to control a battery powered device. The EC1 sports a momentary switch, rather than an on / off switch, however, so I need to add a circuit to latch the momentary pulse. Figure 3 on this page should work: http://www.mosaic-industries.com/embedded-systems/microcontroller-projects/electronic-circuits/push-button-switch-turn-on/latching-toggle-power-switch.
The battery will have an output boltage between 17V and 25V, and the device can use up to 10 amperes, however, so the IRF3719 dual MOSFET suggested on that page won't quite work. Instead, I am using an FQP47P06 P-channel power MOSFET as the main switch and a 2N7002 N-channel MOSFET as the gate driver for the FQP47P06. I don't know why, but it isn't working, however. When the button is pushed, if the device is off, the switch properly turns on, but when the device is already on, pushing the button does nothing. With a 22.0 Volt battery input, pushing and holding the switch brings the voltage at the gate of the 2N7002 to 19.9 Volts, which implies a drain current of about 0.2 milliamps in the 2N7002. That sounds about right.
Looking at the scope, it takes about 150 - 200 ms for the voltage to reach this value, which also seems about right, and as expected, it takes considerably longer for the voltage at the 1uF capacitor to recover to near 0V. I am surmising the 19.9 V level experienced at the top of the cap is not high enough to shut off the FQP47P06. I wonder if the modification below would help?
Loading Image...
The battery will have an output boltage between 17V and 25V, and the device can use up to 10 amperes, however, so the IRF3719 dual MOSFET suggested on that page won't quite work. Instead, I am using an FQP47P06 P-channel power MOSFET as the main switch and a 2N7002 N-channel MOSFET as the gate driver for the FQP47P06. I don't know why, but it isn't working, however. When the button is pushed, if the device is off, the switch properly turns on, but when the device is already on, pushing the button does nothing. With a 22.0 Volt battery input, pushing and holding the switch brings the voltage at the gate of the 2N7002 to 19.9 Volts, which implies a drain current of about 0.2 milliamps in the 2N7002. That sounds about right.
Looking at the scope, it takes about 150 - 200 ms for the voltage to reach this value, which also seems about right, and as expected, it takes considerably longer for the voltage at the 1uF capacitor to recover to near 0V. I am surmising the 19.9 V level experienced at the top of the cap is not high enough to shut off the FQP47P06. I wonder if the modification below would help?
Loading Image...