Hello world! Welcome back to microbit series. I am Alina
and today we will try to make the blinking eyes of this wolf.
In the previous video, we have programmed the code to
control LEDs on the microbit board. For
this video, we will connect the microbit with external circuit and components.
Before we start to make the wolf, prepare all the materials for this project:
colour paper to make the wolf, cardboard, 2 LEDs
for the eyes, two 100 ohm resistors, 5 crocodile clips and don't forget, the microbit board.
First step is to construct the wolf. You can draw it or
follow these origami steps.
Make 2 small holes for the wolf's eyes.
Second step, we build the circuit to light up the wolf's
eyes. Insert 1 LED into each
hole just now.
Shorter legs of both LEDs are met and
twisted together.
Clip the twisted legs with one end of the crocodile clip.
Another end of the wire clip is clipped at
GND pin on the microbit. Clip every
LED's longer leg with a resistor and then to another crocodile clip.
One end of the crocodile wire is clipped at pin 0 and another wire
is clipped at pin 1.
Now we will program the microbit to help the wolf
to blink its eyes. On the MakeCode software,
click "Advance" on the block drawer and then "Pins".
Block digital write can send information OFF or ON to the pin we select by using digit
0 or 1. We want to light up both
LEDs just now. Thus, on the block digital
write, select pin P0, the signal to be
sent is ON. Thus, type 1. The same goes
to LED on pin P1.
Click and pull out block "Pause"
and set the timing for both LEDs.
We set the LEDs to light up for 1 second.
The similar steps are repeated to switch off LEDs.
However, for this time the signal to be sent through block digital
write is OFF. Thus, type 0 on
both pins.
Set the timing of LEDS by using the pause block.
We want to make sure the wolf's eyes are always ON and OFF.
And thus we select the forever block
and connect it to the other blocks just now. As a result,
the wolf's eyes will blink every 1 second.
Connect microbit to the computer using a USB cable.
Press download on the software and save
the programming file into the microbit connected just now.
What should we do to make the wolf's eyes blink faster
or slower? What should we modify on the
programming block? Discuss it with your teacher and friends!
Tidy up your project by adding the cardboard and try
to arrange the wires as well as the microbit board
so that they are not seen from the front. Project wolf is done!
Your challenge before proceeding to the next episode is:
try to make a wolf with winking eyes. Happy trying!