Raspberry Pi

From Domoticz
Jump to: navigation, search
Raspberry Pi 2 Model B

Introduction

The Raspberry Pi is a low cost, credit-card sized computer that can be used for various projects. It is one of the most popular boards by our users.
To get Domoticz running on a Pi, previously you could download a 'Domoticz' SD card image with everything pre-configured.
This method had been discarded.

If you have a new Pi, before you can install Domoticz you need to install a supported operating system on the Pi.
The optimal OS is Raspian Jessy Lite. The installation is not difficult. Click here how to do this.

If succesful, please continue below.

Installation of Domoticz on an already running Pi

  1. Installing Domoticz the easy way, sudo curl -L install.domoticz.com | bash
  2. Installing Domoticz from source


Installation prerequisites are:

  • Raspberry Pi 3 Model B (Raspberry Pi 1 Model B(+) and 2 model B are supported as well)
  • Micro-SD Card minimal 4GB class 10 (Model B require a full-size SD card)
  • Computer with a SD card reader to install a operating system on your SD card
  • Display and HDMI cable
  • USB keyboard and mouse
  • 5V micro USB power supply (2A power supply is recommended, 2.5A for the raspberry pi 3)
  • Ethernet cable (or USB WiFi adapter) connected to your home network

(*) Display, HDMI, keyboard and mouse are NOT mandatory. If you have another computer, you can remote control your RPi. Just find the IP of your RPi (with your router/Home internet Box) and follow all the instructions without the first one 'ifconfig'. Of course you will need to not disable ssh.


Raspberry Pi additional software installations


After a succesful intallation of Domoticz there are several other useful guides to follow:

Setup Raspberry Pi Watchdog
Monitoring Domoticz (monit watchdog)
Installing a PPTP-VPN server on a Raspberry Pi
Setting up a RAM drive on Raspberry Pi
Monitor memory usage
NAS Monitoring
Persistent USB Devices
Secure Remote Access
Adding Tellstick Suport

Please follow at least Persistent USB Devices.
There are numerous forum posts from new users that can not connect to their RFXCOM or Z-Wave stick after a reboot.
By following the guide above this problem cannot happen anymore.

Raspberry Pi related hardware

Raspberry Pi GPIO 40 pin.png

Raspberry Pi General Purpose Input/Output (GPIO)

The Raspberry Pi 1 Model A and B boards have a 26-pin expansion header
The Raspberry Pi 1 Model A+ and B+ boards, and the Pi 2 Model B, have a 40-pin expansion header
Support for the standard GPIO is available in Domoticz release 1726 and onwards.

Domoticz GPIO installation instruction
Raspberry Pi GPIO Domoticz forum thread


PiFace Digital

PiFace Digital.png

PiFace Digital is designed to plug on to the GPIO of your Raspberry Pi. With PiFace Digital you can detect the state of a switch, for example from a door sensor, a pressure pad or any number of other switch types. You can drive outputs to power motors, actuators, LEDs or anything you can imagine. PiFace Digital has eight digital inputs, eight openĀ­-collector outputs, eight LED indicators, two changeover relays and four switches.
The Piface Digital board is compatible with Raspberry Pi 2 Model B, Raspberry Pi Model B and A (26 pin connector)
The PiFace Digital 2 board is compatible with Raspberry Pi 2 Model B, Raspberry Pi Model B+ and A+ (40 pin connector)
Support for the PiFace Digital is available in Domoticz release 1045 and onwards.

Domoticz PiFace Digital installation instruction
PiFace Digital Domoticz forum thread


RaZberry Daughter Card

RaZberry.png

The RaZberry is a tiny daughter card that site on top of the Raspberry Pi GPIO connector not blocking the USB boards. It is powered by the Raspberry Pi board with 3.3V and communicates using TTL signals (RX/TX).
The daughter card hosts a Sigma Designs ZM5202 Z-Wave transceiver module (a so called 5th generation Z-Wave module; old RaZberry hardware was based on ZM3102 module - so called 3rd generation Z-Wave module), an external 32 K SPI flash for network data and a PCBA antenna. Additionally two LEDs are used to indicate certain status of the Z-Wave controller chip.
This board is compatible with Raspberry Pi 3, Raspberry Pi 2 Model B, Raspberry Pi B(+) and is supported by Domoticz.

NEW - Domoticz RaZberry installation instruction Raspberry Pi 3 in combination with OpenZwave.
OLD - Domoticz RaZberry installation instruction in combination with OpenZwave. Please note there is no active support on Domoticz in combination with the Z-way software.

Pi-mote

The Pi-mote control board is is a low cost and a simple wireless controller, dedicated to the Raspberry Pi computer, and Energenie ENER002 RF controlled mains sockets. It is an extremely simple, transmit only, open loop system controlled by six GPIO pins in "out" mode on the Raspberry Pi. It plugs directly into a Raspberry Pi computer, and is powered from the Pi.

Pi-Mote Pi-mote installation instruction


Links

Raspberry Pi Foundation website
Raspberry Pi GPIO details
PiFace Digital website
RaZberry website
Pi-mote website