Quellcode durchsuchen

Added giess-o-mat project page and photos

Thomas Buck vor 3 Jahren
Ursprung
Commit
d73dea4bbc

+ 106
- 0
input/projects/giessomat.md Datei anzeigen

@@ -0,0 +1,106 @@
1
+title: Gieß-o-mat
2
+description: DIY fertilizer mixer and plant watering machine
3
+parent: projects
4
+position: 6
5
+github: https://git.xythobuz.de/thomas/giess-o-mat
6
+date: 2021-03-29
7
+update: 2021-04-25
8
+---
9
+
10
+Since moving into my own flat in 2019 I started growing quite a bunch of plants.
11
+It started with carnivorous plants and some decorative stuff on the balcony (also good for the insects!).
12
+Last year some herbs like basil were added.
13
+And this year I also have quite a selection of different Paprika/Chili strains growing, as well as some Tobacco.
14
+
15
+So it seemed natural to build a machine that can help me with watering the plants and mixing in some fertilizer solution into the water once in a while.
16
+
17
+## Overview
18
+
19
+The machine consists of a 5l watertank.
20
+A solenoid valve controls the mains-water-line inlet to the tank.
21
+Small amounts of fertilizer mixture can be added to the tank using peristaltic pumps.
22
+The whole system is mounted high-up on the top of my plant shelf.
23
+That way, gravity is feeding the water from the tank to the outlets, controlled by more solenoid valves.
24
+Of course, the outlet valves can also be replace by pumps, so everything can be mounted level, or the machine below the plants.
25
+
26
+Even though the software uses float-switches to measure the fill-height in the tank, maximum safety timeouts are implemented for every action, so the chance of flooding the house are minimized.
27
+Still, I always manually close the mains-water-inlet with a proper hand-controlled valve after using the machine and open it only when needed, just in case!
28
+
29
+(I'm a software developer by trade, so I'm relatively confident the software works, but I don't trust my plumbing skills too much...) 😊
30
+
31
+## Implementation
32
+
33
+The machine is using two microcontrollers, an [Arduino Nano clone](https://amzn.to/3sQ4Otl) and an [ESP32](https://amzn.to/3xmDh6k).
34
+
35
+The Arduino provides the userinterface, using a 20x4 LCD from a now-obsolete Sparkfun project called [SerialLCD](https://www.sparkfun.com/products/retired/9568).
36
+It is connected to the Arduino via serial.
37
+Input is done using a cheap 3x4 Keymatrix directly conencted to the Arduino GPIOs.
38
+I also added a power switch and some voltmeters for the different voltage regulators and a main power switch.
39
+All this is mounted in a simple 3D-printed frontpanel.
40
+
41
+<div class="lightgallery">
42
+    <a href="img/giessomat_1.jpg">
43
+        <img src="img/giessomat_1_small.jpg" alt="Front of the UI unit">
44
+    </a>
45
+    <a href="img/giessomat_2.jpg">
46
+        <img src="img/giessomat_2_small.jpg" alt="Back of the UI unit">
47
+    </a>
48
+</div>
49
+
50
+The actual control is done on an ESP32 which is connected to two [4-channel relais boards](https://amzn.to/2QW0Sty).
51
+Using these, it controls five valves (one inlet and four outlets) as well as three pumps for the fertilizers.
52
+For the outlet valves I'm using cheap small chinese solenoid valves.
53
+For the inlet, I'm using a more expensive metal solenoid valve from Germany that is able to resist the mains-water-pressure (up to 8bar) that I still had from my cocktail machine experiments.
54
+Two float switches are used to tell the fill-height of the water tank.
55
+The ESP32 also provides a simple webinterface to allow the same controls as from the userinterface.
56
+
57
+<div class="lightgallery">
58
+    <a href="img/giessomat_5.jpg">
59
+        <img src="img/giessomat_5_small.jpg" alt="Float switch and valve used">
60
+    </a>
61
+</div>
62
+
63
+Both UI and controller are connected to each other using I2C.
64
+All relevant signals are transmitted with a simple DB-9 cable.
65
+
66
+All this is mounted on an old piece of shelf-board, using some custom designed 3D printed parts.
67
+The water tank is realized using a generic 5l liquid tank, with two holes drilled for the fill switches. The holders for the fertilizer bottles, as well as the bottlecaps, are specifically designed to fit my 1l fertilizer bottles.
68
+
69
+<div class="lightgallery">
70
+    <a href="img/giessomat_3.jpg">
71
+        <img src="img/giessomat_3_small.jpg" alt="Side view of the machine">
72
+    </a>
73
+    <a href="img/giessomat_4.jpg">
74
+        <img src="img/giessomat_4_small.jpg" alt="Top view of the machine">
75
+    </a>
76
+</div>
77
+
78
+Most of the parts I had lying around in the workshop.
79
+I only had to buy the outlet valves after realizing one of the big valves I still had was no longer working.
80
+Also the pumps, hoses and hose-adapters had to be bought.
81
+
82
+The software can easily be configured to run with more or less fertilizers and outlets, as much as the ESP32 GPIOs can provide.
83
+Alternatively, you can also use an Arduino for the controller instead of the ESP, losing the webinterface.
84
+Or you can also compile the software to run both UI and control on one Arduino, as long as it has enough GPIOs for your needs (or an ESP, but I haven't tested that).
85
+You can of course also just leave out the UI and use solely the webinterface on the ESP. See the [README.md of the project](https://git.xythobuz.de/thomas/giess-o-mat/src/branch/master/README.md) for more details.
86
+
87
+Doing some programming, it would also be possible to use some kind of port-extender or run also the UI on an ESP.
88
+And of course also the now-obsolete SerialLCD could be replaced with something different without too much work.
89
+
90
+## Future Extensions
91
+
92
+I have now been running capacitive ground moisture level sensors in a couple of my plants for around a year, logging the data using my [ESP-Env project](https://git.xythobuz.de/thomas/esp-env) to an [InfluxDB](https://www.influxdata.com/) instance running on my NAS, with a [Grafana](https://grafana.com/) UI running on there as well.
93
+I used the [cheap chinese models](https://amzn.to/3sLG8SB) up to now, and they have not proven very useful.
94
+They of course don't corrode as fast as the resistive-measurement-based sensors, but they still age because of the permanent water contact.
95
+I tried to work-around that by using [Plastik70](http://www.kontaktchemie.com/koc/KOCproductdetail.csp?division=&product=PLASTIK%2070&ilang=en&plang=en) in liberal amounts with multiple coatings on the sensor, but even with that they show quite considerable drift over a couple of months.
96
+The data is good enough to see when I watered the plants, but it is difficult to determine a value where automatic watering should occur.
97
+Because of that, I have not yet added completely automated watering into the system.
98
+It still has to be started manually via the userinterface.
99
+
100
+But recently I got a different sensor from a colleague of mine, which is from another project called [Giesomat](https://www.ramser-elektro.at/shop/bausaetze-und-platinen/giesomat-kapazitiver-bodenfeuchtesensor-erdfeuchtesensor-mit-beschichtung/).
101
+The similar name was totally incidental, I only heard of it after naming my own project like this.
102
+I will test it and report the results here sometime in the future.
103
+
104
+## Links
105
+
106
+You can find [all the source code for the device itself](https://git.xythobuz.de/thomas/giess-o-mat) (both the UI and the Controller) as well as the OpenSCAD [design files for the 3D printed parts](https://git.xythobuz.de/thomas/3d-print-designs/src/branch/master/giessomat) on my [Gitea instance](https://git.xythobuz.de).

BIN
static/img/giessomat_1.jpg Datei anzeigen


BIN
static/img/giessomat_1_small.jpg Datei anzeigen


BIN
static/img/giessomat_2.jpg Datei anzeigen


BIN
static/img/giessomat_2_small.jpg Datei anzeigen


BIN
static/img/giessomat_3.jpg Datei anzeigen


BIN
static/img/giessomat_3_small.jpg Datei anzeigen


BIN
static/img/giessomat_4.jpg Datei anzeigen


BIN
static/img/giessomat_4_small.jpg Datei anzeigen


BIN
static/img/giessomat_5.jpg Datei anzeigen


BIN
static/img/giessomat_5_small.jpg Datei anzeigen


Laden…
Abbrechen
Speichern