System of Recycling Trash (SORT)
by RobinDeMeyer in Circuits > Raspberry Pi
66 Views, 2 Favorites, 0 Comments
System of Recycling Trash (SORT)
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.
Downloads
Building the Box
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
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
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!