This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to delay power on/off (e.g,hold on 3 seconds)

Hi all,

I'm developing a board based on nRF52832.

I want to implement delay power on and power off through holding a single power button for about 3 seconds.

Regarding hardware design, I will connect battery DC-out pin to a GPIO pin directly.

Regarding software design, the functions can be implemented by time delay.

right?

BTW, is there any examples for nRF52832 DK and S132?

Thanks for all.

Parents
  • You'll need to power the processor in order to perform this in software.

    If that is the case then you should have the processor control the power to the rest of the board using another GPIO line and suitable circuitry.

    Just run a timer, start it on your button pressed GPIO line transition and check its value on the button release transition if the timer has run for 3 seconds or more then switch the power to the rest of the board.

Reply
  • You'll need to power the processor in order to perform this in software.

    If that is the case then you should have the processor control the power to the rest of the board using another GPIO line and suitable circuitry.

    Just run a timer, start it on your button pressed GPIO line transition and check its value on the button release transition if the timer has run for 3 seconds or more then switch the power to the rest of the board.

Children
No Data
Related