- Project name:Demeter
- Mentor:Weihsuan
- Team:2
- [I2C]Air Quality:SGP30
- [SPI]G-Sensor:ADXL203EB
- [I2C]Light:APDS9960
- [I2C]Temperature & Humidity:SHT31-D
- Air Quality:
0x58
- Light:
0x39
- Temperature & Humidity:
0x44
pi@raspberrypi:~ $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- 39 -- -- -- -- -- --
40: -- -- -- -- 44 -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- 58 -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
- Raspberry PI to MCP3008 to ADXL203EB
pi@raspberrypi:~ $ ls -l /dev/spidev*
crw-rw---- 1 root spi 153, 0 Aug 28 13:17 /dev/spidev0.0
crw-rw---- 1 root spi 153, 1 Aug 28 13:17 /dev/spidev0.1
sudo pip3 install -r requirements.txt
sudo python3 SmartGardener.py
- use
ifconfig
to check your ip - replace
[your ip]
to something like192.xxx.x.xx
or192.xxx.x.xxx
Connect ground to Buzzier's negative pin, Raspberry Pi pin 16 (GPIO 23) to Buzzier's positive pin
- Relay's VCC connect pin4(5v5)
- Relay's GND connect pin6(GND)
- Relay's IN connect pin18(GPIO24)
- Relay's NO connect pin17(3v3)
- Relay's COM connect Pump's red wire
- Pump's black wire connect ground