MicroPython Tutorial XVII

Ok, lets back to edges. One of the tasks you’ll surely need your robot to do is square its self up along an edge. A task that with a single colour sensor needs some engineering. What I have done here is mount a colour sensor on cog, that is connected to the medium motor, so that I can move it left and right.

With the accompanying script to drive it shown here.