Mobile Water Level Tracker

January 4, 2019

View the water integrity and level of selected areas on your Android phone by using an HC-06 Bluetooth module to make an irrigation system.

Keywords
Brands
Hardware
  • [1]Arduino Nano
  • [1]HC-06 Bluetooth Module
  • [1]Funduino Water Sensor
  • [1]Water Level Switch(Sensor)
  • [1]5mm Green Led
  • [1]10K Resistor
  • [1]221ohm Resistor
  • [2]Mini Breadboard
  • [1]Jumper Wires
  • [1]Hot Glue Gun

Description

project_image_1

I had been working on a garden irrigation system for the plants although all my plants are in my balcony. While I was working on it, I realized that I needed to track the water integrity and the water level depending on the rain to adjust my irrigation system properly. And therefore, I designed a water level tracker by using an old bottle. I used a Funduino Water Sensor to measure the water integrity in the area where the sensor is placed. Also, I added a water level switch to detect whether the water level is below the threshold or exceeds it.When I finished this project, I thought that monitoring the water integrity and the water level on my Android phone by using an application is a beneficial idea hence I programmed a simple Android app named Mobile Water Level Tracker via MIT App Inventor. To send these data over the Bluetooth, I used an HC-06 Bluetooth Module because the short-range data transferring method is enough for me in this case.

Change HC-06 Bluetooth Module Default Variables

It is simple to use HC-06 Bluetooth Modules to communicate an Android application; you just need to include the SoftwareSerial Library which is embedded on Arduino IDE Libraries. To change its default variables - name, password and baud rate - you can use the Change_BluetoothModule_Defaults() function at the source code.

project_image_2

Mobile Water Level Tracker Android Application

I programmed this application by using the MIT App Inventor in a simple design. It can display the data send by Arduino directly, so it allows you to change string names and variables, except the application and buttons name, in the source code if you want to use this application for another project. Just click the Connect button to view Bluetooth devices you want to pair your phone - in this case, WaterModule.

You can download the application from here.

project_image_3
project_image_4

After downloading the application, pair your phone and the WaterModule to communicate with Arduino.

project_image_5
project_image_6
project_image_7
project_image_8

Connections

Arduino pinmapping and components connections are well-explained at the source code down below. Do not forget to attach a 10K resistor between GND and the digital signal pin while connecting the water switch to Arduino.

project_image_9
project_image_10
project_image_11

I decided to use an old bottle to detect the water integrity and the water level; I placed the Funduino Water Sensor on the top of it to measure the water integrity between 0 and 10 by mapping the analog signal pin value, as explained in the source code below. And, to detect whether the water level is below or above the threshold, I attach the water level switch in the bottle with a hot glue gun as depicted below.

project_image_12
project_image_13
project_image_14

Features

- View the water integrity of a selected area between 0 and 10.

- View the water level as OK and FULL indicators.

- Connect Arduino to Android by using this project Android application.

- See whether the connection is active or not by using the control led.

project_image_15
project_image_16
project_image_17

View The Water Integrity and Level on Android

Now, you are able to see the water integrity and level send by the HC-06 Bluetooth Module on Android by downloading the Mobile Water Level Tracker Application.

project_image_18
project_image_19
project_image_20
project_image_21
project_image_22
project_image_23

Demonstration



Project GitHub Repository

The project's GitHub repository provides:

  • Code files
  • Mobile application AIA and APK files (Android)

Schematics

project_image_24

Code

Select File

  • Mobile_Water_Level_Tracker.ino

Custom assets

See on other platforms