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

image.pngimage.png

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?

2.Preparation

Hardware:

  • 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.

3.Handmade

image.png

image.png

image.png

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.)

image.png

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.

image.png

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

image.png

5.Combine blocks

image.png

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

0 comments

Leave a comment

Please note, comments must be approved before they are published