🎄Merry Christmas🎄Coolest Christmas Gift Received Ever!
🌟All products' price reduced by 15% off
🎁Hot-Selling Items: Buy 10 Get 1 Free

A Simple Trebuchet Car

Purpose

This is a simple trebuchet car which has made an adaptation from the former trebuchet that could throw blocks.

Link of the trebuchet in last blog: https://www.elecfreaks.com/blog/post/a-simple-trebuchet.html

Blocks Build-up

Steps

A-Simple-Trebuchet-Car.pdf

Please download the io. file if you have Lego studio: A-Simple-Trebuchet-Car.io

After assembly, connect with Nezha breakout board.

Hardware connections

A Simple Trebuchet Car

Software Programm

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

A Simple Trebuchet Car

For programming, we need to add a package: click “Extensions” at the bottom of the MakeCode drawer and search with “nezha” in the dialogue box to download it.

A Simple Trebuchet Car

Notice: If you met a tip indicating that some codebases would be deleted due to incompatibility, you may continue as the tips say or create a new project in the menu.

Code:

A Simple Trebuchet Car

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

Result

Press button A to drive the car for 2 seconds and the car throws out the “stones”.

Leave a Reply

Frame 422188
Meet ELECFREAKS at BETT 2025!
Frame 422521
Our New Distributor——BERRYBASE
images
In March, ELECFREAKS supported 5 schools to carry out school science and technology festival activities
Frame 422188
Meet ELECFREAKS at BETT 2025!
Frame 422521
Our New Distributor——BERRYBASE
images
How to make a counter with micro:bit?
Monthly Archive