Thomas Buck 3 лет назад
Родитель
Сommit
c39e910f5d
8 измененных файлов: 55 добавлений и 17 удалений
  1. 51
    13
      input/projects/giessomat.md
  2. 4
    4
      macros.py
  3. Двоичные данные
      static/img/valve_high_voltage.mp4
  4. Двоичные данные
      static/img/valve_high_voltage_poster.png
  5. Двоичные данные
      static/img/valve_high_voltage_thumb.png
  6. Двоичные данные
      static/img/valve_low_voltage.mp4
  7. Двоичные данные
      static/img/valve_low_voltage_poster.png
  8. Двоичные данные
      static/img/valve_low_voltage_thumb.png

+ 51
- 13
input/projects/giessomat.md Просмотреть файл

@@ -4,7 +4,7 @@ parent: projects
4 4
 position: 6
5 5
 github: https://git.xythobuz.de/thomas/giess-o-mat
6 6
 date: 2021-03-29
7
-update: 2021-10-24
7
+update: 2021-11-17
8 8
 ---
9 9
 
10 10
 This project [was featured on Hackaday](https://hackaday.com/2021/05/14/automated-watering-machine-has-what-plants-crave-fertilizer/)!
@@ -136,34 +136,34 @@ lightgallery([
136 136
 %-->
137 137
 
138 138
 These are the circuit diagrams for the controller and user interface.
139
-Everything is powered by a 12V power supply.
139
+Everything is powered by a <del>12V</del> 13.5V power supply.
140 140
 I am using two 5V regulators, one for powering the ESP32 and one for powering the relais coils.
141 141
 This was my quick-and-dirty way of getting the power rails clean enough that the ESP is not resetting when toggling a relais.
142
-The valves are directly fed 12V and another regulator produces 6V for the peristaltic pumps.
142
+The valves are directly fed <del>12V</del> 13.5V and another regulator produces 6V for the peristaltic pumps.
143 143
 
144 144
 <div class="textwrap"><pre class="ascii">
145 145
 Giess-o-mat Controller Schematic
146 146
 
147 147
              -------|USB|-------                        -----------
148
-            |       |___|       |             +12V <---|x IN  OUT x|---> +5V_ESP
148
+            |       |___|       |           +13.5V <---|x IN  OUT x|---> +5V_ESP
149 149
             |  P06         +5V x|---> +5V_ESP          |  5V Buck  |
150 150
             |  P07         CMD  |              GND <---|x GND GND x|
151 151
             |  P08         P10  |                       -----------
152 152
      R5 <---|x P15         P09  |
153 153
      R6 <---|x P02         P13 x|                       -----------
154
-     R7 <---|x P00         GND x|---> GND     +12V <---|x IN  OUT x|---> +5V_R
154
+     R7 <---|x P00         GND x|---> GND   +13.5V <---|x IN  OUT x|---> +5V_R
155 155
      R8 <---|x P04    E    P12 x|                      |  5V Buck  |
156 156
             |  P16    S    P14 x|---> R2       GND <---|x GND GND x|
157 157
             |  P17    P    P27 x|---> R1                -----------
158 158
      R3 <---|x P05    -    P26 x|---> SW_B
159 159
      R4 <---|x P18    3    P25 x|---> SW_T              -----------
160
-            |x P19    2    P33 x|             +12V <---|x IN  OUT x|---> +6V
160
+            |x P19    2    P33 x|           +13.5V <---|x IN  OUT x|---> +6V
161 161
     GND <---|x GND         P32 x|                      |  6V Buck  |
162 162
 ESP_SDA <---|x P21         P35  |              GND <---|x GND GND x|
163 163
             |  P03         P34  |                       -----------
164 164
             |  P01          SN  |
165 165
 ESP_SCL <---|x P22          SP  |                        -------
166
-            |x P23          EN  |              +12V <---|x +12V |
166
+            |x P23          EN  |            +13.5V <---|x +12V |
167 167
     GND <---|x GND        +3V3 x|---> +3V3  ESP_SDA <---|x SDA  | UI
168 168
             |                   |           ESP_SCL <---|x SCL  | Conn.
169 169
              -------------------                GND <---|x GND  |
@@ -172,16 +172,16 @@ ESP_SCL <---|x P22          SP  |                        -------
172 172
            ---------------------                       ---------------------
173 173
           |        Relais       |                     |        Relais       |
174 174
   GND <---|x GND    ----   NC1 x|             GND <---|x GND    ----   NC1 x|
175
-   R1 <---|x R1    |    | COM1 x|---> +12V     R5 <---|x R1    |    | COM1 x|---> +12V
175
+   R1 <---|x R1    |    | COM1 x|---> +13.5V   R5 <---|x R1    |    | COM1 x|---> +13.5V
176 176
    R2 <---|x R2     ----   NO1 x|---> V1       R6 <---|x R2     ----   NO1 x|---> V5
177 177
    R3 <---|x R3     ----   NC2 x|              R7 <---|x R3     ----   NC2 x|
178
-   R4 <---|x R4    |    | COM2 x|---> +12V     R8 <---|x R4    |    | COM2 x|---> +6V
178
+   R4 <---|x R4    |    | COM2 x|---> +13.5V   R8 <---|x R4    |    | COM2 x|---> +6V
179 179
  +3V3 <---|x VCC    ----   NO2 x|---> V2     +3V3 <---|x VCC    ----   NO2 x|---> P1
180 180
           |         ----   NC3 x|                     |         ----   NC3 x|
181
-          |        |    | COM3 x|---> +12V            |        |    | COM3 x|---> +6V
181
+          |        |    | COM3 x|---> +13.5V          |        |    | COM3 x|---> +6V
182 182
           |         ----   NO3 x|---> V3              |         ----   NO3 x|---> P2
183 183
           |         ----   NC4 x|                     |         ----   NC4 x|
184
-          |        |    | COM4 x|---> +12V            |        |    | COM4 x|---> +6V
184
+          |        |    | COM4 x|---> +13.5V          |        |    | COM4 x|---> +6V
185 185
           |         ----   NO4 x|---> V4              |         ----   NO4 x|---> P3
186 186
           |x VCC                |                     |x VCC                |
187 187
 +5V_R <---|x JC-VCC             |           +5V_R <---|x JC-VCC             |
@@ -216,11 +216,11 @@ Giess-o-mat User Interface Schematic
216 216
 SDA_UI <---|x A4     O     D5 x|---> KP_R1
217 217
 SCL_UI <---|x A5           D4 x|---> KP_C3               Connector
218 218
            |x A6           D3 x|---> KP_C2                -------
219
-           |x A7     N     D2 x|---> KP_C1      +12V <---|x +12V |
219
+           |x A7     N     D2 x|---> KP_C1    +13.5V <---|x +12V |
220 220
 +5V_UI <---|x 5V     A    GND x|---> GND     ESP_SDA <---|x SDA  |
221 221
            |x RST    N    RST x|             ESP_SCL <---|x SCL  |
222 222
    GND <---|x GND    O     RX x|                 GND <---|x GND  |
223
-  +12V <---|x VIN          TX x|                          -------
223
++13.5V <---|x VIN          TX x|                          -------
224 224
            |                   |
225 225
             -------------------                  ----------
226 226
                                     ESP_SDA <---|   2.2k   |---
@@ -336,6 +336,44 @@ I now added some more code to be able to calibrate the flowrates.
336 336
 With this the exact water amounts required each watering period can be calculated, as well as the corresponding time to fill the tank.
337 337
 More to come in the future.
338 338
 
339
+## Moisture Sensor Update (November 2021)
340
+
341
+After taking a closer look to my soil moisture sensors, with the help of [the investigation by Stewart Cash](https://so-now.com/electronics/capsense.php), I found some issues with the cheap chinese sensors I used.
342
+
343
+The 1M resistor is actually properly connected to GND on my boards.
344
+However, mine have an NE555 IC fitted, which requires 5V.
345
+On some of the boards I have, the 3V regulator is still fitted, on some others it has been replaced with a 0 Ohm link.
346
+However, I was trying to power them using the 3.3V rail of my ESP32.
347
+With 5V they now output a nice signal when placing them directly in or out of a glass of water.
348
+
349
+Placing them back in the soil, they no longer seem to output much of a signal at all, anymore, only giving a relatively straight line.
350
+I'm not sure what's going on this time.
351
+Further experiments to come (maybe).
352
+
353
+## Chinese Magnetic Valve Update (November 2021)
354
+
355
+After a bit more then half a year of daily use, one of the four outlet valves has started to act up.
356
+It no longer opened up completely, letting only a small dribble of water out.
357
+I opened the valve, saw a bit of limestone, and cleaned the plunger.
358
+This helped for a short while, but the problems returned only a short while later.
359
+
360
+With a bit more investigation I found the cause: the supply voltage was too low.
361
+I was initially using a 12V power supply to drive the whole device and the vales.
362
+But because of cable losses, and high current use of the valves, only about 11.4V arrived at the valve.
363
+It turns out this is just low enough that, together with the increased friction of the scale buildup, the valve no longer opens properly.
364
+
365
+See the two videos below.
366
+
367
+<!--%
368
+lightgallery([
369
+    [ "img/valve_low_voltage.mp4", "video/mp4", "img/valve_low_voltage_thumb.png", "img/valve_low_voltage_poster.png", "Running the valve with 11.4V" ],
370
+    [ "img/valve_high_voltage.mp4", "video/mp4", "img/valve_high_voltage_thumb.png", "img/valve_high_voltage_poster.png", "Running the valve with 12.0V" ]
371
+])
372
+%-->
373
+
374
+For a work-around, I simply replaced the power supply, now driving everything with 13.5V instead of 12V.
375
+This seems to solve the issue for now.
376
+
339 377
 ## Links
340 378
 
341 379
 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).

+ 4
- 4
macros.py Просмотреть файл

@@ -191,7 +191,7 @@ def printRobotMenuDeutsch():
191 191
 
192 192
 def lightgallery(links):
193 193
     videos = [l for l in links if len(l) == 5]
194
-    v_i = 0
194
+    v_i = -1
195 195
     for v in videos:
196 196
         link, mime, thumb, poster, alt = v
197 197
         v_i += 1
@@ -203,7 +203,7 @@ def lightgallery(links):
203 203
         print '</div>'
204 204
         
205 205
     print '<div class="lightgallery">'
206
-    v_i = 0
206
+    v_i = -1
207 207
     for l in links:
208 208
         if (len(l) == 3) or (len(l) == 2):
209 209
             link = img = alt = ""
@@ -216,7 +216,7 @@ def lightgallery(links):
216 216
             print '<div class="border" data-src="' + link + '"><a href="' + link + '"><img class="pic" src="' + img + '" alt="' + alt + '"></a></div>'
217 217
         elif len(l) == 5:
218 218
             v_i += 1
219
-            link, mime, thumb, poster, alt = v
219
+            link, mime, thumb, poster, alt = videos[v_i]
220 220
             print '<div class="border" data-poster="' + poster + '" data-sub-html="' + alt + '" data-html="#video' + str(v_i) + '"><a href="' + link + '"><img class="pic" src="' + thumb + '"></a></div>'
221 221
         else:
222 222
             raise NameError('Invalid number of arguments for lightgallery')
@@ -511,7 +511,7 @@ def hook_postconvert_mobilecompat():
511 511
     fp.close()
512 512
 
513 513
 def hook_postconvert_size():
514
-    file_ext = '|'.join(['pdf', 'zip', 'rar', 'ods', 'odt', 'odp', 'doc', 'xls', 'ppt', 'docx', 'xlsx', 'pptx', 'exe', 'brd', 'mp3', 'mp4', 'plist'])
514
+    file_ext = '|'.join(['pdf', 'zip', 'rar', 'ods', 'odt', 'odp', 'doc', 'xls', 'ppt', 'docx', 'xlsx', 'pptx', 'exe', 'brd', 'plist'])
515 515
     def matched_link(matchobj):
516 516
         try:
517 517
             path = matchobj.group(1)

Двоичные данные
static/img/valve_high_voltage.mp4 Просмотреть файл


Двоичные данные
static/img/valve_high_voltage_poster.png Просмотреть файл


Двоичные данные
static/img/valve_high_voltage_thumb.png Просмотреть файл


Двоичные данные
static/img/valve_low_voltage.mp4 Просмотреть файл


Двоичные данные
static/img/valve_low_voltage_poster.png Просмотреть файл


Двоичные данные
static/img/valve_low_voltage_thumb.png Просмотреть файл


Загрузка…
Отмена
Сохранить