The eye is a very important organ for us. We can see the colorful world by them. so protecting
eyes is very important to us! Reading in a too bright or too dark environment can cause
damage to our eyes, so when we read a book, we must pay attention to the brightness of the
light to be appropriate. Maybe what we need at this time is a table lamp with adjustable
brightness, let's start to make it!
Experiment 9 – Make an adjustable table lamp
Instruction
Learn how linear potentiometer works and use it to make an adjustable table lamp with LED.
Learn how to change the brightness of the LED.
Learn how to create variables to store value.
Learn how to remap numbers from one range to another.
Micro:bit x1
Crowtail-Base shield for Micro:bit x1
Crowtail-Linear Potentiometer x1
Crowtail-LED(Green) x1
Crowtail-Cable x2
USB cable x1
Target
Required Parts
The Crowtail- Linear Potentiometer module uses a
linear variable resistor with a maximum resistance of
10KΩ. When you move the slider from one side to the
other, its output voltage will range from 0 V to the
VCC you applied. The panel mount design makes this
module easy to be installed in projects.
Connect Crowtail-Linear Potentiometer and Crowtail-LED to P0, P1 ports of Crowtail-Base
shield for Micro:bit. The hardware connections are as follows:
Hardware learning and connection
23