System of Recycling Trash (SORT)

by RobinDeMeyer in Circuits > Raspberry Pi

25 Views, 1 Favorites, 0 Comments

System of Recycling Trash (SORT)

20240616_174458.jpg

Sometimes it's not easy to sort trash, rules have changed and might be different for seperate countries. SORT will tell you what bin to throw your trash in when you are in Belgium, so you don't have to wonder yourself anymore.

Supplies

You will need the RPi 5 and an LCD screen, some wood, screws and a webcam. I also used some rubber and nice looking tape for aesthetics.

Building the Box

20240616_173425.jpg
20240616_173430(1).jpg
20240616_173430.jpg
20240616_173440.jpg

Saw three planks of 30x30 and one plank of 30x15. Screw the planks together like shown in the picture (To do). You can screw the box to a base plank, but this is your choice. It does help with stability though.

Attach the Pi and LCD to the Box

20240616_173655.jpg
20240616_173658.jpg
20240616_173701.jpg

Hang up your Raspberry Pi and LCD on the side of the box. I used iron wire for this but you can of course also use some screws. Mount your camera to the front and have it looking from the top.

Connect the PI With the LCD

rn_image_picker_lib_temp_b2cca8d1-1569-4c2b-bf5a-2a179f2c62f9.jpg
rn_image_picker_lib_temp_4014962d-c829-4a73-b103-752cbe670400.jpg

Connect the right pins like shown in the picture, pay attetion to the colours. Use Pins 2-6 on the PI. Put the same pins in the same places as me or you might end up breaking your equipment.

Use My Code

You can find my code and model on this page.

Put the RPI folder on the raspberry Pi.

Put the rest on your local PC. Connect the two with a LAN cable and change the IP adress in the AI code to the correct IP adress of the RPi. Connect the PI to the power grid and the webcam to your PC.

In the AI-server.py file, change the location of the best.pt model to where you have it stored. Change the Pi IP adress if you use a different one.

Turn on the System

Using any code environment, connect to your raspberry Pi and open the RPI folder. Open a second code environment and open your local AI folder.

Run the code on the Raspberry Pi and on your pc.

Have fun!