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

The Swimming Robot

Introduction

This is a simple “swimming robot”. Of course, it can’t swim in the water but is able to move on the ground by “swinging” its arm. This project mainly aims to guide children to think about how to speed up by using different materials and the touching places to the ground.

Materials Required

micro:bit X 1

USB cable X 1

RJ11 Cable X 1

Nezha Breakout Board X 1

Geek Motor X 1

Assembly

Bricks Build-up:

The-Swimming-Robot.pdf

Connect Nezha breakout board with the devices.

The Swimming Robot

Connect motor to M1.

The Swimming Robot

Functions

Program to drive the robot forward by pressing the buttons on micro:bit.

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

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.

Program:

The Swimming Robot

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

Result

Press button A to drive the robot and button B to stop.

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