Skip to content

[Help Wanted] - Creating custom script accessing GPIO pins #120

@vader7071

Description

@vader7071

As I was preparing one of my ORP controllers, I remembered that the Pi isn't a huge fan of just being "turned off". It rather prefers to use a shutdown command. Thinking on this, I have built a hardware schematic to do the following:

  • provide small battery backup power to the Pi
  • monitor if normal power is available
  • if power is lost, maintain uninterrupted power via the backup battery long enough to let the Pi go through its shutdown procedure
  • once pi is shutdown, disconnect the battery so that when normal power returns, the pi will boot up, return to normal operation, and reconnect the battery.

Thing is, to do this, I need to monitor one GPIO pin as an input and trigger one GPIO pin as an output. I can write a script in Python (is there a better language for this?), but I'm just not sure how to access the necessary pins. Once I get that part working, I can work on developing this script to run as a service. I have an ICS 1x Pi board and an ICS 2x Pi board.

The follow-up question on this, has anyone already done this? If not, would this be a feature that others are interested in? I don't mind sharing once I get it up and running.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions