RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Problem with momentary button

    Scheduled Pinned Locked Moved ControlBlock, PowerBlock & Co.
    momentary
    2 Posts 2 Posters 485 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      blacknell
      last edited by

      I've hooked up a momentary button but the device is not performing as expected.

      When I first apply power, the RPi does not power up. I must press the button to switch on. Later pressing it again shuts it down.

      But after a power cut, the device stays off.

      I can't live with this - if I'm away then the RPi's must boot up after a power cycle.

      I tried using the NC contacts and that works on boot but then - I think - the onboard is deciding its a toggle switch and so pressing it shuts it down and immediately reboots it.

      Can you help?

      I have bought 5 of these boards and 5 switches so I really need a fix

      P 1 Reply Last reply Reply Quote 0
      • P
        petrockblog Global Moderator @blacknell
        last edited by

        @blacknell Hi! I have just replied to your email.

        Generally, the default PowerBlock firmware does not return to the previous power state upon power loss. However, I did work on this feature some months ago and I built an updated firmware version for the PowerBlock that contains this feature: Upon switch on, the PowerBlock persists the ON state as target state. When in ON state and a power button switch off event is observed the OFF state is persisted as target state. When a power-reset event occurs the PowerBlock returns to the previously persisted target state.

        If you have a programmer for the ATTiny85 microcontroller on the PowerBlock you could just download this other firmware.

        I am happy to provide this firmware upon request. New batches of the PowerBlock might get this firmware per default, eventually.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

        Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.