https://github.com/kleag/moisture
A plant soil moisture management application using Arduino MKR 1000, moisture sensor and 5V pump.
https://github.com/kleag/moisture
arduino gardening plant restful-api sensor
Last synced: 6 months ago
JSON representation
A plant soil moisture management application using Arduino MKR 1000, moisture sensor and 5V pump.
- Host: GitHub
- URL: https://github.com/kleag/moisture
- Owner: kleag
- License: other
- Created: 2021-04-12T12:00:50.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-25T18:06:05.000Z (almost 4 years ago)
- Last Synced: 2025-02-13T20:52:11.171Z (8 months ago)
- Topics: arduino, gardening, plant, restful-api, sensor
- Language: Python
- Homepage:
- Size: 5.12 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
A plant soil moisture management application using Arduino MKR 1000, moisture sensor and 5V pump.
This project contains the Arduino sketch in the [arduino folder](https://github.com/kleag/moisture/tree/main/arduino/moisture_lcd) and the [Django REST framework-based API](https://github.com/kleag/moisture/tree/main/). There is also example configuration files to deploy the application using nginx and gunicorn in [etc](https://github.com/kleag/moisture/tree/main/etc). It is up to you to learn how to deploy a Web service using Django, nginx and gunicorn but feel free to open issues if you have questions, suggestions or (constructive) critics on this project itself.

This project was realized using [this kit available from Amazon](https://www.amazon.fr/gp/product/B0814HXWVV/ref=ppx_yo_dt_b_asin_title_o05_s00?ie=UTF8&psc=1). I had two problems using it. Firstly, the relay was open when HIGH on the Arduino pin and closed when LOW. Secondly, the pump was creating important electric perturbations, causing strange characters to appear on the screen and changes on the analog moisture measures.
Thanks to [this page](https://arduinodiy.wordpress.com/2018/08/07/re-inverting-an-inverting-relay/) and the [Electronique/Dépannage/Mécanique/Physique/Chimie/Informatique/Modélisme](https://www.facebook.com/groups/168734660482761/) Facebook group (thanks Olivia!), I was able to make it work as I wanted. You can see on the upper right the filtering part and on the lower right the transistor-based inverser.
After testing on the above breadboard, I made this perfboard schema:

I made some little changes during the soldering itself and got this result:
- 
- # Deployment
Starting the service in deploy mode:
```bash
$ sudo service gunicorn start
```Starting the service in debug mode:
```bash
$ source /home/gael/miniconda3/bin/activate moisture
$ python manage.py runserver
```