User Manual

Expected result: Three LEDs light up by turns and the relays switch back and forth between the NC node
and NO node. In the meantime, the terminal will show the node that the current relay stays at.
Press the keys Ctrl + C to end the program.
Python program
Execute the following line under the terminal:
pi@raspberrypi~/RPi_Relay_Board/python$sudopythonRelay_Module.py
Expected result: Three LEDs light up by turns and the relays switch back and forth between the NC node
and NO node. In the meantime, the terminal will show the node that the current relay stays at.
Press the keys Ctrl + C to end the program.
Webiopi program
The webpage remote control in this sample program is based on the WebioPi software architecture to
control the relay.
Environment installation:
Enter the directory of Webiopi, and then unzip and install the library file.
pi@raspberrypi~/RPi_Relay_Board/Webiopi$tar‐zxvfWebIOPi‐0.7.1‐raspi2.tar.gz
pi@raspberrypi~/RPi_Relay_Board/Webiopi$cdWebIOPi‐0.7.1‐raspi2
pi@raspberrypi~/RPi_Relay_Board/WebioPi/WebIOPi‐0.7.1‐raspi2$sudo./setup
Run the command
webiopi‐h
under the terminal; if the library is installed successfully, the screen will display the information as the
figure below shows.