Connecting an LED To Raspberry Pi

  Рет қаралды 179,042

O'Reilly

O'Reilly

Күн бұрын

Connect an LED to one of the GPIO pins using a resistor to limit the current.
Buy the Raspberry Pi CookBook Guide - shop.oreilly.co...
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...
/ oreilly
/ oreillymedia

Пікірлер: 52
@krypton1142
@krypton1142 2 жыл бұрын
The raspberry pico is anmazing but there just arent enough tutorials online for newbies!, this video was very helpful thanks!
@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 8 жыл бұрын
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 4 жыл бұрын
This is awesome. first step in my project!
@harpermartin7813
@harpermartin7813 2 жыл бұрын
God believes in you more than you believe in yourself!❤️🙏
@rauljg143
@rauljg143 3 жыл бұрын
worked like a charm first try, thank you!
@devnull6076
@devnull6076 3 жыл бұрын
Great video! Worked immediately :D
@amirhosseinjafary2648
@amirhosseinjafary2648 7 ай бұрын
Of course ❤
@diogoalpendre9684
@diogoalpendre9684 7 жыл бұрын
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 3 жыл бұрын
How did this turn out?
@CharlotteSimmons1
@CharlotteSimmons1 3 жыл бұрын
So you switch over to typing commands straight away, so Raspberry Pi must be on while you do the wiring?
@vighneshchavan9226
@vighneshchavan9226 3 жыл бұрын
pov: you are sppu student
@forrestparton9483
@forrestparton9483 7 жыл бұрын
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?
@ArshadAli-xk5pk
@ArshadAli-xk5pk 6 жыл бұрын
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 ?
@avimartinez4000
@avimartinez4000 5 жыл бұрын
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 4 жыл бұрын
No
@DamianLuettig
@DamianLuettig 5 жыл бұрын
very useful, thanks!
@antomicawad6377
@antomicawad6377 4 жыл бұрын
Can i connect ground and the gpio facing each other?
@martincregg
@martincregg 4 жыл бұрын
I think a 470 ohm resistor will not provide a enough voltage to the LEDs. I needed to use 220 ohm.
@prabhacar
@prabhacar 4 жыл бұрын
very cool! thanks
@christopherlong3397
@christopherlong3397 3 жыл бұрын
Very Helpful 10/10
@3inores579
@3inores579 7 жыл бұрын
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 6 жыл бұрын
220 r
6 жыл бұрын
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 5 жыл бұрын
@@nickisacebeans Correct. Clearly, Joan has no idea how circuits work.
@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.
@sirionero344
@sirionero344 3 жыл бұрын
Can anyone explain to me why we should use the resistor, I really can't understand why. I would be very grateful
@clarkdriscoll3540
@clarkdriscoll3540 3 жыл бұрын
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 3 жыл бұрын
@@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
@treudden
@treudden 3 жыл бұрын
It worked!
@tommytwobrews
@tommytwobrews 3 жыл бұрын
ty
@andro-sector992
@andro-sector992 6 жыл бұрын
hey can i do this with rpi 3 b+ ?
@Spodarek
@Spodarek 6 жыл бұрын
Yes, of course You can : )
@innostechsolutions7065
@innostechsolutions7065 4 жыл бұрын
kzbin.info/www/bejne/bIC9oZeGYqqZmtU
@akmedia8206
@akmedia8206 4 жыл бұрын
It doesn’t work wtf I’ve tried everything someone please help
@ezclap0379
@ezclap0379 4 жыл бұрын
lol
@akmedia8206
@akmedia8206 4 жыл бұрын
EZCLAP03 it works now
@ezclap0379
@ezclap0379 4 жыл бұрын
Good to hear man
@larisapopa9556
@larisapopa9556 7 ай бұрын
I LOVE YOU
@marinatuffier6664
@marinatuffier6664 7 жыл бұрын
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 6 жыл бұрын
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.
@pazuzu810
@pazuzu810 6 жыл бұрын
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 3 жыл бұрын
Bruh... 🤣
@inactive1911s
@inactive1911s 5 жыл бұрын
What the hell it didn't work
3 жыл бұрын
ty
Raspberry Pi GPIO - Getting Started with gpiozero
48:40
DroneBot Workshop
Рет қаралды 445 М.
Raspberry Pi Tutorial (Model B+) - Using a Breadboard and LED’s
14:05
風船をキャッチしろ!🎈 Balloon catch Challenges
00:57
はじめしゃちょー(hajime)
Рет қаралды 75 МЛН
Using lots of LEDs (Charlieplexing) with Raspberry Pi
7:17
O'Reilly
Рет қаралды 21 М.
How To Safely Connect a Breadboard to Raspberry Pi
11:21
M Heidenreich
Рет қаралды 33 М.
Blinking LED Raspberry Pi Tutorial
12:32
Sam Westby Tech
Рет қаралды 34 М.
Raspberry Pi: Using GPIO Inputs
18:41
ExplainingComputers
Рет қаралды 584 М.
The Petabyte Pi Project
22:27
Jeff Geerling
Рет қаралды 2,2 МЛН
How I Started in Electronics (& how you shouldn't)
7:05
The AM Tech
Рет қаралды 654 М.
Project: Controlling An LED Using Raspberry Pi (Beginner)
11:39
Confiding RPi
Рет қаралды 156 М.
Using the second (I2C 0) port on a Raspberry Pi
4:11
Matthias random stuff
Рет қаралды 44 М.
Electronics components Testing Part 1
18:18
Electronics Repair Basics_ERB
Рет қаралды 75 М.