Control an RGB LED with your Raspberry Pi

preview_player
Показать описание
Here's how to control an RGB LED with your Raspberry Pi. This is part 3 of the Raspberry Pi GPIO tutorial series. See the timestamps below for everything you're going to learn.

I may earn commission if you purchase from the links below

MATERIALS:
Raspberry Pi
RGB LED
Breadboard
Six 100 ohm resistors
Four male-female jumper wires

TIMESTAMPS:
0:00 Intro
0:19 How does an RGB LED work?
1:24 Building the circuit
5:50 Writing the code
9:35 Making a script
12:40 Thank you
Рекомендации по теме
Комментарии
Автор

I’m getting my raspberry pi tomorrow and Im going to be following your tutorials since you are super understanding and not confusing 😁

connortaco
Автор

Nice tutorial. I appreciate you not having a lot of fluff in the video and just getting right to it. I just got a few Raspberry Pi Pico boards, and one of the things I was planning to do was to set up some color presets for a button box I'm making, and cycle through those when I hit a certain button. This tutorial let me get enough experience with the LED module to get it working. Thanks!

benhrocks
Автор

These are excellent videos Sam. You are a good teacher.

polycephaliczombie
Автор

Awesome tutorial! I am working on a project where I will control multiple LEDs (mixed parallel and series) and I have to be economical about using the GPIO pins as I will need most of them. Everything will be powered with an external power supply. I am using transistors and the GPIO pins are connected to the base. I was wondering if there is a way to control the RGB led diode using a single pin instead of 3. I got a bunch of tiny Adafruit WS2811 NeoPixel chips (just the chips) and then I realized I don't know what I am doing 😆😄Thank you again!

SketchyMarieArt
Автор

Could you come back and make more of these? They're so easy to follow

ligma_obj
Автор

thanks for the help, your tutorials are awesome

GurmanSidhu-ho
Автор

Great video, how can i get the led to repeat the sequence?

andyince
Автор

sir can you make a offline ai assistent in raspberrypi

whitehathacker
Автор

Good video :)
How would the code be with an rgb led with a common anode?

Ochaita-Estudios
Автор

The difference is that art (printing uses CMYK) are based on absorption. Systems that emit light use RGB

kwonekstrom
Автор

As a teacher, I can say you are a very good explainer of things

Sam-tgii
Автор

Can I control gpio pins when find specific object

rushikeshghuge
Автор

super...I have one I want to run a python file when booting in a different environment (not from the base environment ex: PyTorch) how to do that? please post a video or do rply to this

harikrishnasamy
Автор

Nice Video ;)
But just to clarify things you said at the beginning.
When you were talking about colors you said science and art have different primary colors. That's not the case. The difference is in the different ways our eyes perceive colors. With light there is only additive light mixing (I'm no native speaker, so I don't know the exact term for that. But I hope you can understand me ;) ) In art the chemicals can mix and create something called subtractive light mixing. I'm also no expert but noticed the difference.

chinaman