top of page

Smart Trash Can

Purpose of the Project: To create a hygienic trash can project that opens without human touch by using ultrasonic distance sensor and servo motor with Pinoo Control Card.

Duration:  2 lessons

Age group:  7 years and older

Pinoo Set:  Basic set, invention set, maker set and full set.

Achievements:

  • Learns to code Pinoo control board.

  • Learns to use ultrasonic distance sensor.

  • Learns to use servo motor.

  • Develops algorithmic skills.

  • Coding skills develop.

 

 

Materials to be used:  Mblock 3 program, pinoo control card, ultrasonic distance sensor, servo motor, connecting cables.

  

 


Materials Required for Design:  Dustbin, popsicle stick, silicone gun and silicone.

 

 

 

 

Project Construction:

 

For our project, we first start by sticking the ice cream stick to the servo motor.

We stick the ice cream stick to the servo motor.

 

 

We fix our servo motor inside the trash can with the help of a silicone gun so that it will open the lid of the trash can and close it without any problems.

 

 

We drill a hole in the front of the dustbin for our distance sensor.

 

 

 

We fix our distance sensor with the help of a silicone gun and complete our design part.

 

Adding Pinoo extension:

 

 

 

From the Extensions tab, click "Manage Extensions".

 

 

 

In the window that opens, we write “Pinoo” in the search engine and it is enough to say download to the result.

Installed on our computer.

Connecting the Pinoo control board to the computer:

 

 

 

 

 

 

 

 

 

 

 

In Mblock 3, we click on the "Connect" tab in the upper left. In the window that opens, we click on the "Serial Port" section and select the "COM6" option from the page that opens.

NOTE: As each computer has different port entries, the numbers next to COM may change.

 

Click on the Cards tab. From the window that opens, we select the "Arduino Nano" card option used by the Pinoo control card.

 

 

Click on the Extensions tab. In the window that opens, we select "Pinoo", the extension of the control card we use.

 

 

Click on the Connect tab. Click "Firmware Update" from the window that opens.

 

Coding part:

 

 

First, to check whether our ultrasonic distance sensor is working or not, we check the working status of the distance sensor with our 'Say Hello' code under the 'When Clicked' code on our panda puppet.

 

 

 

To start the servo motor, we run it under the command "when the key is pressed". Since the servo motor works between 0 and 180 degrees, we try both angles.

 

 

 

Under our green flag event code, we place the repeat loop and the code that shows the value of our distance sensor inside it. If the value of our distance sensor is less than 10 cm, our servo motor will reach 30 degrees, that is, the lid of the trash can will be opened. If not, that is, if it is larger than 10 cm, our servo motor will move down and the trash can lid will be closed.

 

IMPORTANT: Be sure to try your angles, each example may have different angles. The reason for this is the positioning of the servo motor.

 

 

 

 

Right-click on the “Pinoo Program” command and select the “Install to Arduino” option in the window that opens.

 

 

On the page that opens, we click on the "Upload to Arduino" button, which is selected in red. Our codes are uploaded to our pinoo control card.

After the “Installation Finished” message comes, click the “Close” button. After the installation is finished, the battery holder is inserted and the project is run.

 

Working Status of the Project:

 

 

 

The dustbin cover will open when there is any object in front of the ultrasonic distance sensor, and the dustbin cover will be closed if there is no object.

IMG_4248.JPEG
IMG_4247.JPEG
IMG_4249.JPEG
IMG_4250.JPEG
IMG_4251.JPEG
IMG_4253.JPEG
1_a8314da2-edff-4525-979d-b2d3ff93364b_large.png
pinoo_uzanti_480x480.jpg
seri_port_480x480.jpg
KART_480x480.jpg
pinooo_480x480 (2).jpg
aygit_yazilim_480x480.jpg
1_c4ef1835-eeeb-4549-bb0c-e37b6dbad722_480x480.jpg
2_8bff1b1e-9e60-4117-94b6-e5c12c603b24_480x480.jpg
1.JPG
2.jpg
3.jpg
IMG_4267.JPEG
bottom of page