keyestudio
Share your creative ideas with us here
By ran | 22 July 2024 | 0 Comments

HOW to Use Fan with Microbit

Overview

A Keyestudio L9110 fan module is included in the kit. Connect the INA INB interface of the fan module to the control terminal of the micro bit (with ANALOG IN function). We can control the direction and speed of the fan on the module by two interfaces. In the experiment, we control the fan on the module to rotate clockwise, stop, and counterclockwise.

Components Needed

  • micro: bit motherboard * 1

  • Keyestudio Micro bit sensor V2 expansion board * 1

  • USB cable * 1

  • Keyestudio L9110 fan module * 1

  • Dupont jumper wire*4

  • Premium Battery Holder 6-cell AA*1

  • 1.5V AA Battery*6

Connection Diagram

44

Test Code

Img Img

Test Results

Wire according to connection diagram, plug in external power and upload code to micro:bit. The fan on the module rotates clockwise (relatively faster) for 1s; stops for 2s; rotates counterclockwise (relatively slower) for 1s, stops for 2s, and alternately.

Leave a Reply

Your email address will not be published.Required fields are marked. *
Name
E-mail
Content
Verification code