Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Line following Matlab Code. How to Start?

  1. Dec 2, 2014 #1
    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=sharing


    Thank you.
     
  2. jcsd
  3. Dec 2, 2014 #2

    jedishrfu

    Staff: Mentor

    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...
     
  4. Dec 3, 2014 #3

    Thanks
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook




Loading...