Things used in this project

Hardware components:
Ardgen 101
Arduino 101 & Genuino 101
The star of the show, this powerful micro-controller will be used to send the Data via BLE.
×1
Ojyc6a5jtrgslqwc5j7gw9ti
SeeedStudio Base Shield V2
This shield will all the connections a whole lot simpler.
×1
Ard wifi101
Arduino Wifi Shield 101
This will be connected to the Arduino 101 to then transmit its data through the help of WiFi.
×1
Abx00004 iso both
Arduino MKR1000 & Genuino MKR1000
As we had the MKR1000 micro controller we used it instead of buying the Arduino WiFi shield 101. We use both the same way so you can choose any one of the two.
×1
51gzz5eu9pl. sx425
Ultrasonic Sensor - HC-SR04 (Generic)
We used the one from the Grover Arduino 101 kit, any ultrasonic sensor will work, although to connect the starter kit one is easier.
×1
Tens70
9V battery (generic)
Our power source
×1
Keystone 233 image 75px
9V Battery Clip
×1
11026 02
Jumper wires (generic)
×1
E switch eg1218 image 75px
Slide Switch
×1
09590 01
LED (generic)
×3
Software apps and online services:
Ide web
Arduino IDE
Blynk logo avatars
Blynk
This is one of the best apps for hobbyist and makers as it let's you visually see your project on any of your devices.
Hand tools and fabrication machines:
Hy gluegun
Hot glue gun (generic)
Bosch Hand drill

Schematics

Circuit of the system
Connect the Base shield v2 to the Arduino 101, then the Ultrasonic sensor to slot or pin D6. We made a diagram on Fritzing , for those who aren't using the Shield.
Dsc06475 hlxcrx2ttu
Circuit diagram ( without shield)
This one is made on Fritzing an shows the same circuit although this time witout the Base shield.
20527536 1575805172483550 599660158 n t5jqidptrg

Code

Iot Garbage Monitoring AppArduino
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%.
#define BLYNK_PRINT Serial

#include <BlynkSimpleCurieBLE.h>
#include <CurieBLE.h>
#include <Ultrasonic.h>

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

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


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


void setup() {
  Serial.begin(9600);
  delay(1000);

  blePeripheral.setLocalName("garbage");
  blePeripheral.setDeviceName("garbage");
  blePeripheral.setAppearance(384);
  Blynk.begin(blePeripheral, auth);
  blePeripheral.begin();
  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

244a159a38d68de66ab247c4e17f4af2
Technovation

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

Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Arduino Like Function on Kinetis K82 Freedom Stupid Board
Intermediate
  • 126
  • 4

Protip

1000 of K82 Freedom Boards are collecting dust because of the hobbyist unfriendly IDE, pump up the duds with easy Arduino-like functions.

Arduinomated Car Parking with Voice Assistance in Smartphone
Intermediate
  • 802
  • 14

Full instructions

Make an assistant which tells you about how much to drive backwards without any collision through your smartphone by Arduino and 1Sheeld.

Interactive LED Table for 50€
Intermediate
  • 1,960
  • 8

Make an interactive table that displays games, audio spectrum, and animations on a 12x12 built-in LED matrix.

Temperature and humidity meter (iot)
Intermediate
  • 447
  • 4

Measuring temperature and humidity with Arduino and uploading it to the server

Sigfox Forest Fire Detector
Intermediate
  • 3,077
  • 17

Full instructions

How to prevent forest from burning? A small Sigfox signal can prevent natural disasters. We will use an Arduino MKRFOX + a flame detector.

Interactive Bike Motion Light and Display
Intermediate
  • 529
  • 4

Full instructions

Flashy LED decor lights that respond to your bike's motion.

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaFree StoreBlog