21.5. The Combat Cart-2#

Purpose#

Use the Cutebot smart car to create a cart that can push opponents off the playing field or lose their ability to move.

../../../_images/cutebot-case-27-01.png

Materials#

1 × Cutebot smart car

1 × Cutebot lithium battery expansion kit

n × Building block parts (block parts need to be prepared by yourself)

Assembly#

The installation steps of lithium battery pack:#

../../../_images/cutebot-step-01.png

Construction steps of the building blocks:#

Parts List:

../../../_images/cutebot-case-27-step-01.png

Build steps:

../../../_images/cutebot-case-27-step-02.png ../../../_images/cutebot-case-27-step-03.png

../../../_images/cutebot-case-27-step-04.png

../../../_images/cutebot-case-27-step-05.png

../../../_images/cutebot-case-27-step-06.png

../../../_images/cutebot-case-27-step-07.png

../../../_images/cutebot-case-27-step-08.png

../../../_images/cutebot-case-27-step-09.png

../../../_images/cutebot-case-27-step-10.png

../../../_images/cutebot-case-27-step-11.png

../../../_images/cutebot-case-27-step-12.png

../../../_images/cutebot-case-27-step-13.png

../../../_images/cutebot-case-27-step-14.png

../../../_images/cutebot-case-27-step-15.png

../../../_images/cutebot-case-27-step-16.png

../../../_images/cutebot-case-27-step-17.png

../../../_images/cutebot-case-27-step-18.png

../../../_images/cutebot-case-27-step-19.png

../../../_images/cutebot-case-27-step-20.png

../../../_images/cutebot-case-27-step-21.png

../../../_images/cutebot-case-27-step-22.png

../../../_images/cutebot-case-27-step-23.png

../../../_images/cutebot-case-27-step-24.png

../../../_images/cutebot-case-27-step-25.png

../../../_images/cutebot-case-27-step-26.png

Connection method#

Connect the servo to the S1 of the cutebot smart car.

../../../_images/cutebot-case-26-10.png

Software#

MicroSoft Makecode

Program#

Add extension#

Click “Advanced” in the drawer of MakeCode to see more choices.

../../../_images/cutebot-case-24-01.png

For programming, we need to add a package. Click “Extensions” at the bottom of the drawer and then search Cutebot in the dialogue box to download it.

../../../_images/cutebot-case-24-02.png

For programming, we need to add a package. Click “Extensions” at the bottom of the drawer and then search Joystick:bit V2 in the dialogue box to download it.

../../../_images/cutebot-case-22-03.png

Note: If you get a warning indicating some packages will be removed because of incompatibility issues, you can follow the prompts or create a new project in the menu.

Program#

Cutebot#

../../../_images/cutebot-case-26-04.png

Link: https://makecode.microbit.org/_6kD6KAaEfA8W

You can also download the program directly from the following webpage.

Remote control#

../../../_images/cutebot-case-26-05.png

Link: https://makecode.microbit.org/_6fy3K4Xctdgz

You can also download the program directly from the following webpage.

Result#

If you control the driving direction of the car by the rocker of the remote control, press the C/D button of the remote control to control the servo action.