KIT INCLUDES:
- Arduino uno with USB cable - 1
- HC-SR04 ultrasonic sensor -1
- 16x2 LCD Display - 1
- DS18B20 temperature sensor - 1
- 10k potentiometer - 1
- Push button - 1
- Buzzer B10 - 1
- 3 LEDs ( R,Y,G)- 2 pieces each
- Jumper wires male to female – 40 piece
- Jumper wires Male to male – 40 piece
- Single stand wire 2mt - 1
- Resistor (220 ohm-4, 4.7k ohm-2)
HARDWARE REQUIRED
- Arduino uno with USB cable - 1
- HC-SR04 ultrasonic sensor -1
- 16x2 LCD Display - 1
- DS18B20 temperature sensor - 1
- 10k potentiometer - 1
- Push button - 1
- Buzzer B10 - 1
- 3 LEDs ( R,Y,G)- 2 pieces each
- Jumper wires male to female – 40 piece
- Jumper wires Male to male – 40 piece
- Single stand wire 2mt - 1
- Resistor (220 ohm-4, 4.7k ohm-2)
SOFTWARE REQUIRED
Arduino IDE 1.8.5 (programmable platform for Arduino)
Click To Download: https://www.arduino.cc/en/Main/Software
SPECIFICATIONS
DS18B20 DIGITAL TEMPERATURE SENSOR
This is a waterproofed version of the DS18B20 Arduino Temperature sensor. Handy for when you need to measure something far away, or in wet conditions. While the sensor is good up to 125℃ the cable is jacketed in PVC so we suggest keeping it under 100℃. Because they are digital, you don't get any signal degradation even over long distances! The DS18B20 provides 9 to 12-bit (configurable) temperature readings over a 1-Wire interface so that only one wire (and ground) needs to be connected from a central microprocessor. Usable with 3.0-5.5V systems.
- Usable with 3.0V to 5.5V power/data
- ±0.5℃ Accuracy from -10℃ to +85℃
- Usable temperature range: -55 to 125℃ (-67℉ to +257℉)
- 9 to 12-bit selectable resolution
- Uses 1-Wire interface- requires only one digital pin for communication
- Unique 64 bit ID burned into the chip
- Multiple sensors can share one pin
- Temperature-limit alarm system
- Query time is less than 750ms
- 3 wires interface:
Red wire - VCC
Black wire - GND
Yellow wire – DATA
16*2 LCD DISPLAY
- LCD Display Mode: STN, Positive, Transflective
- Display Color: Deep Blue/ Yellow Green
- Viewing Angle: 6H
- Driving Method : 1/16 duty, 1/5 bias
- Back Light : Yellow-Green LED backlight
- Outline Dimension: 803615.8 MAX
PIN DESCRIPTION
.16*2 LCD DISPLAY
Symbol |
External Connection |
Function |
VSS |
Power Supply |
Signal GROUND for lcm |
VDD |
POWER SUPPLY for logic lcm |
|
V0 |
Contrast Adjust |
|
RS |
MPU |
Register Select Signal |
RW |
MPU |
Read/Write Select Signal |
E |
MPU |
Operation Enable Signal |
DB0~DB3 |
MPU |
Four Low order bidirectional three state bus lines. Used for data transfer between the MPU and LCM. These four are not used between 4 Bit operations. |
DB4~DB7 |
MPU |
Four high order bidirectional Three state bus lines used for data transfer between the MPU |
A |
LED BKL power Supply |
Power Supply for BKL |
K |
NOTE |
|
.
CIRCUIT CONNECTION
- Connect DS18B20 ground to negative rail and positive to the positive rail and out pin to D6 via4.7k resistor through the 5v pin.
- Connect ultrasonic sensor’s Vcc to positive rail on the breadboard, ground to the negative rail, echo to D7 and trigger to D9 of Arduino UNO.
- All LEDs negative connects to negative rail and green led positive to D13 via 220-ohm resistor, yellow positive to D8 via 220-ohm resistor and red positive to D10 via 220-ohm resistor
- Connect Buzzer’s positive to the positive rail and negative to the negative rail
- Connect Push button’s one point to the ground and other to pin 16 of LCD.
- Connect10k pot-positive to the positive rail, negative to negative rail and signal pin to PIN 3 of LCD.
- Pin 1 of LCD to ground, pin 2 to 5v, pin 4 to D12, pin 5 to ground, pin 6 to D11, pin 11 to D5, pin 12 to D4, pin 13 to D3 and pin 14 to D2, pin 15 to 5v rail.
- Connect 5v and ground of UNO to breadboard positive and negative rail.
CODE
WORKING
This project gives me the info I need about the water level in a water tank. When the level is low, the green LED is ON. When the level is medium, the yellow LED is ON. When the level is HIGH the red LED blinks at the same time with the buzzer sound. The distance from the sensor to water level is measured by the ultrasonic sensor and is printed to the LCD together with the temperature in that tank.The temperature is measured by the DS18B20 sensor