This project specifies the hardware and software necessary to monitor the water level within a tank of water.
My parents live outside of the city and have a well that they use to collect water for use. This well fills a ~1000 gallon tank. The logic for the well pump is to pump until the tank is full. Currently this consists of a float connected to a switch. Once the float rises high-enough the switch disconnects the power to the well. Conversely onces the float falls far enough it triggers the pump to turn on. Additionally there is a water level indicator float that has a pipe connected to it with red markings to show the amount of water in the tank for manual intervention. This system will replecate these two features.
This part of the measurement device logic will essentially turn the relay on or off depending on the level of the water. The user will be able to set a min threshold and a max threshold for the tank to turn on and off.
This part of the logic the device will both send a signal to the user interface device with the current water level AND will light up a three tiered light for empty, half and full. When the tank water is raising, and the device is not in control (i.e. someone is filling the tank externally and the pump isnt the source of the added water) the device will set off a buzzer if the water level continues to rise after it signals with a green light that it is full of water.
This part is also split into two parts: The on device display AND the webpage hosted on the device. The display will show two simple things: The level of the water AND the status of the pump (on/off). In addition to the on device display the device will join the houses wifi, and will host a server that is available to connect to from a users phone so they can see (from anywhere within range of the home wifi) the level of the water and the status of the pump.
The hardware used for this project consist of two category:
- The measurement device.
- The User interface device.
In addition to the below listed hardware, there will be a misc amount of 3D printed components and screw/nuts/bolts for mounting.
- 1 x Water Proof Enclosure
- 5 x 5V 120V Opto Isolated Relays
- 1 x ESP32, LoRa/WiFi/Bluetooth, OLED
- 1 x HC-SR04 Ultrasonic sensor
- 1 x AC to DC convertor
- 1 x 3 position tower light with buzzer
In addition to the below hardware, a custom 3D printed enclosure will be created as well.
11-17-2020 - The user interface on the device is complete. The measuring device can send packets to the user device. The user device can transmit config packets.
11-16-2020 - The user interface webUI is mosty roughed out for displaying values, inputting changes, and navigating around to different pages.
These projects were either referenced, and/or used in the creation of this repo.