🎃Happy Halloween Sale🎃Get 12% Off For All Order

A Simple Fan

Introduction

The hot seasons are always sweating us and making the body sticky and uncomfortable, which would lead to the loss of body water, and you feel a dry tongue, even to catch a heatstroke. Therefore, a suitable cooling device would be helpful. We have many cooling methods, such as: air conditioning, fans, frozen drinks, etc. Let’s make a simple little fan today.

Materials Required

micro:bit X 1

USB cable X 1

RJ11 Cable X 1

Nezha Breakout Board X 1

Motor X 1

Steps

Bricks Build-up: Please find the reference in the PDF:

A-Simple-Fan.pdf

Connect the motor and Nezha breakout board with the bricks.

A Simple Fan

Connect the motor to M1 port on Nezha.

A Simple Fan

Result

Program to drive the fan through the buttons on the micro:bit.

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

A Simple Fan

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 Fan

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:

A Simple Fan

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

Result

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

Leave a Reply

Your email address will not be published. Required fields are marked *

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