Search This Blog

Showing posts with label pump. Show all posts
Showing posts with label pump. Show all posts

Thursday, 23 April 2020

Water Level Monitor

Water Level Monitor

We've got a rainwater harvesting system that consists of a tank holding rainwater and a pump that supplies toilets and the washing machine. The system came with a mechanical water level meter which is fine, but it requires a trip to a cupboard and some hand pumping. The pumping creates high pressure air which runs in a pipe to the tank. The higher the water level in the tank, the higher the pressure. A pressure gauge in the meter shows the capacity in percentage capacity.

The reading is the height of water in the cylindrical tank. As the cross section of the tank is circular this doesn't quite represent the amount of water in the tank, but it's fairly close.

I started looking at an electrical version a few years ago. Using a pump instead of the mechanical hand operated piston was an obvious way to do this.You could then have a pressure sensor which gives you the same reading as the mechanical system.

The first problem was the pressure involved. The tank is about a meter and a half high and that leads to quite a pressure. The pump needs to generate at least this pressure and the pressure sensor needs to be able to read that pressure. I couldn't find either a pump or a pressure sensor that would work at the pressure I needed.

I left the project for a while, then I came across a cheap blood pressure monitor. This has a pump and a pressure sensor and performs a very similar task to the water level meter I wanted to create. The pressures involved looked promising as well. I dismantled the monitor and extracted the pressure sensor and pump. I reverse engineered the circuit for the sensor and recreated it on an arduino Uno format shield.



You can see the sensor below the IC, it attaches to plastic tubing.The pump drive is a power transistor driven with a PWM signal so I have speed control. If the pump is driven at full speed then it is a bit noisy. Running at a lower speed still gives a high enough air pressure and it's much much quieter.

The final system is mounted in the same cupboard next to the manual meter:



The electronics are in a 3D printed case,  the pump is on 3D printed brackets. The manual meter reads the air pressure when the pump is energised, so you can use it instead of the manual pumping system.

The manual pumping system (below the electronic system) still works exactly as it did before, so there's a backup in case the electronics fails.

The code is set up to energise the pump once an hour, it then stores up to 1000 samples which are offloaded to my laptop using a cron job. I can then graph the samples as needed.





Friday, 26 April 2019

Coffee Machine Update

Coffee Machine Update

The coffee machine works. It's good for single cups of coffee, as you don't have to stand there too long pouring water. The old coffee machine is definitely dying, it now takes about an hour to run a pot of water through it.

To investigate how easy it would be to automate the new machine, I set this up:




There's a peristaltic pump:



which pumps water from the kettle to the filter. The power supply is adjustable, which is important to ensure the water flow isn't too fast as it will overflow the filter. For the pump I have the suitable voltage seems to be around 4V, which is pretty low. Usefully the power supply seems to remember its setting when it's off so you don't have to set it up every time you turn it on. A simple voltage regulator circuit and a knob would be equally and probably more suitable.


This arrangement also means you can replace the peristaltic pump pipe if it is dirty or damaged. You can also clean the pipe. We've never cleaned the insides of the old machine.


Tuesday, 27 February 2018

Rainwater Harvesting Pump Controller Problem

Our rainwater harvesting system uses a pump and that pump is controlled by a, well, controller. This has worked fine for years, but about six months ago it gave a fault and I had to press the reset button to get it going again. It then ran for several months, but about four weeks ago it tripped again, and then it tripped many times.

The controller is a controlmatic E, I believe and it has a PCB inside which performs all the functions. From the symptoms I thought it might be an electrolytic capacitor problem as the frequency of occurrance is increasing. I took the PCB out and tested the electrolytic capacitors and found that they were fine. I then took the power supply dropper capacitor out and tested that and it did not look fine. I replaced it with a parts bin capacitor and the controller ran for a few days with no faults. I bought some new capacitors as I didn't want to leave a parts bin component across he mains, even though it seemed to solve the problem. It was also slightly wrong in value. I put a new capacitor in the PCB when they arrived and the controller has run ever since with no faults.

I have a couple of videos about it here:




https://uk.rs-online.com/web/p/polypropylene-film-capacitors/1447774/

https://uk.rs-online.com/web/p/polypropylene-film-capacitors/8712613/