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

The Top Ejector

Introduction

I’d like to use the micro:bit to design a course. In this course, I need to use the micro:bit to combine building blocks, motors and crash sensors to make something interesting for the children, and also allow them to build the device. I designed a simple top ejector. In the process of building, students can learn the knowledge about gear transmission, and then play games and competitions with their peers.

Materials Required

micro:bit X 1

USB cable X 1

RJ11 Cable X 1

Nezha Breakout Board X 1

Geek Motor X 1

Crash Sensor X 1

Assembly

Build-up steps in PDF:

The-Top-Ejector-1.pdf

Connect Nezha breakout board with the bricks

The Swimming Robot

The-Top-Ejector-2.pdf

Students are able to make adaptations with their ideas, remember to use gear on the top.

Hardware Connection:

Connect the motor to M1 and the crash sensor to J1 on Nezha breakout board.

programming

Program to start or stop the ejector by pressing the crash sensor. Click “Advanced” in the MakeCode to see more choices.

The Swimming Robot

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.

The Swimming Robot

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

The Swimming Robot

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:

The Swimming Robot

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

Result

Press the crash sensor to start the ejector and release it to stop the ejection.

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