Тёмный

Raspberry Pi GPIO Tutorial: The Basics Explained 

Pi My Life Up
Подписаться 27 тыс.
Просмотров 331 тыс.
50% 1

This Raspberry Pi GIO tutorial takes you through a lot of the basics of the GPIO pins and what you can do with them
Full Guide: pimylifeup.com...
As you may know the general purpose input and output pins (GPIO) are used to communicate with other circuity. This includes thing such as extension boars, circuits, and much more. You can do some pretty cool stuff with them.
You should beware that playing around with the Raspberry Pi GPIO pins wrongly can result in destroying the Pi. The best way to avoid this is to double check that whatever you’re plugging in will be supported by the Pi.
In the little small circuit, I use in the Raspberry Pi GPIO tutorial I use the following equipment.
• 1 100-ohm resistor
• 1x Red LED
• GPIO Breakout Kit Assembled
• Breadboard
• Breadboard Wire/Jumper Cables
There is quite a bit of terminology around these pins but be sure to not let this turn you off from using them. We go into the terminology a little in the video but if you need more information be sure to look up some of the terms I used.
In the video we display a Raspberry Pi GPIO pinout diagram. If you would like this to use for future reference, then be sure head over the guide. You can find the link above.
We will be looking at doing many projects using the GPIO pins in the future. This includes stuff such as home automation! This is something I know a lot of people have been asking about.
I hope you have enjoyed this video on the Raspberry Pi GPIO pins. If you have any questions, feedback or anything else feel free to drop us a comment below. Also be sure to subscribe so you can stay up to date with all our latest Raspberry Pi projects, guides and much more.

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 120   
@world7452
@world7452 5 лет назад
Just a reminder, to activate I2C you have to go under Interfacing Options in the latest versions of Raspian.
@programmerxix7129
@programmerxix7129 3 года назад
“A good video you have “ -In My Yoda Voice
@idolkidd
@idolkidd 5 лет назад
This was great. To the point and very helpful. Thanks!!
@taotechnique
@taotechnique 5 лет назад
Great video. I am new to the world of Pi, and your video really helped me navigate this board. Thank you for taking the time to make this video
@antonnym214
@antonnym214 4 года назад
THANK YOU. Very nicely presented for a beginner like me. I'm old-school software (Z-80 and 8080 Assembly), so this is nice for me to see how to use the breadboard. Too many of the videos assume I know something about that! You did great. I subscribed immediately.
@mickelodiansurname9578
@mickelodiansurname9578 2 года назад
what he said!
@jazzmastaj
@jazzmastaj 2 года назад
Your voice flows like butter
@electroquests
@electroquests 4 месяца назад
Thanks, it has been very helpful!
@VeryMuchBlessed
@VeryMuchBlessed 4 года назад
Very good and helpful presentation. Thanks much.
@josephkreifelsii6596
@josephkreifelsii6596 4 года назад
3:37 neat, I was able to set up the pi to stop auto logging in on bootup. I always wondered about that because in CENTOS and Redhat systems I've used, there has always been either a login prompt (non-gui), or log in screen (gnome desktop).
@james_neko
@james_neko 8 лет назад
You shouldn't need sudo just to write your led_blink script. This'll just mean only root can access it. Do it as your regular `pi` user.
@Berkana
@Berkana 7 лет назад
Why are there two pins that are "Do not connect"? Why even put them there? That's like putting a pair of buttons on your keyboard which you absolutely must not press, mixed in among the ones you use regularly. Why would someone even do that? Is it okay to snip them off?
@niler3019
@niler3019 7 лет назад
I think they are actually connectors for flashing the card...
@johannbauer2863
@johannbauer2863 5 лет назад
I really like that analogy
@marcello4258
@marcello4258 3 года назад
8:05 why do we need to gain higher privileges to let a led blink?
@pimc172
@pimc172 Месяц назад
You don't have to sudo if you're part of the gpio group
@hal9000svk
@hal9000svk 3 года назад
I thought only 3v3 and 5v pins provide power and GPIO pins only close or open the circuit (like relay) or read signals. I am confused. Why you not need external power source to turn this LED on with pin 7 (GPIO 4)?
@AgeingBoyPsychic
@AgeingBoyPsychic 5 лет назад
What's the point of "do not connect" pins??
@mannb1023
@mannb1023 4 года назад
Probably something they only want people in factories for distribution of pi’s to use
11 месяцев назад
Can I program the pins it on my laptop offline and then once finished put the program on pi?
@lwvmobile
@lwvmobile 5 лет назад
You sound like one of Techmoan's puppets.
@danielc4267
@danielc4267 5 лет назад
Great video and explanation. Keep it up! I noticed a lot of people whining about your voice. Pay them no heed. The voice does sound somewhat unusual, but it doesn't affect the clarity of the content. I clicked this video to learn, not to be entertained.
@hackerman7835
@hackerman7835 5 лет назад
Just for the record, I didn't find your voice unusual at all
@johnallan2808
@johnallan2808 5 лет назад
speaks slow just for slow people :) if he talks fast slow people will complain If slow people complain they are real dumb fucks
@dailylightroomeditz
@dailylightroomeditz Год назад
can we se node red as well?
@qrowok1104
@qrowok1104 7 лет назад
How to make an led blink with the push of a button
@AgeingBoyPsychic
@AgeingBoyPsychic 5 лет назад
For some reason, my breadboard is blue-red, blue-red instead of the other way around... I don't know why, all the diagrams are red-blue... so I've been using it upside down 🙃
@niler3019
@niler3019 7 лет назад
Thank you for this, The beginning - information about the different type of I/O was really helpful!!
@JohnWayne99999a
@JohnWayne99999a 5 лет назад
Can I use the ribbon cable to connect a 3.5" display instead of connecting it directly to the gpio pins?
@flyingzeppo
@flyingzeppo 6 лет назад
That's the first time I've ever heard someone pronounce 'grep' with two syllables.
@Jaywalker9988
@Jaywalker9988 6 лет назад
I don't often suggest people are pronouncing command names wrong, but this guy for sure is.
@Praecantetia
@Praecantetia 4 года назад
@@Jaywalker9988 g-nome
@CicieWang-ig1kh
@CicieWang-ig1kh 5 месяцев назад
great video. having worked at Broadcom in my early career on the chips on that went on earlier generations of raspberry pi, I found the video very helpful to get my son started on his programming journey. One thing I noticed is that, you used GPIO4, but you programmed GPIO7 in your code. It is indeed GPIO4 that's being programmed. How come there is this discrepancy in GPIOs, what exactly is the mapping of GPIOs for raspberry 4?
@SarkTheShark94
@SarkTheShark94 7 лет назад
your voice... holy shit
@Bishpo
@Bishpo 7 лет назад
"Have you tried forcing an unexpected reboot?"
@sahithireddy2056
@sahithireddy2056 4 года назад
Hey , I'm getting an error in installation what might be the issue
@nighthawkgaming1962
@nighthawkgaming1962 2 года назад
ive tried everything hear step by step except the spi thing thats in preferances but point is i enabled that but even after all of it, it still does not work same code and everything i even double checket the capitals but still no. and its not my board cuz the 5 volt and 3.3 volt still works its just the gpio pins wont turn on and no errors pop up.
@dergoldaffe7692
@dergoldaffe7692 3 года назад
For what you need DNC ?
@rukundojobson2249
@rukundojobson2249 3 года назад
Can Raspberry Pi work with analog signals?
@UchiHa-bc4cs
@UchiHa-bc4cs 7 месяцев назад
What if i touch gpoi pins..? Will it be dead? Please anyone?....
@RBIBIANO
@RBIBIANO Год назад
Cara, estou procurando como usar o GPIO de uma forma específica e só acho pessoal acendendo led… Preciso saber se é possível configurar as portas GPIO como um joypad, não é para o retropie, é para usar no qjoy e emular um mouse no Raspberry OS.
@bonjourdemontreal3884
@bonjourdemontreal3884 8 лет назад
Hello I would like to setup a tally reception information from a video switcher and then use the raspberry pi to redistribute the tally information and from time to time play with the pin out of my gpo's....Do you think it's possible ? Thanks.
@suicidaljell
@suicidaljell 2 года назад
why even have the pins if they are dnc?
@ajphoenikx
@ajphoenikx 6 лет назад
thanks this very informing
@johnspencer3994
@johnspencer3994 3 года назад
why in the name of all that is holy, are there pins that sholdn't have anything connected (DNC)?
@Praecantetia
@Praecantetia 4 года назад
Why do "don't connect" pins exist?
@Kameratzas
@Kameratzas 9 лет назад
Hi there, thank you for the tutorial! I was wondering if you have any projects that involve using a small screen attached via the GPIO ports? I am making the plans for a mini video console and retropie, but I would like to have a small screen working through the GPIO ports like the C-Berry. Thanks!
@toddcoello6461
@toddcoello6461 4 года назад
this might be a dumb question but what is that charactoer you are using in between grep? the vert line. Also what I am doing is trying to install a power button which I have done but was wondering about a fan and I have the adafruit battery thing for my pi 4 and now I am running into a pin issue. I need more 5v ones. lol
@travosk8668
@travosk8668 2 года назад
I dont think you need sudo rights to run a py file lol
@paulsmarx
@paulsmarx Месяц назад
Why did you needed a resistor?
@Antebios
@Antebios 7 лет назад
I have a question: Why did you need to put a 100 ohm resistor in the circuit? Why couldn't you just put a regular wire to connect the LED to ground?
@1SmokedTurkey1
@1SmokedTurkey1 7 лет назад
You need to limit the current going through the LED. Otherwise, it will burn. The resistor does that.
@yoshiyolo
@yoshiyolo 6 лет назад
could blow up
@dbsoundguy782
@dbsoundguy782 4 года назад
so after resaving this file with normal credentials and fixing the spacing errors, this is not working. Maybe its because were onto python 3 now? dissapointing
@DrCognitive
@DrCognitive 3 года назад
One thing I can't seem to get an answer to is, if I want to power a small audio amplifier off the Raspberry Pi's GPIO, specifically what pins do I use? The device if 5v and has a hot wire and ground connector. Do I have to somehow splice this to the two 5v pins and one to a ground pin or can I use a two pin female JST cable on the one 5v and one ground pin that are next to each other? I've been searching the internet for two days trying to find an answer to this when I stumbled across this video.
@cokker
@cokker 4 года назад
8:15 Mate, I like GPIO but that's too far...
@josephkreifelsii6596
@josephkreifelsii6596 4 года назад
LOL, why make DNC pins? It's like making a self destruct button.
@waynefilkins8394
@waynefilkins8394 11 месяцев назад
Do they have a ribbon cable for connecting it to a motor shield instead of stacking the shield on top?
@mikefawc22
@mikefawc22 4 года назад
How many motors can you hook up to a single raspberry pi? I want to build a robot and was looking at the pivotpi but it only connects 8 motors... enough for an arm or a leg or a body but not enough to put it all together lol
@stephenrobinson6779
@stephenrobinson6779 4 года назад
On screen arrows are pointing to wrong pins during explanation for I2C, SPI etc. That's confusing at first
@logiztv4986
@logiztv4986 2 года назад
Is it possible to change the output Voltage of a GPIO Pin?
@ticktock8751
@ticktock8751 4 года назад
how can i make a LED fade in and out when my Pi is on and when i shut it down the Pi the LED will stop
@harpermartin7813
@harpermartin7813 2 года назад
Thank you for the video!
@austinmorgan9870
@austinmorgan9870 Год назад
Great video man! Helped out a lot for a noob.
@atchutram9894
@atchutram9894 7 лет назад
Please make a video on connecting GSM module(for example A6) with RPi3 via UART(not via USB and then using USB to UART converter).
@saphalshrestha5073
@saphalshrestha5073 8 лет назад
Can you please make a video on displaying text and incorporation GUI in OLED 128x128 using the Raspberry pi Zero.
@mrlately7253
@mrlately7253 5 лет назад
I did everything to the t and I'm getting name 'true' is not defined
@jameswilson4621
@jameswilson4621 5 лет назад
It should be capital True
@yoshiyolo
@yoshiyolo 6 лет назад
tx that video was very helpful im a so so coder and i didnt even now what they did till now
@ghost-x8h
@ghost-x8h 5 лет назад
Awesome bringing GPIO to my channel slowly but surely I love what you can do with these devices it is so mind blowing I love it so much !!!
@aravindradhakrishna8660
@aravindradhakrishna8660 8 лет назад
Still waiting for those pro jokes
@TheBirdBrothers
@TheBirdBrothers 4 года назад
Fab video very informative, thank you!!
@bhavithramurali7495
@bhavithramurali7495 7 лет назад
How should I program to get the output of a digital pH sensor
@adamjensen6376
@adamjensen6376 7 лет назад
Hi there I was wondering how could I add a tx and rx onto my raspberry pi 3 B
@bigchiefa2183
@bigchiefa2183 5 лет назад
This video is terribly outdated
@bahjatmurrad8008
@bahjatmurrad8008 7 лет назад
I'm getting an error on my Raspberry Pi3 which says "The GPIO channel has not been set up as an OUTPUT"
@yoshiyolo
@yoshiyolo 6 лет назад
enable it in the modulor
@MrVipulLal
@MrVipulLal 3 года назад
Missing explanation!
@ouahoudizakaria1668
@ouahoudizakaria1668 5 лет назад
thanks
@PaulaJBean
@PaulaJBean 5 лет назад
You used 5 spaces instead of 4. That is not according to PEP8. Also, you don't need to edit your Python source files with root credentials.
@nondescriptstraightwhitema6138
one little question mate. the gpio marked run on a pi zero... i have seen it used as a rest monetary switch. is that a "safe" rest or a hard might corrupt the sd card rest?
@PaulaJBean
@PaulaJBean 5 лет назад
Monetary or momentary?
@raecon3783
@raecon3783 8 лет назад
How did you hook up the rasberry pi to your screen?
@74oshua
@74oshua 8 лет назад
HDMI
@yoshiyolo
@yoshiyolo 6 лет назад
hook up HDMI then turn on then reboot memory
@zahidrahman2427
@zahidrahman2427 7 лет назад
how would you wire up a power Hungary devices using fuses relays etc to raspberry pi ?
@PaulaJBean
@PaulaJBean 5 лет назад
Devices from Hungary, or power-hungry devices?
@davidmg1925
@davidmg1925 5 лет назад
Good start tut.
@reginaldb.maducdoc1458
@reginaldb.maducdoc1458 8 лет назад
can you do jasper?
@VacancyJB
@VacancyJB 6 лет назад
what is the different Raspberry vs Arduino?
@yoshiyolo
@yoshiyolo 6 лет назад
raspberry pi3 is a mini computer and arduino uno is a micro controler
@Nomankhan-jv1nk
@Nomankhan-jv1nk 6 лет назад
is all GPIO pin in PI can receive both analog and digital signal??
@chimeranzl9147
@chimeranzl9147 5 лет назад
Digital only
@mecommenting
@mecommenting 8 лет назад
hi, i liked your tutorial, but how can we do to send AT command from Tx / Rx GPIO to mini sim 900a module ? Thanks a lot
@jsmythib
@jsmythib 2 года назад
Use the UART pins. 6 Years ago :)
@icefreezer7
@icefreezer7 7 лет назад
how do i do this with a t-shaped cobbler that covers up the +/- on the 2nd row?
@dhLotan
@dhLotan 6 лет назад
icefreezer VII I was looking for that kind of information too :/
@ohmystryker
@ohmystryker 5 лет назад
Awesome
@fwbarnes2011
@fwbarnes2011 9 лет назад
PI My Life Up - Lets do some bluetooth hacks bro
@70ME3E
@70ME3E 6 лет назад
u talk funny
@ytrew9717
@ytrew9717 6 лет назад
what this resistance is used for?
@evangofourth9213
@evangofourth9213 5 лет назад
ground i suppose
@chimeranzl9147
@chimeranzl9147 5 лет назад
ytrew so the LED doesn’t burn out (resistor limits the amount of current)
@blitzm3dia
@blitzm3dia 6 лет назад
I'm really sorry but I cant hear what you say. The tone of you voice seem nonchalant and look like you not putting much effort to articulate.
@dineshchauugule2268
@dineshchauugule2268 7 лет назад
Ty bhai
@SecularWisdom
@SecularWisdom 9 лет назад
I've always heard it as "eye square see"
@sibandy
@sibandy 4 года назад
You must be an old cogger like me. That's what it was always called 34 years ago.
@user-wf2fm1yj4k
@user-wf2fm1yj4k 4 года назад
@@sibandy an "old cogger" what the fuck does that mean Andy
@user-wf2fm1yj4k
@user-wf2fm1yj4k 4 года назад
@@sibandy an "old cogger" what the fuck does that mean Andy
@xpredator9925
@xpredator9925 5 лет назад
I have exams on this after 12 days....and i know nothing abt it
@DalilaHebard-l3n
@DalilaHebard-l3n 16 дней назад
Carmella Cliff
@josesergiomagdalenopalenci8190
Can yo do a video explaining How can I use input and output pins (GPIO) with Scilab? How can I connect a brushless motor and the MPU6050 to a raspberry but enstead o using pyhton, I need to use Scilab Thank you
@harpermartin7813
@harpermartin7813 2 года назад
Jesus is King! If you do not know Jesus as Savior please pray, “ Jesus save me. At this moment I choose to have faith that You gave Your life for me and rose from the dead. Doing this You defeated death, even though it meant You had to die. You surrendered Your life for me, so I chose to surrender my life to You. Forgive me Jesus, my God. Amen.” Jesus loves you so much. Please accept His love. I encourage you to read the Bible and pray. “For God so loved the world that he gave his one and only begotten Son into this world, that whoever believes that in him shall not perish but have eternal life.” John 3:16 🙏❤️🙏 Jesus is enough! Again I tell you, Jesus loves you!🙏
@pavanbhat92
@pavanbhat92 5 лет назад
To control GPIO pins with GUI download software for pi from below: github.com/Pavangbhat/raspberry-pi-GPIO-controller .
@vatsalpagare6935
@vatsalpagare6935 5 лет назад
3:26
@sagesalem6174
@sagesalem6174 7 лет назад
what do you do if your terminal says unstable; urgency=medium ? please hurry.
@th3batfink
@th3batfink 6 лет назад
Colton Harter Run away
Далее
Raspberry Pi GPIO - Getting Started with gpiozero
48:40
GPIO for any PC or Laptop: Adafruit FT232H
19:18
Просмотров 202 тыс.
#慧慧很努力#家庭搞笑#生活#亲子#记录
00:11
Basic usage of the Raspberry Pi GPIO pins
13:44
Просмотров 97 тыс.
What's the difference? Arduino vs Raspberry Pi
6:21
Просмотров 1,8 млн
13 Stunning Raspberry Pi Projects for 2024!!!
10:23
Просмотров 267 тыс.
Raspberry Pi 5: Getting Started
24:43
Просмотров 344 тыс.
Complete Raspberry Pi Pins Overview GPIO Header
15:19
Every Developer Needs a Raspberry Pi
27:27
Просмотров 642 тыс.
12 NEW Raspberry Pi Projects you must try!!!
8:38
Просмотров 553 тыс.