![]() Therefore, the libraries of bcm2835, wiringPi, python and Webiopi should be installed to the RPi before used. That means you can implement a same function by using different libraries. Some of the sample programs can be implemented via different ways, such as the libraries of bcm2835, wiringPi, sysfs, python and so on. For example, input the line tar -zxvf RPi_Relay_ ~ to extract the downloaded program to the directory of /home/pi. When finished the configurations above, you need to download the sample programs, and then copy and extract them to the system. For more information about the installation and configuration of the RPi library functions, please refer to Libraries Installation for RPi. Development environmentīefore using this expansion board, you should install some libraries to Raspberry Pi, such as bcm2835, wiringPi and python. The sample programs of this board include Shell, bcm2835, WiringPi, python and Webiopi. (PS: Remember to connect the jumper Relay_JMP!)īefore the relay action: After the relay action: At the same time, the relay NO (normally open contacts) close and the NC (normally close contacts) open, so as to change the ON/OFF status of the external circuit. When the Raspberry Pi outputs Low Level from its IO, the LED related to the corresponding channel lights up. This board integrates three screw terminals, and each has three pins for connecting external circuits.Īll the terminals are low active. When this jumper is connected, the relay can be controlled by the Raspberry Pi. Relay_JMP is the relay control pin selecting jumper. Notices: The labels on the PCB are corresponding to the wiringPi code. Correspondence between relay channel and RPi Pin.Raspberry Pi Expansion Board, Power Relay ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |