Pushbutton Power Switch question


is there a way to modify the pushbutton power switch so that it can’t be switched off with the pushbutton - just via the off pin? And if thats possible can I read subsequent pushes to the power button with an arduino?



The first part is pretty easy: instead of putting in the pushbutton in its usual spot, connect one side of the button to ground and the other side to the switch pad that is closer to the edge of the board. The second part is harder. You would need to monitor that side of the switch that is not connected to ground. That node goes to your full input voltage when power is off, so you need a circuit that can tolerate that and that does not draw much power (since that would defeat the point of the circuit being off). When the circuit is on, that node goes to about a third of your input voltage.

- Jan