21.1. Cutebot-Item Grabbing Car#

Purpose#

Use a cutebot smart car with mechanical claws to create a car with the ability to grab items.

Materials#

1 × Cutebot smart car

1 × ELECFREAKS Mechanical Catch

1 x Joystick:bit V2

Assembly#

The installation steps of mechanical claw:#

../../../_images/cutebot-claw-01.png

Connection methods:#

Connect the mechanical claw to the S1 interface of the Cutebot car.

../../../_images/cutebot-claw-02.png

Software#

MicroSoft Makecode

Program#

Add extensions#

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-22-04.png

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

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

Remote control#

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

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

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

Result#

If the moving direction of the car is controlled by the joystick, press the C/D button of the remote control to control the opening and grasping of the mechanical claw.

Exploration#

FAQ#

Relevant reading#