[et_pb_section fb_built=”1″ admin_label=”section” _builder_version=”4.0.7″][et_pb_row admin_label=”row” _builder_version=”3.25″ background_size=”initial” background_position=”top_left” background_repeat=”repeat”][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” custom_padding__hover=”|||”][et_pb_text _builder_version=”4.0.7″ background_size=”initial” background_position=”top_left” background_repeat=”repeat” hover_enabled=”0″]

PID steering with gyro sensor

PID is a constant feedback loop that uses Proportional, Integral and Derivative variables in an algorithm to make a robots drive very straight! In fact, if your robot is pushed off course it will find its way back! An everyday example is the cruise control on a car, where ascending a hill would lower speed if only constant engine power were applied. The controller’s PID algorithm restores the measured speed to the desired speed with minimal delay and overshoot by increasing the power output of the engine. At an FLL competition we gave away the code created by a youtuber called BuilderDude35 for free on our website

Watch the video about PID steering here

Click here to download the code for PID steering

PID line following with the color sensor

According to BuilderDude35 “The proportional line follower is an essential staple in EV3 programming. It is the fundamental line following program to master for competitions such as FLL or WRO. A proportional line follower uses a single EV3 color sensor to watch the line and uses proportional logic to adjust the EV3 robot’s trajectory so that the robot follows the line smoothly. An EV3 proportional line follower program is actually quite simple to make.”

Click here to go to the video by BuilderDude35

Click here to download the code for PID line following

Credit to info, code, and videos by BuilderDude35