Arduino Mains Water Pump Logging

Published on Sunday 13 May 2012
Categories: Arduino | Solar Power |

As part of the solar hot water system (view other blog posts) we have been installing onto our home we wanted to be able to keep track of the time the solar water pump is running. To monitor the pump we decided to use a simple mains power supply to  switch an opto isolator which then is monitored by the Arduino board and the new logging code which takes a measurement every 15 seconds.

The circuit was initially mocked up using a breadboard and the mains transformer was soldered direct to a mains supply for testing. We used our spare Arduino UNO board to test this circuit as these are much cheaper to replace if we blow one up!

breadboard pump running circuit

[more]

We designed a simple PCB to hold the pump monitor. The circuit is a basic power supply using a small 9v transformer which a bridge rectifier, smoothing capacitor, current limiting resistor and a opto isolator. The low voltage (data) side has a 5V input, Ground input and output pins. The opto isolator input is connected to the 5V line and there is a current limiting resistor for the output line and a pull down resistor to ground.

On the Arduino board this was connected to one of the analogue inputs and a simple sketch was written to check the input value and switch between "Pump On" and "Pump Off" states.

pump running circuit complete

Permalink


0 Comments



Leave a comment

About Me

Brian Dorey

Welcome to my blog, here you will find my projects and other things.
I make websites and manufacturer and sell expansion boards for the Raspberry Pi range of computers.

AB Electronics Raspberry Pi shop

Social Media

Popular Posts

Small image for Raspberry Pi Zero W external antenna mod

Raspberry Pi Zero W external antenna mod
04 MARCH 2017
89,361 views

Small image for Ford Sync 3 USB Drive Music Playlists

Ford Sync 3 USB Drive Music Playlists
22 OCTOBER 2016
60,332 views

Small image for Echo Dot 3rd Gen Smart speaker Teardown

Echo Dot 3rd Gen Smart speaker Teardown
21 JULY 2019
57,553 views

Small image for DIY Pick and Place V2 Project Complete

DIY Pick and Place V2 Project Complete
23 NOVEMBER 2013
35,176 views