how does it balance
hady6053 2 weeks ago
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 1 month ago
@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.
Laurens200 1 month ago
so cool.
katybrewer1966 4 months ago
That is amazing. Can it go up a small incline?
legomaniacman 4 months ago
@legomaniacman It can go up an incline. Backwards though, or the Light Sensor might get in the way :)
Laurens200 4 months ago
I could never build this. The only thing I can build without instructions is a car.
ctimesrocker78 4 months ago
@ctimesrocker78 Same thing for me when I started years ago. You'll learn on the go! :)
Laurens200 4 months ago 3
@Laurens200 Thank you! :)
Excellent stuff! :)
holyhell5050 4 months ago
Laurens --
Amazing! Yet another impressive demonstration. Would love to see the code for that, too.
-- Will
bain006 4 months ago
What the di imu do?
falanginho 4 months ago
Is that the LEGO color or light sensor? Can you post the Code?
MrNXTpro 4 months ago
Fantastic creation!
DxtrIndustries 4 months ago
cool!
philipstar10 4 months ago
how does it balance
hady6053 2 weeks ago
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 1 month ago
@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.
Laurens200 1 month ago
so cool.
katybrewer1966 4 months ago
That is amazing. Can it go up a small incline?
legomaniacman 4 months ago
@legomaniacman It can go up an incline. Backwards though, or the Light Sensor might get in the way :)
Laurens200 4 months ago
I could never build this. The only thing I can build without instructions is a car.
ctimesrocker78 4 months ago
@ctimesrocker78 Same thing for me when I started years ago. You'll learn on the go! :)
Laurens200 4 months ago 3
@Laurens200 Thank you! :)
ctimesrocker78 4 months ago
Excellent stuff! :)
holyhell5050 4 months ago
Laurens --
Amazing! Yet another impressive demonstration. Would love to see the code for that, too.
-- Will
bain006 4 months ago
What the di imu do?
falanginho 4 months ago
Is that the LEGO color or light sensor? Can you post the Code?
MrNXTpro 4 months ago
Fantastic creation!
DxtrIndustries 4 months ago
cool!
philipstar10 4 months ago