Color Follower Robot
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
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Computer Vision Toolbox > Tracking and Motion Estimation > Motion Detection >
Tags
Communities
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.