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


Messages In This Thread
After Power Loss feature working - by bdherouville - 08-01-2022, 03:11 PM
RE: After Power Loss feature working - by bavay - 08-08-2022, 01:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rock Pro 64 Won't power on matthewmkr 9 1,512 04-29-2025, 12:57 PM
Last Post: matthewmkr
  power button not working Vista8720 0 954 05-07-2024, 11:26 PM
Last Post: Vista8720
  enble boot after power loss/restore dkebler 18 15,821 12-04-2023, 12:14 PM
Last Post: ok38
  Cant get rockpro64 working brasilikum 3 3,371 03-19-2023, 06:22 AM
Last Post: runyor
  RockPro64 Stopped working WarpLover 5 4,714 02-06-2023, 10:10 AM
Last Post: diizzy
  PCIE interface power on too late Slark Xiao 0 1,654 11-29-2022, 11:56 PM
Last Post: Slark Xiao
  Automatic power on after power outage gechu 1 3,797 11-17-2022, 06:13 PM
Last Post: acj_
  PWM fan control low power Connar 0 1,841 12-12-2021, 05:58 AM
Last Post: Connar
  ROCKPro64 sometimes doesn't Power On Pete Tandy 2 4,634 08-24-2021, 05:50 AM
Last Post: Pete Tandy
  Power Supply availability S265 2 5,004 06-07-2021, 09:20 PM
Last Post: S265

Forum Jump:


Users browsing this thread: 1 Guest(s)