Skip to main content

TPbot Tail Wing

Purpose​

To build a TPBot with a tail wing.

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 program​

While on start, set to show an icon and while pressing button A, make the TPBot drive at full speed and the servo connecting to S1 drive to 120 degrees, then pause for 2000ms and stop the car, set the servo connecting with S1 to ratote to 90 degrees.

Program​

Reference program: https://makecode.microbit.org/_2x8LaCRwXaz6

You may download it directly here:

Conclusion​

While pressing button A, the cart moves forward and the tail wing raises up, after two seconds, the cart stops moving the the wing lies down.