📜 ⬆️ ⬇️

Auto watering colors with remote control

Today we will talk about home automation, it's nice because relaxing somewhere in a warm and beautiful place to watch how your flowers are watered. This is the second system in my apartment, the first watering pets, and in this one I have already corrected all the shortcomings of the first iteration .

image

Concept


When designing the system, I was repelled by the following principles:
')
  1. Cheap and angry - I do not want to spend a lot of money on a system that waters 15 inexpensive flowers. I do not have a greenhouse.
  2. Autonomy - it should work on its own schedule, but this does not exclude the presence of manual control.
  3. Convenience - setting watering occurs using a smartphone. Sockets is convenient, but not in this case.
  4. Flexibility - the flowers are mostly all different with different pots, so they need to be watered with different frequency and different amounts of water.
  5. Remoteness - you can control from anywhere in the world where there is Internet and a smartphone.

Implementation


As enclosures I used my own models printed on a 3D printer. Since the WiFi module is powered by 5 volts, and the valve and the pump are from 12, I took the PSU from the Chinese LED backlight driver (they sell without a case, used) for 12V and 2.5A. I used this solution in many of my products: I buy the cheapest plug, pull out knives from there and put them in my printed case.

image

PVC canister is used as a container, in my case it is orange, because it had fire protection. The level in the tank is controlled only by the minimum; this is realized with the help of a neodymium magnet and a reed switch. The reed switch is glued to the bottom of the canister, and the magnet glued to the float is moved along a plastic segment tube.

image

image

I use diaphragm pumps, they are convenient because there is no need to fill the circuit with water. The only inconvenience in these pumps are flanges, they are too large in diameter relative to those irrigation systems that can be purchased in China. Still have questions about the resource of these pumps, but they work 1-2 minutes a week. In the photo below, I used a silicone hose, but later I had to give it up, because I had to change the valve as well. The pump consumes about 120mA.

image

The valve initially wanted to use such, but as it turned out, each consumes about 3.5A, so they had to be abandoned.

image

As a result, the valves were taken the same as in the past project. They are smaller and have proven themselves, the consumption of the order of 80mA.

image

As the governing body was to take the Chinese Wemos D1 mini. The scheme is trivial, so I did not even draw it, immediately in the sprint and textolite. I didn’t immediately grow together with breadboard boards, so I try to do everything with boards, it's more aesthetic and easier to debug.

image

The level presses one of the legs of the controller to + power, the pump and valves are controlled by assembling darlingtons ULN2003. To power the controller, I used the LM317 stabilizer - this was a so-so solution, the stabilizer heats up, glued the radiator on hot melt glue.

image

As a result, it turned out that all of this is in the corner of the kitchen, so there is neither red buildings nor orange canisters visible there.

image

PVC hoses, although they stand out against the background of white plastic windows, I like more than transparent silicone.

image

Customization


At the first stage it is necessary to divide the flowers into several groups, in my case 3. This allows you to more flexibly adjust the watering. Next, you need using the drip nozzle to adjust the required water level, the difficulty is that all the nozzles are connected by bus, and setting one sometimes significantly affects the others. The amount of water supplied to the hose is governed by the pump operation time in seconds.

Soft


In order for everything to work, I used the NTP Client + MQTT combination, the first one allows, when it is turned on, to get the exact time from the server and then synchronize it once a week, and the second to manage the irrigation process, set up and get the controller status. If there is a VPN server in the apartment, you can connect to your home network from anywhere and see the state of the system. All irrigation parameters are saved in the EEPROM.

A small overview video:


Link to resources

Source: https://habr.com/ru/post/455826/


All Articles