Close
0%
0%

The Big Bin

Try to guess the right bin for the different waste : The Game

Public Chat
Similar projects worth following

Every one is aware of climat change and is, for most of us, willing to act for the conservation of Earth. So we have to teach even to the youngest of us the ways to counter the climat change. And that's why we decided to create an initiation to the french waste recycling.

  So that's why we decided to create a game to introduce kids to waste recycling. The game is composed by a bin and wastes that have sensors. This game was created for presentations in school so that kids y’a play just 1 or 2 times. 

The goal of the game is to put the right waste in the good bin. So the bin is going to ask for exemple  "Put a waste that goes in the yellow bin", if the player put a good waste, he win one point. If he does not, he won’t win anything. The player has 5 chances to have the maximum of the points. Finally if the player has between 3 and 4 points, he wins a candy and if he has 5 points, he wins a toy. 

  • 3 × LED
  • 1 × Bin
  • 1 × RFID Reader
  • 1 × Arduino Uno Rev3
  • 1 × LCD Capacitors / Ceramic

View all 8 components

  • Log Book

    Prost05/14/2018 at 13:26 0 comments

    Hello everyone and welcome to The BigBin project.

    We will summarize our progression, week by week.

    On the first day at the CRI, we started initially with the idea to build an autamated waste sorting machine. But they were too much difficulties, so we adapt and decided to make a game for kids, to help them to understand the recycling in France.

    Basically our idea is to have a set of trash, the kid pick one of them and he has to put the trash in The BigBin. The trash is scan, then the kid has to push a button of 3 differents colors (which represents the 3 french bins). If the kid guess correctly a green led light up if not a red light up. 

    On the first day at the CRI, we basically came out with the idea of the BigBin proejct, and started to make a list of components. 

    Next session, we received all the components that we asked, and started to look online, and found a video on Youtube, this video gave us a solid idea on how to use the RFID items with arduino. 

    But, even by checking online we couldn't make the LCD screen work correctly, we basically spend the whole 3 hours to try to fix it. 

    On day 4 we manage to make the LCD screen work and received a new RFID Reader since the other one broke during soldering. We also tried to make LED work seperatly from the project

    On day 5, we manage to make everything work perfectly except for the LED that we won't use anymore in this project. Here is the nearly finished code:

    #include <deprecated.h>
    #include <MFRC522.h>
    #include <MFRC522Extended.h>
    #include <require_cpp11.h>
    
    #include <SPI.h>
    #include <MFRC522.h>
    #include <LiquidCrystal.h>
    #include <Wire.h> 
    #include <LiquidCrystal_I2C.h>
    
    //I2C pins declaration
    LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); 
    
    #define RST_PIN 9
    #define SS_PIN 10
    MFRC522 module_rfid(SS_PIN, RST_PIN);
    
    int buzzer = 8;
    int led_rouge = 14;
    int led_verte = 15;
    String line1 = "Present your";
    String line2 = "yellow bin trash";
    
    void setup() {
      pinMode(led_rouge, OUTPUT);
      pinMode(led_verte, OUTPUT);
      pinMode(buzzer, OUTPUT);
      lcd.begin(16, 2);
      lcd.backlight();
      SPI.begin();
      module_rfid.PCD_Init();
      lcd.print("Hello");
      lcd.setCursor(0, 1);
      lcd.print("Welcome");
      delay(3000);
      lcd.clear();
    }
    
    void loop() {
      lcd.print(line1);
      lcd.setCursor(0, 1);
      lcd.print(line2);
    
      if ( ! module_rfid.PICC_IsNewCardPresent()) 
      {
        return;
      }
    
      if ( ! module_rfid.PICC_ReadCardSerial()) 
      {
        return;
      }
    
      String UID = "";
    
      for (byte i = 0; i < module_rfid.uid.size; i++) {
        UID.concat(String(module_rfid.uid.uidByte[i] < 0x10 ? " 0" : " "));
        UID.concat(String(module_rfid.uid.uidByte[i], HEX));
      }
    
      UID.toUpperCase();
    
      if (UID.substring(1) == "51 41 13 D3") 
      {
        lcd.clear();
        lcd.setCursor(0, 0);
        lcd.print("Good Answer 1/2");
        digitalWrite(led_verte, HIGH);
        tone(buzzer, 1200, 100);
        delay(125);
        tone(buzzer, 1200, 100);
        delay(2000);
        digitalWrite(led_verte, LOW);
        lcd.clear();
        lcd.setCursor(0, 0);
        line2 = "brown bin trash ";
        
        //lcd.print("Present your ");
        //lcd.setCursor(0, 1);
        //lcd.print("brown bin trash");
      }
    
      else {
        lcd.clear();
        lcd.setCursor(0, 0);
        lcd.print("Wrong Answer");
        digitalWrite(led_rouge, HIGH);
        tone(buzzer, 200, 750);
        delay(2000);
        digitalWrite(led_rouge, LOW);
        lcd.clear();
      }
    }
    
    
    
    
    
    

    We still need to make two RFID badge work at the same time, to finish the code part of the project. 

    Here is a first look at how our project works

View project log

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates