0% found this document useful (0 votes)
36 views4 pages

Smart Dustbin Documentation

Uploaded by

gking3659
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views4 pages

Smart Dustbin Documentation

Uploaded by

gking3659
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Give mea code For smart Dustbin Project: like First ultrasonic

sensor for detecting human presence so he can put the garbage in


Dustbin, servo motor for opening lid automatically when any
human comes near the Dustbin, Second ultrasonic sensor for
waste level detection, GSM module for sending Call &messages
like(Dustbin is full and waste level) to concern authority, 3 led
lights Green for Dustbin is not full Blue for Lid of Dustbin is open
and Red for Dustbin is full, LED 16:2 display without potentiometer
(Note: set perfect contrast for Good visibility of messages) for
showing messages like Dustbin is full or not and waste level. AlI
the connection in breadboard also explain Steps for connection.
Steps for Connection:
1.Components Required:
Microcontroller: Arduino Uno

" Ultrasonic Sensors: HC-SR04 (x2)


Servo Motor: SG90 or similar

" GSM Module: SIM800A

" LEDs: Green, Blue, Red

" LCD Display: 16x2 without potentiometer


" Resistors: 220-ohm (for LEDs)
" Breadboard and jumper wires

" Power Supply

2. Circuit Connections:

1. Ultrasonic Sensors:

Connect trigPin1 to Arduino pin 2 and echoPin1 to pin 3 (for human detection).
" Connect trigPin2 to pin 4 and echoPin2 to pin 5 (for waste level detection).
2. Servo Motor:

" Connect the servo signal pin to pin 11.


" Connect VCC and GND of the servo motor to Arduino's 5V and GND.

3. LEDs:

Connect the green LED to pin 6, blue LED to pin 7, and red LED to pin 8.
" Use 220-ohm resistors in series with the LEDs.

4. LCD Display:
Connect RS, EN, D4, D5, D6, and D7 to pins 13, A0, A1, A2, A3, and A4, respectively.
Connect VCC to Arduino's 5V, GND to GND, and adjust contrast via software.
5. GSM Module:

Connect TX of GSM module to pin 9 (Rx of Arduino) and RX to pin 10 (Tx of Arduino).
" Use a 12V adapter to power the GSM module.
6. Buzzer:

Connect the buzzer's positive terminal to pin 12 and the negative to GND.
Explanation:
1. Ultrasonic Sensors:

" The first sensor detects human presence within 30 cm and opens the lid.
The second sensor monitors the waste level.

2. Servo Motor:

" Opens and closes the lid based on human detection.


3. LEDSs:

Green: Dustbin not full.

Blue: Lid is open.


" Red: Dustbin is full.

4. GSM Module:

" Sends SMS and makes a call to notify the concerned authority when the dustbin is ful
5. LCD Display:

Displays the waste level and status messages.

Powering the Circuit:


" Use the Arduino's 5V pin for sensors, LCD, and LEDs.

" Use a separate 12V power supply for the GSM module.
Contrast Considerations for LCD:

1. Improved Display Visibility:


" The LCD contrast is managed by selecting appropriate clear messages and avoiding
overly bright or dim output. Since no potentiometer is used, ensure that the LCD's built
in brightness is optimal. This code uses messages formatted for 16x2 display
visibility.
2. Display Optimization in Code:
" Using proper delays and clearing the LCD (lcd.clear() ) before updating new
messages avoids cluttered or overlapping text.
" Short, concise messages fit well on the 16x2 display.
3. Default Contrast:

" Ensure the Vo (contrast pin) of the LCD is directly connected to GND via a 1kQ
resistor. This provides an acceptable contrast without a potentiometer.

Connections Recap:
1. Ultrasonic Sensors:
CE

" Connect trigPin1 and echoPin1 to pins 2 and 3 for human detection.
n
Connect trigPin2 and echoPin2 to pins 4 and 5 for waste level detection.
2. Servo Motor:

Signal pin to pin 11.


3. LEDs:

" Green to pin 6, blue to pin 7, red to pin 8 (all with 220-ohm resistors).
4. LCD Display:
" RS to pin 13, EN to pin A0, D4-D7 to A1-A4.
" VCC to 5V, GND to GND, and pin vo (contrast pin) to GND via a 1kQ resistor.
5. GSM Module:

a " TX to pin 9, RX to pin 10, powered by a 12V adapter.


ce

You might also like