Skip to content

Hardware

TheYOSH edited this page Jul 10, 2018 · 32 revisions

Here is a list of hardware that are supported by TerrariumPI

GPIO Pin setup

All hardware is connected using PHySICAL pin numbering. Which is from 1-40. The software will translate it to BCM if needed. https://pinout.xyz/

GPIO Power saving

In order to spare the device, you can use a second GPIO port for power management. In that case use the following value as address: [GPIO_ReadoutPin],[GPIO_Powerpin]. In this way, the second pin number is used for powering up and down the sensor. This will reduce the amount of power usage, and some sensors will benefit from this, especially moisture sensors.

I2C bus

I2C sensors are supported. By running i2cdetect -y X you can see the I2C addresses of the devices. These values are used as input address in TerrariumPI. TerrariumPI uses by default 1 for bus number.

example output i2cdetect -y 1:
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: 10 -- -- -- -- -- -- -- 18 -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- 29 -- 2b -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Sensors

Here you will see all the sensors that can be read out by TerrariumPI

Temperature

Temperature sensors can be read out in degrees Celsius or Fahrenheit

Chirp

The Chirp sensor can read out temperature through I2C bus. It can be used on both I2C buses if needed.
https://www.tindie.com/products/miceuz/i2c-soil-moisture-sensor/
If you want to use multiple Chirp devices, make sure you change the I2C address per Chirp first to make sure they do not use the same address. This can be done with the debugging tools.

setting value: [I2C_address],[I2C_bus] where I2C_bus is optional

Debugging: To debug or change the address of your Chirp, use this code: https://github.com/ageir/chirp-rpi

AM2302

DHT11

DHT22

DHTXX and AM2302 are supported through GPIO. Make sure you have the sensor connected correctly and using the right resistor. These sensors are a bit sensitive and can break easily.

setting value: [GPIO_address]

Debugging: Go to the folder Adafruit_Python_DHT/examples in the pi home direcory. There run the AdafruitDHT.py. It will give the needed options to test your sensor.

DS1820

Use the standard PI 1wire bus system to connect multiple DS1820 temperature sensors. The sensors will automatically detected and added to the system.
ex: http://www.reuk.co.uk/wordpress/raspberry-pi/connect-multiple-temperature-sensors-with-raspberry-pi/

setting value: None, will be automatic detected

Debugging: list the 1 wire system folder ls -l /sys/devices/w1_bus_master1/ and look for folder starting with a number

SHT2X

Humidity

AM2302

DHT11

DHT22

See temperature

HIH400

Moisture

Chirp

See temperature

SHT2X

YTXX

Use GPIO nummer for reading out the value. This will be used to read out the digital pin of the sensor.

Conductivity

Distance

HC-SR04

pH

SKU SEN0161

Light

Chirp

See temperature

Power switches

GPIO

Nextevo

Dimmer

VMA400

Switch

USB

EG-PM2

Denkovi

Remote

EG-PM2

Display

LCD

LCD 16x2

LCD 20x4

Oled

128x64

LED

Notification

PiStop Traffic Light Add-on

https://shop.4tronix.co.uk/products/4-pack-pi-stop-educational-pistop-traffic-light-add-on-for-raspberry-pi

Clone this wiki locally