Make The :MOVE mini Draw A Circle (MakeCode) :To draw a circle the outside wheel must move faster than the inside one. On a :MOVE mini we have independently controllable wheel speeds. When the wheels are going in opposite directions the :MOVE mini will turn on the spot, and then as the wheels become close to the same speed it will make a larger, and larger circle, until it ends up going in a straight line. This code draws a small sized circle by running one motor at full speed, and one motor at 1/3 speed. You can edit the radius of the circle by altering the write speed. Use a write speed from 90 – 0 for one servo and 90 – 180 for the other, where 0 and 180 is a straight line (allowing for variance in servos it will probably drift to one side or another).
Downloads:For those that want to get drawing straight away, we've included the zip file below that contains all of the code above as three separate hex files.
- You can download the code here.
©Kitronik Ltd – You may print this page & link to it, but must not copy the page or part thereof without Kitronik's prior written consent.