-
-
Notifications
You must be signed in to change notification settings - Fork 102
Hardware
Here is a list of hardware that are supported by TerrariumPI
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/
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 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: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Here you will see all the sensors that can be read out by TerrariumPI
Temperature sensors can be read out in degrees Celsius or Fahrenheit
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
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.
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
See temperature
See temperature
Use GPIO nummer for reading out the value. This will be used to read out the digital pin of the sensor.
See temperature
Dimmer
Switch