/ESP32_Water_Flow_Meter

This code is designed for a water flow meter that measures the flow of water and displays it on an LCD screen. It is written in C++ and is intended to be used on an Arduino board.

Primary LanguageC++MIT LicenseMIT

ESP32 Water Flow Meter

Description

This code is designed for a water flow meter that measures the flow of water and displays it on an LCD screen. It is written in C++ and is intended to be used on an ESP32 board.
2022

Requirements

To use this code, you will need the following hardware components:

  • ESP32 board
  • A water flow meter
  • An LCD screen
  • Jumper wires

Installation

To use this code, follow these steps:

  1. Install the Arduino software on your computer.
  2. Connect the water flow meter to your ESP32 board using jumper wires.
  3. Connect the LCD screen to your ESP32 board using jumper wires.
  4. Open the Arduino software and copy and paste the code into a new sketch.
  5. Upload the sketch to your ESP32 board.

Usage

Once the code is uploaded to your ESP32 board, the water flow meter will start measuring the flow of water. The LCD screen will display the current flow rate in mL/sec and the setpoint value. The setpoint value can be adjusted using the two push buttons connected to the board.

When the flow rate is below the setpoint, pin 4 of the board is set to LOW, and when it's above the setpoint, pin 4 is set to HIGH. You can also view the water flow rate on the serial monitor.

Note

Make sure that the water flow meter is compatible with the ESP32 board before using this code. The pin numbers used in the code may need to be changed depending on the specific board being used. Additionally, the LCD address in the code should be changed to match the address of your specific LCD screen.

Example

License

This code is licensed under the MIT License. See the LICENSE file for details.