0

members

Medium Basics Project 008g Water level sensor, RGB LED module, LCD 1602 I2C module, piezo buzzer, SG90 micr

of Acoptex.com in UNO

Basics: Project 008g

Project name: Water level sensor, RGB LED module, LCD 1602 I2C module, piezo buzzer, SG90 Servo - Water leak detection system

Attachments: libraries and sketch

In this project, you needed these parts :

1.Aruduino Uno R3 (you can also use the other version of Arduino)

2.Water level sensor module

3.Arduino IDE ( you can download it from here  )

4.Jumper cables

5. RGB LED module

6. Resistor 1 pc (150 Om for piezo buzzer/optional/)

7. Breadboard half size 

8. LCD 1602 I2C Module

9. Piezo buzzer

10. SG90 MICRO SERVO

Understanding the water level sensor module

More information you can find here.

Understanding LCD 1602 I2C module

More information you can find here.

Understanding piezo buzzer

More information you can find here.

Understanding the SG90 micro servo motor 

More information you can find here.

Signals and contacts of piezo buzzer

We will use active piezo buzzer in this project. Piezo buzzer has one leg with (+) marking so that output we connect to on leg of resistor 150 Om and another leg og resistor we connect to Arduino Uno. Another piezo buzzer leg we connect to GND.

Signals and contacts of SG 90 micro servo

See information here.

Signals and contacts of LCD 1602 I2C module

As you can see on the back of LCD 1602 module there 4 connections: GND (-), VCC (+5V), Serial Data Line (SDA) and Serial Clock Line (SCL)

Signals and connections of water level sensor, RGB LED module

"S" stand for signal input (analog)

"+" stand for power supply (+5V)

"-" stand for GND

If you do not have marking on the back of water level sensor module - not a problem. You can print this marking

attach and cover it with silicon to the back of sensor. Just make sure that silicon is dry andbe careful do not use silicon on other side as it will damage the sensor.

RGB LED module has 4 outputs: R (Red diod), G (Green diod), B (Blue diod) and GND (-). R, G,B are connected to Arduino Uno board digital pins. GND connected to Arduino Uno board GND pin. You do not need resistors for LEDs as they are already soldered in PGB LED module. See pictures about RGB LED module connections here.

Wiring

The following picture shows the needed connections with the Arduino Uno 

Watch video here: https://youtu.be/d958p-o2olQ

Step by Step instruction

  1. Plug your Adruino Uno board into your PC and select the correct board and com port
  2. Open up serial monitor and set your baud to 9600 baud
  3. Do calibration. Take a paper and write down readings of the sensor and the water level in mm or inch  (for example, 0mm -0, 5mm - 223, 10mm - 251, 20mm - 294, 30mm - 314, 40mm - 333)
  4. Verify and upload the the sketch to your Adruino Uno

Libraries:

  • See attachments on the begining of this project description - all libraries included.
  • We have used the library - NewliquidCrystal_1.3.4.zip which I downloaded, unzipped, changed the name of folder to LiquidCristal and added to libraries in my PC, for example C:\Users\toshiba\Documents\Arduino\libraries. This link you can find in Preferences of Adruino IDE program which installed in your PC. If you have LiquidCristal folder in this location already - delete this folder and copy folder, which was made by you, to this location. 
  • Wire and Servo libraries included in Arduino IDE which is installed in your PC.

Program/Sketch

Attached here.

Measuring water level; sending

  status about the water level to serial monitor, LEDs and LCD screen;

  activating piezo buzzer and micro servo when the level reach 35-40mm.

Measuring water level; sending  status about the water level to serial monitor, RGB LED module and LCD screen;  activating piezo buzzer and micro servo when the level reach 35-40mm.

 If water level is between:

  10-15mm the green LED will be on till level 20-25mm

  20-25mm the green LED will be off and the blue LED will be on till level 35-40mm

  35-40mm the blue LED will be off and the red LED will be on

  35-40mm the piezo buzzer and micro servo will be activated too

  and  switch off when sensor is out of water and dry.



Other projects of Acoptex.com
Easy Merry Xmas to everyone of Acoptex.com, Not selected 24-12-2019

« Go back to category
Is this project fake? Report it!   
Recommend to a friend
Published at 10-05-2017
Viewed: 2515 times