Difference between revisions of "Install RPi relay board"

From xPL
Jump to: navigation, search
(Created page with "The [http://www.waveshare.com/wiki/RPi_Relay_Board Waveshare RPi Relay Board] houses 3 relays controlled by [https://www.raspberrypi.org/ Raspberry Pi] General-Purpose Input/O...")
 
(WiringPi)
Line 8: Line 8:
  
 
= WiringPi =
 
= WiringPi =
 +
 +
Ckeck the [http://www.waveshare.com/wiki/Libraries_Installation_for_RPi#Install_WiringPi_Library download link].
 +
 +
Install the library:
 +
su
 +
cd /tmp/
 +
wget http://www.waveshare.com/w/upload/f/f3/WiringPi.tar.gz
 +
tar -xvzf WiringPi.tar.gz
 +
cd wiringPi/
 +
chmod 777 build
 +
./build
 +
 +
Check the installation:
 +
gpio -v
  
 
[[Category: all]] [[Category: install]] [[Category: xPL]]
 
[[Category: all]] [[Category: install]] [[Category: xPL]]

Revision as of 16:29, 30 March 2017

The Waveshare RPi Relay Board houses 3 relays controlled by Raspberry Pi General-Purpose Input/Outputs (GPIOs).

They can be controlled by:

WiringPi

Ckeck the download link.

Install the library:

su
cd /tmp/
wget http://www.waveshare.com/w/upload/f/f3/WiringPi.tar.gz
tar -xvzf WiringPi.tar.gz
cd wiringPi/
chmod 777 build
./build

Check the installation:

gpio -v