After Power Loss feature working
#1
Hi,

I successfully implemented a solution for having an "after power loss" feature on my rockpro64.
I use an esp8266 with a relay shield, connected to the rpi connector.  5V is provided through the rpi connector as soon as the 12v DC plug provides power
3.3v pin is connected to a GPIO of the esp8266. The pin is to 0v if the RockPro64 is off.
If the rockpro64 is off  the esp8266 detect that the 3.3v pin is down and it turn on the relay for 1s.

I use esphome to configure my esp8266.

Code:
switch:
  - platform: gpio
    id: rp64_switch
    name: "rp64_switch"
    pin: D1
   
binary_sensor:
  - platform: gpio
    id: rp64on
    filters:
    - delayed_off: 10s
    pin:
      number: D5
      mode:
        input: true
    on_state:
      then:
        - if:
            condition:
              binary_sensor.is_off: rp64on
            then:
            - switch.turn_on: rp64_switch
            - delay: 1s
            - switch.turn_off: rp64_switch
  Reply
#2
Hi!

If I understand what you wrote, you've made a system able to automatically restart your RockPro64 when recovering power after a power loss?! I'm looking for something to do this (I have now a UPS so short power losses would not even stop it and it would cleanly shutdown after longer power losses but I would like to be able to automatically restart if the power went down). Could you tell me more about what you've done?

Thanks!
Mathias
  Reply
#3
(08-08-2022, 01:15 PM)bavay Wrote: Hi!

If I understand what you wrote, you've made a system able to automatically restart your RockPro64 when recovering power after a power loss?! I'm looking for something to do this (I have now a UPS so short power losses would not even stop it and it would cleanly shutdown after longer power losses but I would like to be able to automatically restart if the power went down). Could you tell me more about what you've done?

Thanks!
Mathias

Hi Mathias,

Thank you for your comment ! I used a small development module that simulate a manually push of the power button when the power is restored.
For that it detects if the board is up through the 3.5v pin of the Rpi conector and if not, it shunt the button pins.
I'll upload all the stuff on my github account. Just let me a little time.

Best regards
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  enble boot after power loss/restore dkebler 11 2,049 06-22-2022, 09:39 PM
Last Post: dkebler
  PWM fan control low power Connar 0 749 12-12-2021, 05:58 AM
Last Post: Connar
  Automatic power on after power outage gechu 0 1,097 08-29-2021, 01:46 PM
Last Post: gechu
  ROCKPro64 sometimes doesn't Power On Pete Tandy 2 2,073 08-24-2021, 05:50 AM
Last Post: Pete Tandy
  Power Supply availability S265 2 2,481 06-07-2021, 09:20 PM
Last Post: S265
  control RP64 power on LMM 0 1,283 04-15-2021, 02:59 AM
Last Post: LMM
  Performance and Power Demand RockPro64 fotastisch 7 9,054 02-05-2021, 07:45 PM
Last Post: foresto
  Automatically run after power recovery thomas88 14 14,877 11-30-2020, 01:34 PM
Last Post: rolisr
  When did the wifi module start working? stormchaser3000 1 2,146 11-12-2020, 08:59 AM
Last Post: Darren
  Audio 3.5mm Jack not working clement 9 8,461 05-24-2020, 09:38 AM
Last Post: clement

Forum Jump:


Users browsing this thread: 1 Guest(s)