Introduction: ESP 8266 Controlling Hot Water Circulation Pump

Picture of ESP 8266 Controlling Hot Water Circulation Pump

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

Step 1: Material and Tools

Picture of Material and Tools

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

Step 2: Disembowel the Old Power Plug

Picture of Disembowel the Old Power Plug

Remove the internals from the old remote controlled wall plug.

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

Step 3: Solder Things Together

Picture of Solder Things Together

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

Step 4: Install Software and Test Operation

Picture of Install Software and Test Operation

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.

Step 5: Operation

1. Plugin the wall plug and connect your pump.

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

Comments

RagingStegosaur (author)2017-11-19

Very nice tutorial!

xberger (author)2017-11-06

Hello,

Where did you buy your USB power supply ?

ASTolpe (author)xberger2017-11-07

Hello I bought a normal usb power supply like this:

https://www.amazon.com/charger-FOBSUNLAND-Universa... probably only usable for 110V

or: this usable for 230V

and then i removed the shell for my new projects I just bought 10 of these power supplies:https://www.pollin.de/p/schaltnetzteil-mit-usb-a-a...

tomatoskins (author)2017-11-01

This is great! How long did it take you to design?

ASTolpe (author)tomatoskins2017-11-01

Hello tomatoskins,
Honestly i didnt record the time it took.

So here are my guesses:
Hardware assembly: 3 Hours
Code writing and testing: 16 Hours
Instructable writing: 2 Hours
Re coding: I use to apply the Japanese method here: Copy and improve.
Kind regards

About This Instructable

1,318views

25favorites

License:

Bio: Knowledge is power!
More by ASTolpe:ESP 8266 Controlling Hot Water Circulation Pump
Add instructable to: