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) |
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
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 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 |
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