# Case 03: Dance in Figure-of-eight ## Purpose --- - Make your [Cutebot](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-smart-cutebot-kit-without-micro-bit-board?_pos=1&_sid=4c6909119&_ss=r) move in the figure-of-eight. - [Cutebot](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-smart-cutebot-kit-without-micro-bit-board?_pos=1&_sid=4c6909119&_ss=r) is a car with three wheels and the direction is adjusted by the different speed of the left and right wheels. ## Materials --- - 1 x [Cutebot Kit](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-smart-cutebot-kit-without-micro-bit-board?_pos=1&_sid=4c6909119&_ss=r) ## Software Platform --- [MicroSoft makecode](https://makecode.microbit.org/#) ## Programming --- ### Step 1 - Click the "Advanced" to see more choices in the MakeCode drawer. ![](./images/cutebot-pk-1.png) - A codebase is required for [Cutebot](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-smart-cutebot-kit-without-micro-bit-board?_pos=1&_sid=4c6909119&_ss=r) programming, click “Add Package” at the bottom of the drawer, search `Cutebot` in the dialogue box and download it. ![](./images/cutebot-pk-11.png) ***Note:*** If you met a tip indicating incompatibility of the codebase, you can continue with the tips or build a new project there. ### Step 2 - Choose "show icon" in the `On start`bricks. ![](./images/case_01_02.png) ### Step 3 - Drag "go straight at full speed" and "set left wheel speed, right wheel speed" bricks into the `Forever` brick in turns. - Divide the "figure-of eight" track into six parts: move forward for 200ms at the beginning, set the speed of the left wheel is faster than the right and set to move for 1000ms after, then go straight for 200ms. Right now you have completed the half part of "figure-of-eight". - Complete the second half part of "figure-of-eight" in a similar way. ![](./images/case_03_01.png) ### Programming Links: [https://makecode.microbit.org/_RRabUPAUjUpD](https://makecode.microbit.org/_RRabUPAUjUpD) You can also download it directly below:
## Result --- - The [Cutebot](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-smart-cutebot-kit-without-micro-bit-board?_pos=1&_sid=4c6909119&_ss=r)moves in the "figure-of-eight". ## Exploration --- - How to program if we want to make the [Cutebot](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-smart-cutebot-kit-without-micro-bit-board?_pos=1&_sid=4c6909119&_ss=r) move in a square shape? ## FAQ --- ## Relevant Files ---