Difference between revisions of "Water level measurement"

From aquarium-doc
Jump to navigationJump to search
Line 7: Line 7:
The SW system will record the time used for this travel and calculate the corresponding distance using the speed of sound.
The SW system will record the time used for this travel and calculate the corresponding distance using the speed of sound.
[[File:Ultra Sonic Distance Sensor Installed On Top Of Refill Tank.png|thumb|Ultra Sonic Distance Sensor Installed On Top Of Refill Tank]]
[[File:Ultra Sonic Distance Sensor Installed On Top Of Refill Tank.png|thumb|Ultra Sonic Distance Sensor Installed On Top Of Refill Tank]]
==== Hardware ====
The ultrasonic distance measurement device is sold with the commercial name [https://www.sparkfun.com/products/15569 HC-SR04].
The device is connected to a voltage translator with the commercial name [https://joy-it.net/en/products/COM-KY051VT KY-051].
The voltage translator is connected to the GPIO pins of the Raspberry Pi.

Revision as of 10:02, 27 March 2022

Motivation

The measured water level is input for the calculation of the refill tank content. In order not to contaminate the water, a contact-less measurement is preferred.

Implementation

The control system uses a device which generates an ultrasonic sound and measures when the sound wave has travelled back from the water surface. The SW system will record the time used for this travel and calculate the corresponding distance using the speed of sound.

Ultra Sonic Distance Sensor Installed On Top Of Refill Tank

Hardware

The ultrasonic distance measurement device is sold with the commercial name HC-SR04. The device is connected to a voltage translator with the commercial name KY-051. The voltage translator is connected to the GPIO pins of the Raspberry Pi.