+21622886281
Micro:bit RGB LED

Vary the light intensity of an RGB LED with Micro:bit

Purpose of this tutorial:

In this tutorial we will automatically vary the light intensity of an RGB LED

Required components

Micro:bit board

Micro:bit is a small, low-cost microcontroller board that was developed by the Micro:bit Educational Foundation for use in computer education. It is designed to be easy to use and accessible to a wide range of users, including children and beginners. The Micro:bit board measures about 4cm by 5cm and features a 25-pin edge connector, a 5×5 LED matrix, two programmable buttons, an accelerometer, a compass, a Bluetooth Low Energy (BLE) module, and a USB connector.

The Micro:bit is programmed using a variety of programming languages such as Python, JavaScript, and Microsoft Block Editor. It can be used to control a wide range of devices and projects, including robots, drones, lights, and more. The board can be powered by a USB cable or a 3V coin cell battery and can be programmed using a computer or mobile device.

The Micro:bit is widely used in education, providing a hands-on learning experience for students of all ages to learn computer programming, logic, and problem-solving. It’s also used by hobbyist and makers to create fun and interactive projects.

Microbit GPIO board

A Micro:bit GPIO (General Purpose Input/Output) Expansion Board is an accessory that can be used to extend the capabilities of a Micro:bit by providing additional input/output (I/O) pins. These pins can be used to connect sensors and actuators, such as LEDs, buttons, motors, and other electronic components.

The expansion board typically connects to the Micro:bit using a standard edge connector and provides a set of male headers that can be used to connect external components.

LED RGB

LED RGB stands for Light Emitting Diode Red Green Blue. It refers to a type of LED that can emit light in different colors by adjusting the intensity of the red, green, and blue light emitting diodes. This allows for a wide range of color options and the ability to create dynamic color-changing effects. They are commonly used in lighting fixtures, displays, and other electronic devices.

3 Resistors of 22O Ω

Resistance is a measure of a material’s opposition to the flow of electric current. It is measured in ohms (Ω) and is represented by the symbol “R”. The more resistance a material has, the less current will flow through it when a given voltage is applied. Conversely, the less resistance a material has, the more current will flow through it when a given voltage is applied.

connecting wires

Connecting wires are used to connect various components in an electronic circuit. They allow for the transfer of electricity, data, or signals between different devices and components.

When connecting wires to an Arduino or other microcontroller, it is important to pay attention to the correct pinout. The pinout refers to the arrangement of pins on the microcontroller and the corresponding function of each pin. The Arduino pinout can be found in the documentation provided by the manufacturer, or in various resources available online.

test plate

A test plate, also known as a test jig, is a device used to test electronic circuits and components. It is a board or plate that has been designed to hold and connect various components and devices in a specific configuration, allowing for the easy testing and measurement of their performance.

A test plate can be used to test various types of electronic circuits and components, such as microcontrollers, sensors, and actuators. It typically includes connectors and sockets for connecting wires, power supply and measurement devices such as multimeters, oscilloscopes, and power supplies.

Assembly

Connect:

  • Pin Po from the Micro:bit board to pin (R) for the red color of the RGB LED module
  • Pin P1 from the Micro:bit board to pin (G) for the green color of the RGB LED module
  • Pin P2 from the Micro:bit board to pin (B) for the blue color of the RGB LED module
  • the GND pin of the micro:bit to pin (GND) board of the RGB LED module

The mounting methods are numerous and here are some examples:

Mounting (1)

Mounting (2)

Makecode program

Here is the makecode program that allows you to automatically vary the light intensity of RGB LEDs.




36 commentaires

juegos friv 10-11-2323

Good day! I know this is kinda off topic but I was wondering if you knew where I could find a captcha plugin for my comment form? I'm using the same blog platform as yours and I'm having trouble finding one? Thanks a lot!

tinder 25-10-2323

I like the valuable information you provide for your articles. I'll bookmark your blog and check once more right here frequently. I'm slightly sure I will be told plenty of new stuff right right here! Good luck for the next! Feel free to surf to my web page; tinder

تبخير 18-09-2323

Undeniably believe that which you stated. Your favorite reason appeared to be on the net the simplest thing to be aware of. I say to you, I certainly get annoyed while people think about worries that they just don't know about. You managed to hit the nail upon the top as well as defined out the whole thing without having side effect , people could take a signal. Will probably be back to get more. Thanks

หนังโป๊นักเรียน 24-08-2323

It's actually a nice and useful piece of information. I'm glad that you simply shared this helpful info with us. Please keep us informed like this. Thank you for sharing.

German 08-08-2323

I have read so many content about the blogger lovers but this piece of writing is really a fastidious piece of writing, keep it up. Here is my blog: German

website 15-07-2323

Hi there! I know this is kinda off topic but I was wondering if you knew where I could locate a captcha plugin for my comment form? I'm using the same blog platform as yours and I'm having difficulty finding one? Thanks a lot!

friv games 17-06-2323

Hey there! I know this is kind of off topic but I was wondering if you knew where I could find a captcha plugin for my comment form? I'm using the same blog platform as yours and I'm having problems finding one? Thanks a lot!

friv games 12-05-2323

It's genuinely very difficult in this active life to listen news on TV, so I just use the web for that purpose, and obtain the newest news.

juegos friv 12-04-2323

Saved as a favorite, I love your blog!

trendigitaltech 19-02-2323

Hello to every single one, it's in fact a fastidious for me to pay a quick visit this website, it consists of priceless Information.

bluetooth trademark license agreement 01-02-2323

Good post. Iⅼearn something new and challenging on blоgs I stumbleupon every day. It's always exciting to read content fгom other wriyers and practice something from other wеbsites.

ปืนสั้นแก๊ส 24-01-2323

I do not even know how I ended up here, but I thought this post was good. I don't know who you are but certainly you're going to a famous blogger if you aren't already ;) Cheers!

intel trademark license agreement 14-01-2323

Hi, of course this ρargraph is trulу good ɑnnd I have learned ⅼot of things from it regarding blogging. thanks.

ogloszenie 07-01-2323

I'm really loving the theme/design of your web site. Do you ever run into any browser compatibility problems? A couple of my blog visitors have complained about my website not operating correctly in Explorer but looks great in Chrome. Do you have any advice to help fix this problem?

football 29-12-2222

I must thank you for the efforts you've put in writing this blog. I am hoping to see the same high-grade content from you later on as well. In fact, your creative writing abilities has inspired me to get my very own blog now ;)

แทงบอลโลก 28-12-2222

Simply want to say your article is as astounding. The clarity in your submit is just spectacular and that i could think you're knowledgeable in this subject. Well with your permission allow me to grab your RSS feed to stay updated with forthcoming post. Thank you one million and please keep up the gratifying work.

เว็บข่าวกีฬาต่างประเทศ 19-12-2222

When someone writes an article he/she retains the plan of a user in his/her brain that how a user can understand it. So that's why this article is amazing. Thanks!

ซื้อหวย 19-12-2222

Do you have a spam issue on this blog; I also am a blogger, and I was wanting to know your situation; many of us have created some nice procedures and we are looking to trade solutions with other folks, why not shoot me an email if interested.

เว็บสล็อตตรง 2023 10-12-2222

An impressive share! I have just forwarded this onto a co-worker who was conducting a little homework on this. And he in fact bought me breakfast simply because I found it for him... lol. So let me reword this.... Thanks for the meal!! But yeah, thanx for spending some time to talk about this issue here on your internet site.

เว็บตรงจ่ายจริง 07-12-2222

Hi there, I found your site by the use of Google at the same time as searching for a similar subject, your website got here up, it appears to be like great. I have bookmarked it in my google bookmarks. Hello there, just became alert to your weblog through Google, and located that it's truly informative. I am going to be careful for brussels. I will appreciate for those who continue this in future. Numerous other folks might be benefited from your writing. Cheers!

tracfone special coupon 2022 02-12-2222

Hello there, just became aware of your blog through Google, and found that it is really informative. I am gonna watch out for brussels. I'll appreciate if you continue this in future. A lot of people will be benefited from your writing. Cheers!

ฝากถอนไว 01-12-2222

Keep this going please, great job!

สมัครบาคาร่าเว็บตรง 28-11-2222

I'd like to find out more? I'd like to find out some additional information.

2022 27-11-2222

Woah! I'm really enjoying the template/theme of this website. It's simple, yet effective. A lot of times it's tough to get that "perfect balance" between superb usability and visual appearance. I must say you've done a very good job with this. Also, the blog loads very fast for me on Safari. Superb Blog!

อลิซรัน ทดลองเล่น 23-11-2222

Quality articles or reviews is the crucial to be a focus for the people to pay a visit the web site, that's what this web site is providing.

เว็บตรงค่ายjoker 15-11-2222

Everything is very open with a clear clarification of the challenges. It was definitely informative. Your website is very useful. Thank you for sharing!

Penny 03-10-2222

Please let me know if you're looking for a writer for your blog. You have some really good posts and I feel I would be a good asset. If you ever want to take some of the load off, I'd love to write some material for your blog in exchange for a link back to mine.

Lisa 26-08-2222

I pay a vjsit each dayy some web sites and information sites to read content, except this website offers feature based articles.

Georgina 26-08-2222

Woah! I'm really enjoying the template/theme of this blog. It's simple, yet effective. A lot of times it's tough to get that "perfect balance" between superb usability and visual appearance. I must say you've done a fantastic job wit this. Additionally, the blog loads super quick for me on Opera. Supetb Blog!

Corinne 24-08-2222

Excellent web site. A lot of useful information here. I'm sending it to several buddies ans additionally sbaring in delicious. And naturally, thank you on your effort!

Sherlyn 04-05-2222

Hey very nice web site!! Man .. Excellent .. Wonderful .. I will bookmark your site and take the feeds additionally? I'm satisfied to find a lot of helpful info right here in the submit, we'd like develop more techniques on this regard, thank you for sharing.

Meghan 09-04-2222

Thanks very interesting blog!

Celeste 24-03-2222

Incredible points. Sound arguments. Keep up the good work.

Jurgen 26-02-2222

Hi to every one, it's in fact a good for me to pay a quick visit this web site, it contains precious Information.

Marion 19-02-2222

I think the admin of this website is truly working hard for his site, because here every material is quality based material.

Carson 16-02-2222

A person necessarily lend a hand to make seriously articles I would state. That is the very first time I frequented your website page and so far? I surprised with the analysis you made to make this actual publish amazing. Fantastic process!


Leave a comment

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Scroll to Top