Smart Waste Management System Using Arduino Nano, Ultrasonic Sensor & GSM Module – Solar Powered IoT Solution


 Smart Waste Management System using Arduino Nano and HC-SR04 Ultrasonic Sensor

The Smart Waste Management System is an IoT-based automation project designed to monitor garbage levels in dustbins and send real-time SMS alerts when the bin is nearly full. This system helps prevent overflow, improves hygiene, and supports efficient municipal waste collection.

It integrates ultrasonic sensing, GSM communication, renewable energy, and smart alert mechanisms — making it ideal for Smart City and engineering projects.


 How the System Works

  1. The HC-SR04 Ultrasonic Sensor continuously measures the distance between the dustbin lid and garbage level.

  2. The Arduino Nano calculates the fill percentage based on bin height.

  3. When the waste crosses 80% level:

    • Red LED turns ON

    • Buzzer activates

    •  GSM module sends SMS alert to authority

  4. Green and Yellow LEDs indicate lower fill levels.

  5. The system runs on solar power + lithium battery, making it energy-efficient.


Key Components Used

  • Arduino Nano

  • HC-SR04 Ultrasonic Sensor

  • SIM800 GSM Module or SIM900 GSM Module

  • Solar Panel

  • Lithium-ion Battery Pack

  • Buck Converter / Voltage Regulator

  • Buzzer

  • Red, Yellow, Green LEDs (220Ω resistors)


 Working Logic

Fill LevelLED StatusBuzzerSMS Alert
0–50%🟢 Green ONOFFNo
50–80%🟡 Yellow ONOFFNo
80%+🔴 Red ONONYes

The ultrasonic sensor calculates distance using:

Distance = (Duration × 0.034) / 2

Fill percentage is calculated using Arduino’s map() function.


GSM SMS Alert Feature

The system uses AT commands to send SMS:

  • AT+CMGF=1 → Set SMS text mode

  • AT+CMGS → Send message

  • Ctrl + Z (26) → End message

Replace +91xxxxxxxxxx with your actual phone number in the code.


Power System

  • Solar panel charges lithium battery

  • Buck converter regulates voltage to 5V

  • Ensures 24/7 autonomous operation

  • Eco-friendly and sustainable


 Applications

  • Smart City garbage monitoring

  • Municipal solid waste tracking

  • Industrial waste bins

  • Residential apartment waste management

  • Railway stations & bus terminals

  • Hospital waste monitoring

  • Smart campus automation


Features

✔ Real-time garbage level monitoring
✔ Automatic SMS notification system
✔ Solar-powered sustainable design
✔ LED + buzzer local alert system
✔ Low-cost scalable solution
✔ Improves hygiene and cleanliness
✔ Reduces manual inspection
✔ Supports optimized waste collection routes


 Ideal For

  • Engineering final year projects

  • IoT-based exhibition models

  • Smart city innovation challenges

  • Polytechnic & diploma projects

  • School science fairs

  • Embedded systems learning

Code:
#include <SoftwareSerial.h>

#define TRIG_PIN 2        // Ultrasonic sensor trigger pin
#define ECHO_PIN 3        // Ultrasonic sensor echo pin
#define GSM_TX 4          // GSM Module TX
#define GSM_RX 5          // GSM Module RX
#define BUZZER_PIN 6      // Buzzer pin
#define GREEN_LED 7       // Green LED pin
#define YELLOW_LED 8      // Yellow LED pin
#define RED_LED 9         // Red LED pin

SoftwareSerial gsm(GSM_RX, GSM_TX);  // Software serial for GSM

const int binHeight = 30;  // Bin height in cm (adjust according to your bin)
long duration;
int distance, fillLevel;

void setup() {
  pinMode(TRIG_PIN, OUTPUT);
  pinMode(ECHO_PIN, INPUT);
  pinMode(BUZZER_PIN, OUTPUT);
  pinMode(GREEN_LED, OUTPUT);
  pinMode(YELLOW_LED, OUTPUT);
  pinMode(RED_LED, OUTPUT);

  Serial.begin(9600);
  gsm.begin(9600);
 
  // GSM Module Initialization
  sendSMS("Smart Waste Management System Initialized");
}

void loop() {
  // Measure distance
  digitalWrite(TRIG_PIN, LOW);
  delayMicroseconds(2);
  digitalWrite(TRIG_PIN, HIGH);
  delayMicroseconds(10);
  digitalWrite(TRIG_PIN, LOW);
 
  duration = pulseIn(ECHO_PIN, HIGH);
  distance = duration * 0.034 / 2;

  // Calculate fill level percentage
  fillLevel = map(distance, 0, binHeight, 100, 0);

  // Determine bin status and set LEDs and buzzer accordingly
  if (fillLevel <= 50) {
    digitalWrite(GREEN_LED, HIGH);
    digitalWrite(YELLOW_LED, LOW);
    digitalWrite(RED_LED, LOW);
    digitalWrite(BUZZER_PIN, LOW);
    Serial.println("Bin Status: Less than 50% full");
  }
  else if (fillLevel > 50 && fillLevel < 80) {
    digitalWrite(GREEN_LED, LOW);
    digitalWrite(YELLOW_LED, HIGH);
    digitalWrite(RED_LED, LOW);
    digitalWrite(BUZZER_PIN, LOW);
    Serial.println("Bin Status: Between 50% and 80% full");
  }
  else if (fillLevel >= 80) {
    digitalWrite(GREEN_LED, LOW);
    digitalWrite(YELLOW_LED, LOW);
    digitalWrite(RED_LED, HIGH);
    digitalWrite(BUZZER_PIN, HIGH);
    Serial.println("Bin Status: More than 80% full");
    sendSMS("Bin is 80% full. Please empty.");
  }

  delay(60000);  // Wait for 1 minute before next reading
}

// Function to send SMS alert
void sendSMS(String message) {
  gsm.print("AT+CMGF=1\r");  // Set SMS mode
  delay(100);
  gsm.print("AT+CMGS=\"+91xxxxxxxxxx\"\r");  // Replace with your phone number
  delay(100);
  gsm.print(message);
  delay(100);
  gsm.write(26);  // ASCII code for Ctrl+Z (end of message)
  delay(1000);
}

 Applications:
  • Smart Cities waste management

  • IoT-based garbage monitoring systems

  • Municipal solid waste tracking

  • Industrial and residential bin monitoring

  • Eco-friendly smart dustbin projects

 Features

  • Real-time garbage level monitoring

  • Automatic SMS alert system

  • Solar-powered sustainable design

  • Low-cost and scalable IoT solution

  • Reduces overflow and improves hygiene

  • Supports efficient route planning for waste collection

This Arduino-based Smart Waste Management System enhances urban cleanliness by integrating IoT technology, renewable energy, and automation. It is ideal for engineering projects, science exhibitions, and smart city development initiatives.

 

IOT & SMART SYSTEM PROJECTS

  1. IoT Weather Monitoring System (NodeMCU ESP8266 + DHT11 + Rain Sensor)
  2. ESP8266 NodeMCU Smart Health & Environment Monitoring System with Pulse, Temperature and Motion Sensors
  3. ESP32 Wi-Fi Weight Sensor with HX711
  4. Smart RFID Access Control System Using ESP32 Dev Board and UHF RFID Reader Module
  5. Smart IoT Motor Control System Using ESP32 Dev Board and L298N Motor Driver Module
  6. Smart Waste Management System Using Arduino Nano, Ultrasonic Sensor & GSM Module – Solar Powered IoT Solution
  7. Raspberry Pi Zero W and GSM SIM900 Based Ultrasonic Distance Measurement System
  8. Arduino UNO Smart Surveillance System with ESP8266 WiFi, PIR Motion Sensor & Camera Module
  9. Arduino UNO Environmental Monitoring System with OLED & 16x2 I2C LCD Display
  10. Arduino UNO-Based Smart Home Automation System with Flame and IR Sensors 
  11. Arduino Nano-Based Landslide Detection System with GSM Alerts – Smart Disaster Monitoring Project
  12. Arduino Nano Rain-Sensing Stepper Motor System
  13. Arduino Based Automatic Tire Inflator Using Pressure Sensor, Relay Module and LCD Display
  14. Arduino-Based Automatic Cooker Using Servo Motors, DC Stirrer Motor, Temperature Sensor and Relay-Controlled Heater
  15. Arduino Sketch for Plastic Bottle and Can Reverse Vending Machine

 TRAFFIC & SMART CITY PROJECTS
  1. RFID-Based Smart Traffic Control System (Arduino Mega)
  2. Arduino UNO Traffic Light Control System – Smart LED Signal Project
  3.  Arduino UNO Controlled Traffic Light System with Joystick Interface

ROBOTICS PROJECTS
  1. Arduino UNO Smart Obstacle Avoiding Robot (Ultrasonic + IR + GSM)
  2. Arduino-Powered Autonomous Obstacle Avoidance Robot with Servo Control
  3. Arduino Nano Bluetooth Controlled Line Follower Robot Using L298N Motor Driver
  4. Arduino UNO Bluetooth Controlled 4WD Robot Car Using L298N Motor Driver
  5. Arduino UNO Multi-Sensor Obstacle Avoidance & Bluetooth Controlled Robot Car Using L298N
  6. Raspberry Pi Motor Control Robot (L298N + Li-ion)
  7. RC Car Simulation with L298N Motor Driver and Joystick Control using Arduino (CirkitDesign Simulation)
  8. Raspberry Pi Robotic Arm Control System with Camera Module and Motor Driver – Smart Automation & Vision-Based Robotics Project
  9. ESP32-Based 4WD Robot Car Using Dual L298N Motor Drivers – Circuit Diagram and IoT Control Project

LORA & WIRELESS COMMUNICATION PROJECTS
  1. Arduino LoRa Communication Project Using Adafruit RFM95W LoRa RadioArduino Nano with RFM95 SX1276 LoRa
  2. Arduino Nano with RFM95 LoRa SX1276 Module – Long Range Wireless Communication Project
  3. Arduino Nano Digital Clock Using DS3231 RTC and TM1637 4-Digit Display – Circuit Diagram and Project Guide

 LED, LIGHTING & DISPLAY PROJECTS
  1. Arduino UNO Controlled NeoPixel Ring Light Show
  2. Wi-Fi Controlled NeoPixel Ring (ESP8266)
  3. Chained NeoPixel Rings with Arduino – Addressable RGB LED Control Project
  4. Arduino Nano-Controlled Lighting System with Gesture and Sound Interaction
  5. Raspberry Pi GPIO Multi-LED Control System – Beginner-Friendly Embedded Electronics Project
  6. 4 Channel Relay Module with Arduino UNO

 SENSOR & DETECTION PROJECTS
  1. Arduino UNO Color Sensor + Proximity System (TCS3200 + Inductive)
  2. Arduino Color Detection Project Using Adafruit TCS34725 RGB Color Sensor
  3. Arduino Gas Leakage Detection and Safety Alert System Using MQ-2 Gas Sensor
  4. MQ-135 Air Quality Detector Using Arduino | Cirkit Designer Simulation Project
  5. Pulse Sensor Using Arduino – Complete Guide with Simulation 
  6. HX711 Load Sensor Demo Using Arduino | Digital Weight Measurement Project
  7. Track Time with DS1307 RTC and Display on Arduino Uno with 16x2 LCD | Cirkit Designer Project
  8. Parking Sensor Simulator using Arduino Uno and HC-SR04 Ultrasonic Sensor

 FUN & INTERACTIVE PROJECTS
  1. Pong Game with Arduino UNO and OLED Display – Project Explanation
  2.   Arduino UNO Bluetooth-Controlled Servo Motor System
  3. Arduino UNO-Based Interactive Touch and Distance Sensing System with LED Indicators and Servo Control

 INDUSTRIAL / AUTOMATION PROJECTS
  1. Arduino UNO Smart Waste Sorting System Using Ultrasonic Sensor, Moisture Sensor, Servo, Stepper Motor and LCD
  2. Arduino-Based Smart Waste Segregation System Using Metal, Plastic and Moisture Sensors with Stepper and Servo Control
  3. ESP32-Based Digital Weighing Scale Using 50kg Load Cell, HX711 Module and 16x2 LCD Display
  4. Arduino-Based Smart Toll Gate Automation System with RFID, GSM, Ultrasonic Sensor and LCD Display

  5. Arduino-Based Automatic Pill Dispenser Machine with LCD Display, Servo Motor and Buzzer Reminder

  6. Arduino UNO Smart Water Quality Monitoring System with pH Sensor, Turbidity Sensor and LCD Display

  7. Arduino-Based Ocean Cleaning Boat Robot with Dual IBT-2 Motor Drivers and Conveyor Belt System

  8. IoT-Based Accident Detection and Health Monitoring System Using Raspberry Pi with GSM, GPS and Camera Integration

  9. Raspberry Pi RFID and Keypad Based Smart Door Lock System with LCD Display and L298N Motor Driver

  10. Smart Shopping Trolley Using Arduino UNO & RFID | Automatic Billing System

  11. Arduino UNO Based Automatic Liquid Hand Sanitizer & Soap Dispenser System

  12. Arduino Based Robotic Weeding Machine with Ultrasonic Obstacle Detection and L298N Motor Driver

  13. Arduino UNO Based Biometric Electronic Voting System with LCD Display and Fingerprint Authentication

  14. Arduino UNO Based Electronic Voting System with ILI9341 TFT Display


Comments