Raspberry Pi - PiFace

PiFace Relay+ with PiFace Motor Control

PiFace Digital allows you to connect things like switches, lights and motors to your Raspberry Pi.

Attribute Value
Relays (PiFace Relay+) 4 @ 20V/1A
LEDs (PiFace Relay+) 4
Specials (PiFace Relay+) Stackable up to eight boards
H-Bridge (PiFace Motor Control) 2 (5Volt DC and stepper motors)

PiFace Relay+

Set jumper JP1, JP2 and JP3 to pins "12" and remove JP4. Connect 5V to PiFace Relay+ board.

aptĀ­get update
apt-get install python3-pifacerelayplus
python3 /usr/share/doc/python3-pifacerelayplus/examples/blink.py

PiFace Motor Control

pfr = pifacerelayplus.PiFaceRelayPlus(pifacerelayplus.MOTOR_DC)
pfr.motors[1].forward()
pfr.motors[1].brake()
pfr.motors[1].reverse()
pfr.motors[1].coast()

Python Module Relay+ Website Motor Control Website Relay+ PDF Motor Control PDF

PiFace Relay+/ PiFace Digital2

PiFace Digital/ PiFace Digital2

PiFace Digital allows you to connect things like switches, lights and motors to your Raspberry Pi.

Attribute Value
Relays 2
Tactile Switches 4
Digital Inputs 8
LED Indicators 8
Open-Collector Outputs 8

Install and Test

Enable SPI and install piface

sudo su
raspi-config
# -> 8 Advanced Options
# -> A6 SPI - Enable/Disable automatic loading

apt-get install python{,3}-pifacedigitalio python{,3}-pifacecommon
python3 /usr/share/doc/python3-pifacedigitalio/examples/blink.py 

Website Wiki/API PiFace-Digital1 PDF PiFace-Digital2 PDF

PiFace Digital/ PiFace Digital2