home automation

Pool Controller

At my parents‘ house in the garden there is a pool with an older controller for filter pump and solar heating. Via underground pipes the water is pumped from the skimmer and floor drain into the house, pumped through the sand filter, heated if necessary (depending on the availability of solar heat) and then pumped back into the pool via a few meters of pipe and the inlet nozzles.

The old controller has a very simple design and includes a mechanical timer, an input for a temperature sensor, an output for the circulating pump of the heat exchanger and of course a (contactor) switched output for the filter pump. Most of the time, however, the pump is switched on manually, which means that a walk into the basement is necessary.

Old Controller
Filter and filter pump

At first I created a draft concept. The new controller should be WLAN capable and be able to map the previous functions.

DIN Module Concept
Pump, Filter and Heat Exchanger

The concept was then „translated“ into a circuit schematic and a circuit board was designed for it. Actually there are two circuit diagrams and boards, one is the basic module and the soldered-on board is the DCDC voltage converter (6-35V –> 5V)

I ordered the two circuit boards to be manufactured and partially assembled in China. But of course I made a mistake with the first version of the circuit, which I already changed in the schematics above: the two optocoupler isolated inputs were wrongly connected to the wemos board, so the board reset itself continuously (D3/D4 via pulldown to ground).

After assembling the two boards and other components like connectors the wemos board was flashed with a tasmota firmware build. Then the module was packed in a DIN-Rail case and installed in a small distribution box with two auxiliary relays, a contactor and a 24V power supply. On the photo you can see the „fix“ of my error with D3 and D4 with enamelled wire near the two optocouplers.

Module without housing cover

The display, a button for switching the display on and off and a potentiometer for setting the target temperature were installed in the drilled and cut-out sections of the housing. The display flickers with high frequency, so there is always one line black on the pictures – the human eye does not notice anything. A button for manually switching the filter pump on and off was installed in a cable entry of the distribution box.

ready-to-install unit

The filter pump can now be switched on manually by push button, via the web interface and also schedule-controlled with Tasmota. Depending on the temperature of the water and release from the solar system (excess heat), the circulation pump of the heat exchanger is switched on as well.

home automation

fingerprint and RFID reading system

A while ago i purchased a fingerprint reader module called dy50 or fpm10a on aliexpress. A PN532 RFID module has also been lying in the tray for some time. So i decided to build a combined fingerprint and RFID reading module with a self developed and self printed housing.

The controller inside is a wemos d1 mini (esp8266 wifi module on-board). On the controller is a tasmota version with fingerprint module driver from adafruit. As soon as possible i will commit and push my changes on github I have published my code on github: https://github.com/dhumpf/Tasmota . The software is still in development, but the basic functions adding a fingerprint, deleting a fingerprint, send the fingerprint data over mqtt to the home controller (domoticz installation) works already.

The total printing time of the enclosure was about 7 hours on the 3D printer. The 3d files will also be published soon I have published the files on thingiverse: https://www.thingiverse.com/thing:4362609.

But now some pictures of the whole thing:

3D Printed enclosure from the inside with the voltage regulator, controller board wemos d1 mini, PN532 RFID reader and fingerprint module DY50
Enclosure with RFID tag
Pinheader description on PCB and connections between the components