Line following algorithms nxt robot designs


In this way, if exactly on the colour boundary, the robot runs straight ahead. The second and third loop control the left and right motors. For example, multiplying the differential by a value of 1. X can make the maximum turning circle sharper. Twitter Facebook LinkedIn Google.

This method can work very well, it is reasonably fast, it can handle a gap or break in the line as it will just continue forward when neither sensor see a line and with two sensors it can be used to read line following algorithms nxt robot designs green shortcut markers. Twitter Facebook LinkedIn Google. The algorithm for this is very straight forward:. The more the sensor gets on the line, the blacker the perceived colour is. Here is my second article in a series on robot design and programming techniques.

The factors and formulas can be adjusted to change the power values. Having a matched pair of sensors will make it much simpler to create programs without having to compensate for differences in sensor readings. You are commenting using your WordPress. Every sensor is different and will give different readings for the same conditions.