Aim Bot.
Abstract:
The objective of the final course project will be to wirelessly control the robot using bluetooth using a remote controller. In addition, the robot will have the capability to sense colors. Each colour will enable the robot to respond uniquely. For the demo bellow we have robot The tracker can also be manually activated via remote control.
Hardware:
In designing or robot, we decided to go for a 3D printed design that had 360 degrees of rotation. This meant that we needed at least two motors to control the yaw and roll of the robot in oder to get our full range. For this class we were given a Sparki, so we utilised the the two motors that it came with and the motherboard to control the robots movement. We also bought a Raspberry Pi Mini to host the computer vision code and connect directly to our camera.
My Contribution:
Using OpenCV I was able to write the code that isolated items by their colour putting a boarder around them so that we knew what it was focusing on, and using that same outline calculating the centre of that object with X and Y coordinates. Lastly I wrote the code that sent commands to Sparki to move up down left or right, in order to get the centre of the target object in the centre of the screen.
PROJECT INFO
Client: CSCI 3302 Intro to Robotics
Date: December 16, 2018
Role: Back End Developer
View code: https://github.com/marcoortiztorres/AimBot