Technovation
Published © GPL3+

Smart Garbage System Using MAX32620FTHR

A method in which waste management is automated. An innovative system that will help keep the city clean and healthy.

IntermediateFull instructions provided2 hours2,587

Things used in this project

Hardware components

MAX32630FTHR
Maxim Integrated MAX32630FTHR
The brain of our system
×1
Bluetooth Low Energy (BLE) Module (Generic)
×1
Ultrasonic Sensor - HC-SR04 (Generic)
Ultrasonic Sensor - HC-SR04 (Generic)
×1
4xAA battery holder
4xAA battery holder
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Slide Switch
Slide Switch
×1

Software apps and online services

Arduino IDE
Arduino IDE
Blynk
Blynk

Hand tools and fabrication machines

Hot glue gun (generic)
Hot glue gun (generic)

Story

Read more

Schematics

Connecting MAX32620FTHR to the System

Code

IOT Smart Garbage System Code

Arduino
This app will display the real time level of the trash with three Leds placed vertically on the Blynk application. Green represents the range from 0 to 25%, Orange from 25 to 60% and Red from 60 to 100%.
#include <Ultrasonic.h>

#define BLYNK_USE_DIRECT_CONNECT

// You could use a spare Hardware Serial on boards that have it (like Mega)
#include <SoftwareSerial.h>
SoftwareSerial DebugSerial(2, 3); // RX, TX

#define BLYNK_PRINT DebugSerial
#include <BlynkSimpleSerialBLE.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";

WidgetLED green(V1);
WidgetLED orange(V2);
WidgetLED red(V3);


Ultrasonic ultrasonic(12, 13);
int distance = 0;
int thresh [3] = {20,12,4};


void setup() {
  Serial.begin(9600);
  DebugSerial.begin(9600);
  delay(1000);
  Blynk.begin(Serial, auth);
  Serial.println("Waiting for connections...");
}

void loop() {
distance = ultrasonic.distanceRead();
Serial.print(distance);
Blynk.run();
  if(distance<=thresh[0]&&distance>=thresh[1]&&distance>=thresh[2]){
    green.on();
    Serial.println(1);
    }
  else if(distance<=thresh[0]&&distance<=thresh[1]&&distance>=thresh[2]){
    green.on();
    orange.on();
    Serial.println(2);
  }
  else if(distance<=thresh[0]&&distance<=thresh[1]&&distance<=thresh[2]){
    green.on();
    orange.on();
    red.on();
    Serial.println(3);
  }
  else{
    green.off();
    orange.off();
    red.off();
    Serial.println(0);
  }
  delay(100);

}

Credits

Technovation

Technovation

7 projects • 91 followers
We are two young inventors, Kousheek and Satya .We like making robots and tech related things. Our projects focus on simplicity utility.

Comments