To build our project you must install the following software:
1. A IDE that works with Hardware: Clion or Visual Studio Code (recommended)
2. PlatformIO extension for your IDE
PlatformIO for Visual Studio Code
PlatformIO for CLion
3. Install the ESP32 board support package in PlatformIO
PlatformIO ESP32 Board Support
Clone our GitHub repository and upload the code to both ESP32s:
git clone https://github.com/water-broadcast/iot-project.git
cd iot-project
pio run --environment flower[1 | 2] --target upload
Configure the WiFi credentials by connecting to "AutoConnectAP" with another device (pw: flowerpower) and choosing the WiFi the System should connect to.
Once your setup is finished you should have 2 identical hardware systems, one ESP32 flashed with the Flower1 code and one ESP32 flashed with the Flower2 code. When you now water your own plant your friends plant, no matter how far away, will also get watered if its moisture detector detects its soil as dry. You now have a new way of creating connection with your friend without having to take any extra time during your day. If you are up for the challenge you can copy the system for all the plants in your household and share a plant watering chore and switch duty every week. Even when your friend is on holiday you can take care of their Plants without having even to enter their apartment!
Install Node Red and the dashboard package:
npm install -g --unsafe-perm node-red
npm i node-red-dashboard
Start Node Red:
node-red
Open http://127.0.0.1:1880/ in your browser and navigate through the menu to `Import` > `Clipboard` > `Choose file for upload` and upload `flows.json` from the `Node Red` folder of this repository.
After uploading successfully press `Deploy`
Open http://127.0.0.1:1880/ui and enjoy the handy UI for configuring the amount of water your plant should get or simply watering a plant remotely.
For complete documentation, code, and additional resources, visit our GitHub repository:
https://git.coco.study/ereeb/waterbroadcastThis project is part of the "Library of Closeness" in the VREUNDE project.