April 26, 2011

Colored Object Tracking using the VEX Cortex and NXTCam

Taken from the ROBOTC website:
Update: NEW VIDEO April 29, 2011
In this video, we’ve trained the NXTCam to track the color red. ROBOTC code uses the data from the camera to center the robot on the red ball and drive up to it until it’s within a certain distance.

No official vision system available for the VEX Cortex? No problem.

Thanks to some really cool work by Xander, I2C sensors for the NXT can now be used on the Cortex as well (with a little bit of effort).

As we’ve covered in some of our previous posts, ROBOTC and the VEX Cortex unlock a ton of cool robotic applications – controlling pneumatics, controlling high torque and high speed motors through relays, outputting to the LCD screen, ect. Being able to use the repository of I2C sensors available for the NXT on the Cortex unlocks many, many more.

To demonstrate this, we’ve chosen the Mindsensors NXTCam. With the NXTCam, you’re able to connect it to a computer over USB and “teach” it to track up to 8 different colors. Once it’s hooked up to your robot, it returns data related to the colors it’s tracking – size, x and y positions, ect. This make it ideal for tracking a colored object, distinguishing between multiple different colors, and even advanced line tracking (more on that in a future post).


Xander Soldaat said...

Once version 2.0 of my driver suite is out for the NXT, I will be focusing on making most digital sensors work with the VEX Cortex and Arduino builds of ROBOTC. The driver used in this robot is still has a few things in it that I'd like to clean up.

More info will be posted on my blog when I am ready to release.

Xander Soldaat said...

My blog is http://mightor.wordpress.com, just FYI :)