OpenSprinkler Forums OpenSprinkler Unified Firmware Changing GPIO pin assignment

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #83847

    cat2devnull
    Participant

    I’ve been building my own OpenSprinkler hardware using a Pi Zero 2WH and a 16 port relay board. Out of the box the system works great but when I add a W5500 ethernet board (the location for install has ethernet but poor wifi), I start running into trouble. The W5500 needs to use 6 GPIO pins (GPIO 8, 9, 10, 11, 24 and 25). Some of these overlap with GPIO pins used by OpenSprinkler. I’m trying to work out where the GPIO pins are defined in OpenSprinkler and how I can go about adjusting them to free up these pins.
    I assume this needs to be done in a configuration file and then recompile because making the change in the GUI to not use the GPIO pins in question does not help. I assume the pins are grabbed at a hardware level on loading OpenSprinkler making them inaccessible to the W5500.
    Any help appreciated.

    #83850

    Ray
    Keymaster

    The pins are defined in defines.h. Frankly these are questions that today’s gen AI (chatgpt, gemini, claude etc.) can answer really well: you can point them to the github repo and ask where the pins are defined. For example, you can ask the following:

    Here is the opensprinkler firmware repo: https://github.com/OpenSprinkler/OpenSprinkler-Firmware where are pins for OSPi defined?

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums OpenSprinkler Unified Firmware Changing GPIO pin assignment