AXT style powerswitch fail
Posted: Sat Nov 14, 2015 9:27 am
Hello,
Sort explanation: I'm using a microcontroller to switch on a relay, that switches on/off the Raspberry.
When the OS is loaded, one of the GPIO pins turns high, so the microcontroller detects that the OS is loaded, and when you press the power button again for a few seconds, the microcontroller sends a shutdown command to the Raspberry so it will shutdown properly. Then the GPIO pin is low again, so the microcontroller turns off the relay, turning of the power to the Raspberry.
Sounds simply, right ? But for some reason, when the relay switches on the Raspberry, my microcontroller shorts out and the relay switched off immediately.
When I switch on the relay first, and then attach the Raspberry, it works fine...
(NOTE: The GPIO pins were not connected when testing this, so they didn't cause the short of other weird power problems)
So there is some sort of huge power spike when the Raspberry is switched on...?
Any know of this problem, or any have a solution ?
Sort explanation: I'm using a microcontroller to switch on a relay, that switches on/off the Raspberry.
When the OS is loaded, one of the GPIO pins turns high, so the microcontroller detects that the OS is loaded, and when you press the power button again for a few seconds, the microcontroller sends a shutdown command to the Raspberry so it will shutdown properly. Then the GPIO pin is low again, so the microcontroller turns off the relay, turning of the power to the Raspberry.
Sounds simply, right ? But for some reason, when the relay switches on the Raspberry, my microcontroller shorts out and the relay switched off immediately.
When I switch on the relay first, and then attach the Raspberry, it works fine...
(NOTE: The GPIO pins were not connected when testing this, so they didn't cause the short of other weird power problems)
So there is some sort of huge power spike when the Raspberry is switched on...?
Any know of this problem, or any have a solution ?