Line following Matlab Code. How to Start?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 4K views
ItsAli
Messages
2
Reaction score
0
So we're using NXT 2.0 and MATLAB to program a robot to follow a white line through a maze.

I'm using a light sensor, color sensor and an ultrasonic sensor in the process. Any programming/Coding ideas of how i should start?

This is the maze

https://drive.google.com/file/d/0B7xNoP3tLzPga09aUk1EdEh3VEk/view?usp=sharingThank you.
 
Physics news on Phys.org
Start by experimenting with your components, learn how to read the light sensor and display its results similarly for the other sensors.

Learn how to control your robot to go forward, backward to the left and to the right if needed...

Then you'll have what you need to write the program...
 
jedishrfu said:
Start by experimenting with your components, learn how to read the light sensor and display its results similarly for the other sensors.

Learn how to control your robot to go forward, backward to the left and to the right if needed...

Then you'll have what you need to write the program...
Thanks