washed / drempelbox

0 stars 0 forks source link

Power on/off #5

Closed washed closed 6 months ago

washed commented 9 months ago

After we have a possible, to be tested, solution in #11, we collect some additional stuff for discussion etc here. This thereby obsoletes #7.

washed commented 9 months ago

See #11 for a possible solution.

washed commented 8 months ago

I did some measurements to see if we have an issue here as described in https://github.com/washed/drempelbox/pull/11#pullrequestreview-1708477097.

off

regular_of CH1: AMP_SD CH2: AMP_SD_PI

on

regular_on CH1: AMP_SD CH2: AMP_SD_PI

regular boot

regular_boot CH1: AMP_SD CH2: AMP_SD_PI interesting blip there, maybe from GPIO configuration

being rude and pulling the USB plug at the power bank

pulling_usb_plug CH1: AMP_SD CH2: AMP_SD_PI

power bank turns on (pressing the button)

power_bank_turns_on CH1: AMP_SD CH2: VDD (12V rail) note that we only see the ramp up from 5V to 12V here. Might need another capture, timing could also be interesting here. Very clean slope, though.

power bank shuts off due to low current condition

powerbank_shuts_off CH1: AMP_SD CH2: VDD (12V rail)

tmh-alex commented 8 months ago

This all looks very promising as already mentioned on Signal, and if I'm not mistaken, your efforts already bore fruits to turn the box reliably off. Then power-on part, on the other hand... :thinking: We have all sorts of ideas after the MVP, but a simple solution to start with?

washed commented 8 months ago

The current circuit covers power on, in theory. I need to try it in practice. The idea was to rewire the button so it starts the power bank and the 5V supply. Shutdown via the same button should also be possible with another GPIO and some diodes.

washed commented 6 months ago

Newest implementation in #15 should address all remaining issues we discovered in here.