Used in a Raspberry Pi 3 v1.2. The main goal is to push data to the cloud from GPIO sensors connected to the Raspberry. And at the same time, the second goal is to have all the code running in microservices, Docker. Also using Google Firebase Realtime Database.
The module used in this project is the FC-37, but it is similar to YL-83
- Analog (Not tested)
- 0 is Wet
- 1023 is Dry
- Digital
- LOW (0) is for Wet
- HIGH (1) is for Dry
- Vcc - 5V
- GND - GND
- A0 - Not connected
- D0 - GPIO 3 (Pinout 5)
curl -sSL https://get.docker.com | sh
sudo usermod -aG docker $USER
sudo pip install docker-compose
Share the GPIO devices /dev/gpiomem
.
It is already done in the docker-compose.yml
.
All data that is readed from the GPIO ports is uploaded to an API REST.