how can i control 4 solid state relays using my raspberry pi ???
how i connect the solid state relays with raspberry pi and how i control them via the ‘/sys’ filesystem ??
I mean how can i control them with commands like this :
Enable GPIO 17 access via the Kernel on path ‘/sys/class/gpio/’, and configure it as an output pin: -
echo "17" > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio17/direction
View the current state of GPIO 17: -
cat /sys/class/gpio/gpio17/value
Set the state of GPIO 17 by writing “1″ for high (relay on) and “0″ for low (relay off): -
echo "1" > /sys/class/gpio/gpio17/value
echo "0" > /sys/class/gpio/gpio17/value