hemnath
Advanced Member level 3
Hi,
Source: https://circuits-diy.com/soft-latch-switch-circuit/
I need to design a circuit where the button should do three tasks.
1. Power on the micro-controller - (when SW4 is pressed once)
2. acting as an input to the micro-controller - (connect B_ONOFF to microcontroller pin)
3. turn off the micro-controller - (connect AUTO_OFF to microcontroller pin).
For battery monitoring, R15 and R18 are used as voltage divider and connected to microcontroller pin(BAT_STATUS). I have not tested this circuit. Any comments on this to improve. Microcontroller PIC24FJ64GL306 supply voltage is 3V. When the microcontroller pin is connected to B_ONOFF, does the pin gets affected?
I also need to connect 24V DC power to the circuit. When DC power is available, the circuit should operate through this 24V DC. and when it is not available, the circuit operate through 3xAA battery. How can i modify the circuit. Also, i need three tasks from the button.
Source: https://circuits-diy.com/soft-latch-switch-circuit/
I need to design a circuit where the button should do three tasks.
1. Power on the micro-controller - (when SW4 is pressed once)
2. acting as an input to the micro-controller - (connect B_ONOFF to microcontroller pin)
3. turn off the micro-controller - (connect AUTO_OFF to microcontroller pin).
For battery monitoring, R15 and R18 are used as voltage divider and connected to microcontroller pin(BAT_STATUS). I have not tested this circuit. Any comments on this to improve. Microcontroller PIC24FJ64GL306 supply voltage is 3V. When the microcontroller pin is connected to B_ONOFF, does the pin gets affected?
I also need to connect 24V DC power to the circuit. When DC power is available, the circuit should operate through this 24V DC. and when it is not available, the circuit operate through 3xAA battery. How can i modify the circuit. Also, i need three tasks from the button.