How to use an LED with Raspberry Pi

Learn how to use an LED with Raspberry Pi in our latest How to use video on YouTube.

Using LEDs

LEDs (light-emitting diodes) are incredibly useful in digital making projects. You can use one to indicate whether a script is running or when an action can take place, or as decoration, and for so much more besides.

Blinking an LED with the help of Raspberry Pi has become a rite of passage for new digital makers: it’s the physical equivalent of the ‘hello world’ program! Therefore, it’s the first thing that the participants in our Picademy training, and many young people in physical computing sessions at coding clubs in our networks, learn how to do.

Follow the steps in our latest How to use video to learn how to control an LED with your Raspberry Pi, and go get making.

More Raspberry Pi videos

You can find the How to use YouTube playlist here, and you can subscribe to our channel and never miss a video!

And, while you’re in a subscribe-y mood, also subscribe to the Raspberry Pi Press YouTube channel, the home of all content from The MagPi, HackSpace magazine, WireFrame, Custom PC, and more.

7 comments

Avatar

Why would anyone want to watch a Video when you could read a simple few line description.

This isn’t even totally correct, omits vital information and the only useful bit – the code flashes up for a couple of seconds – not long enough to even read certainly not copy.

If in text the code could be copied.

Avatar

That’s what pause buttons are for. Just think, you can pause the video, get pencil and paper, some popcorn, write it all out by hand, even while wiping the butter from the popcorn from your fingers, and in an hour or so it’s all done. Or just pause it, do a screen print and carry on. Sorry, the attitude comes from my becoming an old curmudgeon.

Avatar

And you can scan the printout, then feed the scan into OCR and copy and paste that into a coding window.

Avatar

I totally agree with you Milliways. The video is nicely done in an animation perspective, but I would have preferred it written down in a text file with a few pictures. I might be an old fart, but I really think Youtube tutorials are a waste of time and global bandwidth…

Avatar

It’s short, but missing some key points. This assumes that the user knows actually quite a lot about the programming environment. It’s also missing that the code is actually python code. I wasn’t 100% sure on first glance so it might be helpful to add a little tag somewhere in the video to state that it’s python and not scratch. Also maybe syntax highlighting would be helpful and that’s a whole other subject.

Avatar

Helpful to also mention the resistor value one should (100 ohm – 220 ohm)

Avatar

Thank you for sharing this post. I have one lighting companies in Dubai and I will probably use this as my guide for my customers. Keep posting!

Leave a Comment

Comments are closed