Skip to content

Sending a Qbot a set of conditions via a rasberry pi to sort different bottles in a recycling station

Notifications You must be signed in to change notification settings

MahadAhmed25/Quanser-Robot-Recycling-Sorter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Quanser-Robot-Recycling-Sorter

Using Quanser labs this python scrips manipulates a robot to follow a given track to sort different bottles into the given recylcing bin.
The robot was fed the code through a rasberry pi to follow a given set of conditionals.

The software solution we implemented contained multiple functions which were all then used in a nested loop structure. The functions we used were the dispense container function, the load container function, the transfer container function, and the return home function. There were multiple constraints that we needed to consider. Only bottles destined for the same bin will be picked up by the robotic arm. The total mass of the bottles on the hopper must not exceed 90 grams as well. A nested if structure was used with a Boolean variable, conditions that checked if the location of disposal was the same and the mass was less than 90. If the condition variable evaluated to False, no more containers would be loaded. After which the Q-bot would move along the yellow line using data from the line following sensors and adjust its wheel speed accordingly. We used color sensors to distinguish between the different bins. Using the location stored in the variable, transfer bin location, our program finds the corresponding color coordinates and the bot uses it to find the appropriate bin and dump the bottles. The bot will then return to its home position for the next cycle. The bottle left on the table in the previous cycle would be loaded and the next bottle would only be loaded if they were destined for the same bin. The Q-bot will then continue to do all the procedures mentioned as long as the program is not closed.

image

About

Sending a Qbot a set of conditions via a rasberry pi to sort different bottles in a recycling station

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages