Skip to main content

TPbot Big Mouth

Purpose​

To build a big mouth TPBot.

Materials Requested​

TPBot Smart Car

360 degrees servo

Bricks Pack

Assembly Steps​

Hardware Connections​

Connect the 360° servo to servo 1 port on the TPBot.

Software​

Microsoft makecode

Program​

Click "Advanced" in the makecode drawer to see more choices.

For programming the TPBot, we need to add the extensions. Click "Extensions" at the bottom of the drawer and search with tpbot in the box, then download it.

Samples for program​

While on start, set to show an icon and make the servo drive to 90 degrees; set the car to drive forward at the speed of 30% and pause for 2000ms; set the servo connecting with S1 to ratote to 180 degrees.

Program​

Reference link: https://makecode.microbit.org/_AYtaMUgroVbh

You may download it directly here:

Conclusion​

The big monster would open the mouth and drive forward for 2 senconds after powering on, then it stops and close the mouth.