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
Please download the io. file if you have Lego studio: A-Simple-Trebuchet-Car.io
After assembly, connect with Nezha breakout board.
Hardware connections
Software Programm
Click “Advanced” in the MakeCode to see more choices.
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.
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:
Link: https://makecode.microbit.org/_YawbTDUVwJke
Result
Press button A to drive the car for 2 seconds and the car throws out the “stones”.
Share this post
About the Author
ELECFREAKS focuses on microbit and publishes interesting articles
Topics
- Curriculum
- Course
- Micro bit supplier
- Wholesale Suppliers
- Micro bit tutorial
- Micro bit classroom pack
- Mcorbit Environment Monitoring
- Temperature-controlled
- Motor
- Fan
- TPBot car
- TPBot
- Micro:bit car
- AI Lens
- Micor:bit AI Lens
- Micro:bit LEDs
- BBC micro:bit
- Micro:bit Manipulator
- Wukong board
- Cutebot
- Micro:bit Motorcycle
- Nezha breakout
- Micro:bit DIY
- 360° servos
- AI Lens
- Retro Arcade
- Ecode
- PlanetX
- Microbit programming
- Your:bit
- Do your:bit
- IoT:bit
- Octopus
- Rainbow LED Ring
- Joystick:bit
- Wonder Building Kit
- Sensor:bit
- Downie
- Wenjie
- Laser Engraver Tutorial
Tags
Comments