"It’s Here! The BFCM Sale of the Year – Grab Your Favorites!"

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

images
In March, ELECFREAKS supported 5 schools to carry out school science and technology festival activities
images
Children’s Programming Education is the Future Trend
images
Technical verification! Nezha series products can complete WRO competition tasks
images
Let's take part in the Ceremony of the New Factory of ELECFREAKS together!
images
Bluetooth Bee(HC-05 and HC-06) User Guide
images
In March, ELECFREAKS supported 5 schools to carry out school science and technology festival activities
Monthly Archive