I have 4 24v solenoid valve that control an irrigation system. The controller has failed the M5Stack relay Controller appeared in a deal list, seeing i2c and the relay specs impulse buy made. Having looked for python code to use with a spare Rpi quickly discovered that it doesn’t exist :( .
Is there a way of being able to switch one relay on (sending 24v dc to one of the solenoid valves until switched off). The code would need to switch each solenoid valve on for a period of minutes then off in turn then sleep for a period of time (usually 24hrs.
Seems to be three options:
- write something in an RPi language if it is possible.
- get an Arduino board or emulator and link that to the Rpi and M5Stack module
- Cancel the order and look for an alternative.
I am a novice at writing code but have managed to get a cambot working using i2c components which came with set up code.
Help, ideas, or observations will be gratefully received!!