Using Raspberry Pi 3 Model B+ to help us auto watering plants, and if there are birds aproaching, buzzer will noise to scare them away!We also have a dashboard(web)to view all related data which could auto switching between Day theme and Nithgt theme!And you could also remote control Raspberry Pi to watering or noising by clicking the button on website if you want!
- Wiring to Raspberry Pi
- Install Libraries on Raspberry Pi
- Download this Repository on Raspberry Pi
- Run Web Server on Raspberry Pi
- Open the Website
- [I2C]Light:APDS9960
- [I2C]Air Quality:SGP30
- [I2C]Temperature & Humidity:SHT31-D
- [SPI]Acceleration:ADXL203EB
- [GPIO]Watering:Bump
- [GPIO]Noise:Buzzer
SGP30:0x58 |
APDS9960:0x39 |
SHT31-D: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 | → | MCP3008 | → | 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
git clone https://github.com/5j54d93/NTOU-CS-Project
cd NTOU-CS-Project
sudo python3 Demeter.py
You could open it on computer, iPhone, iPad ......, as long as your device has a browser.
Make sure your device and Raspberry Pi are connect to the same WiFi.
- URL:
http://[your ip]
- use
ifconfig
to check your ip - replace
[your ip]
to something like192.xxx.x.xx
or192.xxx.x.xxx
This package is MIT licensed.