Color Follower Robot

Code detects the red object in the image captured by webcam and communicates with micro-controller
3.1K Downloads
Updated 16 May 2010

View License

I had written this code for my mechatronics course project: Color Following Robot/Image Processing Robot. It follows object of any particular color (red in this case).
1) The robot (RC car) has a webcam mounted on top of it which captures images continuously. (Image Acquisition Toolbox)
2) Image processing toolbox helps to process these images to detect red pixels in the image. It finds area and centroid position of red object.
3) External Interfaces feature helps to set up a serial port object which send appropriate output to the microcontroller (PIC16F690 in this case) which controls RC servo & DC motor.
4) C code for PIC microcontroller available upon the request.
5) This code can be helpful to people who want to use image processing/ serial port communication for their projects.

Cheers,
Tejas

Cite As

Tejas Varunjikar (2024). Color Follower Robot (https://www.mathworks.com/matlabcentral/fileexchange/27422-color-follower-robot), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Communities

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.3.0.0

Added an image (flowchart), file remains same.

1.2.0.0

none

1.0.0.0