Added: 4 months ago
From: Laurens200
Views: 7,547
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (15)

Sign In or Sign Up now to post a comment!
  • how does it balance

    

  • Dear Laurens...

    I want to know how to control the power of right motor & left motor,so that it can follow the line...

    could u tell the algorithm or code in java??because I also make balancing robot but it can't follow the line..

    best regards

    Pras

  • @windra31290

    The program does proportional line following. light_error = SensorReading - AverageLightValue; steering = light_error*2/3;

    That's it, basically. And, AverageLightValue = (black_reading+white_reading)/­2. The 2/3 is a constant value found by experimentation.

  • so cool.

  • That is amazing. Can it go up a small incline?

  • @legomaniacman It can go up an incline. Backwards though, or the Light Sensor might get in the way :)

  • I could never build this. The only thing I can build without instructions is a car.

  • @ctimesrocker78 Same thing for me when I started years ago. You'll learn on the go! :)

  • @Laurens200 Thank you! :)

  • Excellent stuff! :)

  • Laurens --

    Amazing! Yet another impressive demonstration. Would love to see the code for that, too.

    -- Will

  • What the di imu do?

  • Is that the LEGO color or light sensor? Can you post the Code?

  • Fantastic creation!

  • cool!

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more