Wed Mar 25, 2020 9:12 am
CAUTION! SAFETY FIRST!
as AC 220V mains will be involved, this project is best done with a supervision of a certified/licenced electrical technician
on wrong move, may cause injury to your or anyone near you, and/or may cause damage to property.
first you need to get a step down transformer to convert AC 220v to AC 24v
the rating will depend on the total power required by the solenoids,
plus safety factor of at least, say, 50%, better if at least twice the total,
and get the nearest one (higher rating) available.
to select the relay, again check the ampere rating of the solenoid valve, and get a relay with a rating of at least twice the ampere rating.
once the relay is selected (it may be some of those pre-built modules for the arduino ecosystem),
then you'll need to make an additional circuit to be able to activate that using the RPi's GPIO.
there are lots of examples of that circuit here in the forum, with schematics masterfully made by @pcmanbob
SAFETY FIRST!
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"
Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"