Changing Lights

by m.hilmo222729 in Circuits > Microcontrollers

8 Views, 0 Favorites, 0 Comments

Changing Lights

Screenshot 2022-08-22 213932.png

In this I am going to show you how to make a light change color by using a microbit.

Supplies

download.jpg

All you need is tinkercad. Or you can make it in real life.

Micro Bit

Screenshot 2022-08-22 214305.png

The first step is to just get a micro bit.

Light and Resist

Screenshot 2022-08-23 163449.png

Now you need to get a resistor and connect it to the part of the micro bit that says GND.

Then get a LED RGB light and put it under the micro bit.

Wires

Screenshot 2022-08-23 174658.png
Screenshot 2022-08-23 174824.png

Then connect wires to the LED and the resistor like in the picture.

You also need to click on the resistor and make the resistance 120. Then change the symbol like in the picture.

Code

Screenshot 2022-08-23 175242.png

Then click the code button and code it exactly how I did.

Finished

Now just click start simulation and watch the colors change.