ESP 8266 Controlling Hot Water Circulation Pump

by ASTolpe in Circuits > Microcontrollers

5785 Views, 37 Favorites, 0 Comments

ESP 8266 Controlling Hot Water Circulation Pump

WP_20171101_20_44_26_Pro.jpg
WP_20171101_20_44_56_Pro.jpg

Task:

Control a hot water circulation pump.

The hot water circulation pump used to work all the time. To save some energy at home it was necessary to control the pump cycles. The ESP8266 is an ideal platform to realize this kind of project. One of the IO ports is connected to a temperature sensor and another port is connected to a solid state relay. The control software offers an web interface to enter the temperature set points and the pump operation time/day. This version of the software offers 4 timers.

After setting the timers and temperature set points the pump is running during ON time. That means it runs only when the hot water is needed immediately.
If hot water is needed during off time the interface allows to switch the pump on or off manually.

Additionally the temperature values are transmitted to thingspeak.com

Material and Tools

WP_20170414_17_54_39_Pro[1].jpg
WP_20170414_17_55_29_Pro.jpg
WP_20170414_17_54_10_Pro.jpg
WP_20170414_17_54_18_Pro.jpg
WP_20170414_17_53_55_Pro.jpg
New Bitmap Image.jpg

Material

1. Node MCU LUA from AZdelivery

2. Solid state relay from Pollin

3 DS18B20 temperature sensor from AZdelivery

4 Old remote controlled wall plug

5. some wires

6. 5V usb power supply (try to find the smallest you can get)

Tools

1. screw driver

2. soldering iron

Disembowel the Old Power Plug

WP_20170414_17_54_39_Pro.jpg

Remove the internals from the old remote controlled wall plug.

For this step you need the screw driver and the soldering iron.

Solder Things Together

esp8266 wallplug  themost fritzing.JPG
WP_20170422_14_22_35_Pro.jpg
WP_20170422_14_22_57_Pro.jpg
WP_20170422_14_24_49_Pro.jpg
WP_20170422_14_38_06_Pro.jpg
WP_20170425_13_31_42_Pro.jpg
WP_20170425_13_31_29_Pro.jpg

1. Connect the normally open contact from the solid state relay to the wires on the plug.

2. Solder 2 new wires to the USB power supply

3. Insulate the power supply with insulation tape or something similar

4. connect the power supply to the incoming pins of the wall plug

5. connect the node mcu to the 5V pins of the power supply

6. solder the temperature sensor to the ESP8266 board

Install Software and Test Operation

circulationpump.JPG

Connect a USB cable to the ESP8266 Board and upload the code using the Arduino IDE.

The temperature values are also transmitted to thingspeak.com an IOT platform.

If you dont want the thingspeak part serch for: "sendTemperatureTS(temp);" in the main Loop and comment it.

After uploading the program you should be able to connect to you ESP8266. When you do this for thr first the ESP will run as Access Point. This will you allow to login to your local Wifi Network. For further description visit https://github.com/tzapu/WiFiManager.

After sucessfull connection to your network the ESP would run as web server.

You can probably find the IP address in the log data of your access Point.

Open your browser and enter the IP of your ESP.

Then you can use the web Interface to set your timer.

Test the operation of the device and if it runs as expected close the casing of the wall plug.

Operation

1. Plugin the wall plug and connect your pump.

2. Attach the temperature sensor to the circulation water pipe.