5% OFF Over $19, Code: Elephant5; 10% OFF Over $59, Code: Elephant10

Microbit Tutorial 3.2 Lesson 18 "Ball small light"

Posted by Fiona Su on

Microbit Tutorial 3.2 Lesson 18 "Ball small light"

1.Learning  goals


After you download the program, turn the adjustable knob to change the brightness of the small light.

Turn off the lights in the room, it will be more beautiful~

Just like in the picture in the upper right corner. Is it like a round moon?



  • 1 x Micro:bit Board
  • 1 x Micro:bit expansion board
  • 3 x DuPont line male to male
  • 1 x LED
  • 1 x Adjustable knob
  • 1 x Breadboard
  • 1 x Table tennis with holes
  • 1 x PC
  • 1 x USB Cable

Then the micro:bit is connected to the computer through USB, and the computer will pop up a U disk and click the URL in the U disk to enter the programming interface.





Everyone must distinguish between the positive and negative poles of the led light. The positive pole is connected to the VCC of the power supply, and the negative pole is connected 

to the GND.(In this course, the positive pole is connected to the P1 pin of the expansion board, and the negative pole is connected to the GND pin of the expansion board.)


Tip: The correct way to connect the adjustable knob is to connect it to the left and middle pins, or connected to the right pin and the middle pin. At the same time, the left pin and the right pin are unadjustable.


In this case, our ball small lights will be ready. After powering it up and downloading the program, it will light up. Led lights will be randomly assigned to everyone, there are yellow, red, green and so on.

4.Search for blocks


5.Combine blocks


The code of the experiment: Lesson 18 Ball small light.rar


Leave a comment

Please note, comments must be approved before they are published