RGB LED: Difference between revisions

From Sketching with Hardware at LMU Wiki
Jump to navigation Jump to search
Line 26: Line 26:


= Related Tutorial Videos =
= Related Tutorial Videos =
change to the right video
In this part of the tutorial, we show how to connect an RGB-LED and programming it with Micropython. We first look at what an RGB LED is by building one with 3 separate LEDs. We then look at switching it on and off and how to set the color using the duty cycle in the PWM output.
 
<youtube>0KGgYsEZcZM</youtube>


<youtube>https://youtu.be/K2m6ttZ1bJw</youtube>


= Background =
= Background =

Revision as of 23:30, 19 August 2020

Description

A regular RGB LED is basically 3 LEDs (one red, one green, one blue) in parallel. This is not a smart LED, for smart LEDs see LED Ring NeoPixel

How to connect it electrically

Text

Image(s)

How to control it in MicroPython

# todo 
# code goes here

A small Program in MicroPython

# todo 
# code goes here

text

image(s)

Related Tutorial Videos

In this part of the tutorial, we show how to connect an RGB-LED and programming it with Micropython. We first look at what an RGB LED is by building one with 3 separate LEDs. We then look at switching it on and off and how to set the color using the duty cycle in the PWM output.

Background

text

image(s)