Connecting an LED To Raspberry Pi

  Переглядів 175,462

O'Reilly

O'Reilly

10 років тому

Connect an LED to one of the GPIO pins using a resistor to limit the current.
Buy the Raspberry Pi CookBook Guide - shop.oreilly.com/product/06369...
Don't miss an upload! Subscribe! goo.gl/szEauh
Stay Connected to O'Reilly Media by Email - goo.gl/YZSWbO
Follow O'Reilly Media:
plus.google.com/+oreillymedia
/ oreilly
/ oreillymedia

КОМЕНТАРІ: 52
@hillsideheathen5267
@hillsideheathen5267 5 років тому
This was very helpful. I was able to have a 5inch touch screen AND have a fan connected to GPIO 12 for my 5" "Pocket Laptop" build. Thank you!
@htkinfo9647
@htkinfo9647 7 років тому
Thank you for this wonderful tutorial. It worked like a charm. The only mistake I did was to have a high value resistor I used 220 ohm and it worked like a charm.
@magiconverse
@magiconverse 3 роки тому
This is awesome. first step in my project!
@krypton1142
@krypton1142 Рік тому
The raspberry pico is anmazing but there just arent enough tutorials online for newbies!, this video was very helpful thanks!
@rauljg143
@rauljg143 2 роки тому
worked like a charm first try, thank you!
@ArshadAli-xk5pk
@ArshadAli-xk5pk 5 років тому
Sir ,if we attached mean here using led but if instead of led if we use dc fan then the code will just like we will use for led or for the fan we will use another code ?
@DamianLuettig
@DamianLuettig 5 років тому
very useful, thanks!
@forrestparton9483
@forrestparton9483 6 років тому
If I clipped an LED to get a board out of something, but want to reuse that LED is there any way to know what side is positive?
@diogoalpendre9684
@diogoalpendre9684 6 років тому
Hello. It's such a great video, and in the end a doubt came up. I'm doing a school project that consists in a smart house with Raspberry Pi 3. I want to connect multiple leds to the house. What are the pins that i am supposed to connect the jumpers? And it's necessary to use a protoboard for do that, or I just have to weld the jumper to the resistor and the resistor to the led?
@254_Cyrus
@254_Cyrus 2 роки тому
How did this turn out?
@christopherlong3397
@christopherlong3397 2 роки тому
Very Helpful 10/10
@CharlotteSimmons1
@CharlotteSimmons1 3 роки тому
So you switch over to typing commands straight away, so Raspberry Pi must be on while you do the wiring?
@RSuarez66
@RSuarez66 6 років тому
How about if I would like to control a traffic light circuit (4 X 1red, 1grn, 1yel)? I am a beginner in programming.
@antomicawad6377
@antomicawad6377 4 роки тому
Can i connect ground and the gpio facing each other?
@devnull6076
@devnull6076 3 роки тому
Great video! Worked immediately :D
@amirhosseinjafary2648
@amirhosseinjafary2648 Місяць тому
Of course ❤
@avimartinez4000
@avimartinez4000 4 роки тому
hey can i ask something? what if i want to give an output signal through the raspi's pin but i want it between the minimum and maximum range (ex: pinout = 1.5 volt from 0-3 volt scale), can i configure the python code into percentage just like in arduino?
@droneverse1203
@droneverse1203 3 роки тому
No
@prabhacar
@prabhacar 4 роки тому
very cool! thanks
@vighneshchavan9226
@vighneshchavan9226 2 роки тому
pov: you are sppu student
@martincregg
@martincregg 3 роки тому
I think a 470 ohm resistor will not provide a enough voltage to the LEDs. I needed to use 220 ohm.
@harpermartin7813
@harpermartin7813 2 роки тому
God believes in you more than you believe in yourself!❤️🙏
@treudden
@treudden 2 роки тому
It worked!
@3inores579
@3inores579 6 років тому
what ohms the resistor?
@lucionieto4020
@lucionieto4020 6 років тому
You can calculate that with a formula, but usually is 220 or 330 ohms. Good luck.
@skinnyfishin2357
@skinnyfishin2357 5 років тому
220 r
@JoanManuelRodriguezChaparro
@JoanManuelRodriguezChaparro 5 років тому
Actually, if the idea is to protect de raspberry, the resistor should be placed between the ground end the LED... not between the GPIO end the LED...
@nickisacebeans
@nickisacebeans 5 років тому
I don't think it makes any difference because it's in series.
@chrystal1062
@chrystal1062 4 роки тому
@@nickisacebeans Correct. Clearly, Joan has no idea how circuits work.
@sirionero344
@sirionero344 2 роки тому
Can anyone explain to me why we should use the resistor, I really can't understand why. I would be very grateful
@clarkdriscoll3540
@clarkdriscoll3540 2 роки тому
It's to prevent the LED from burning out too quickly. Inside each LED is a chemical that when electrons are passed through, it glows. The more electrons or the higher the current flowing the brighter it will glow. So why do you need a resistor in series with your LED? Because nothing is limiting current flow! It can fry without one.
@sirionero344
@sirionero344 2 роки тому
@@clarkdriscoll3540 thank you very much you helped me a lot
@mylodefaut-juneja3705
@mylodefaut-juneja3705 2 роки тому
Hi Can anyone help me please. When I type in import RPi.GPIO as GPIO I am told "No module named RPi.GPIO" Do you know what I am doing wrong? Many thanks
@andro-sector992
@andro-sector992 6 років тому
hey can i do this with rpi 3 b+ ?
@Spodarek
@Spodarek 5 років тому
Yes, of course You can : )
@innostechsolutions7065
@innostechsolutions7065 3 роки тому
ukposts.info/have/v-deo/bn-LpJqHZHuXxac.html
@marinatuffier6664
@marinatuffier6664 6 років тому
if it already three volts the average Light emitting diode can with-stand it so what's the point of adding a resistor
@adabrew2310
@adabrew2310 6 років тому
Better safe than sorry,
@Rainbow__cookie
@Rainbow__cookie 5 років тому
You can use even 5v if you have a resistor
@robasscakes5061
@robasscakes5061 5 років тому
He literally said it's about damaging the GPIO ports. If you have too much current draw from the GPIO port then you could break it.
@larisapopa9556
@larisapopa9556 24 дні тому
I LOVE YOU
@tomp9080
@tomp9080 2 роки тому
ty
@akmedia8206
@akmedia8206 3 роки тому
It doesn’t work wtf I’ve tried everything someone please help
@ezclap0379
@ezclap0379 3 роки тому
lol
@akmedia8206
@akmedia8206 3 роки тому
EZCLAP03 it works now
@ezclap0379
@ezclap0379 3 роки тому
Good to hear man
@pazuzu810
@pazuzu810 5 років тому
This man looks so unexcited. I hope everything's alright.
@connerdassen7808
@connerdassen7808 6 років тому
Please don't call this a cookbook with recipe's. It sounds so stupid
@fredhair
@fredhair 5 років тому
It's called a raspberry pi.. it already sounds stupid at least a cookbook fits the theme
@vighneshchavan9226
@vighneshchavan9226 2 роки тому
Bruh... 🤣
@inactive1911s
@inactive1911s 4 роки тому
What the hell it didn't work
@PrzyborowscyPlanNaZycie
@PrzyborowscyPlanNaZycie 2 роки тому
ty
Raspberry Pi GPIO - Getting Started with gpiozero
48:40
DroneBot Workshop
Переглядів 428 тис.
How To Safely Connect a Breadboard to Raspberry Pi
11:21
M Heidenreich
Переглядів 28 тис.
GADGETS VS HACKS || Random Useful Tools For your child #hacks #gadgets
00:35
🐩🐕
00:25
Янчик
Переглядів 2,4 млн
Connecting a Push Switch with Raspberry Pi
5:41
O'Reilly
Переглядів 122 тис.
Project: Controlling An LED Using Raspberry Pi (Beginner)
11:39
Confiding RPi
Переглядів 153 тис.
Raspberry Pi Blinking LED
12:13
BurgZerg Arcade
Переглядів 139 тис.
Blinking LED Raspberry Pi Tutorial
12:32
Sam Westby Tech
Переглядів 18 тис.
Raspberry PI - How to connect with Laptop using Direct Network Link
7:09
Control you Raspberry Pi with a BUTTON
12:03
Sam Westby Tech
Переглядів 13 тис.
Raspberry Pi :: LED mit GPIO Pins blinken lassen [Full HD]
6:32
DerAllrounder
Переглядів 97 тис.
Raspberry Pi Zero: GPIO Pins
14:46
ExplainingComputers
Переглядів 199 тис.
Raspberry Pi Tutorial (Model B+) - Using a Breadboard and LED’s
14:05
Tech With Tim
Переглядів 51 тис.
A Button to Switch your Pi Safe On and Off
3:07
Lutz
Переглядів 27 тис.
Broken Flex Repair #technology #mobilerepair
0:55
ideal institute aligarh
Переглядів 16 млн
Photo Changing Replace And Edit Backgrounds 65mn With These 10 Tips
0:53
Irfan AN Tech
Переглядів 260 тис.
Как должен стоять ПК?
1:00
CompShop Shorts
Переглядів 643 тис.
Start from 0 at any point on the T1 Digital Tape Measure
0:14
REEKON Tools
Переглядів 21 млн
ЭТОТ МОНСТР ОТ INFINIX КРУЧЕ ЛЮБОГО XIAOMI! Я в шоке…
13:01
Thebox - о технике и гаджетах
Переглядів 19 тис.
СКОЛЬКО ЕЩЕ БУДЕТ АКТУАЛЕН IPHONE 13?
14:10
DimaViper Live
Переглядів 59 тис.