Question: Shouldn't board pin 6 be shown as ground, tx on board pin 8 (GPIO-14) and rx as board pin 9 (GPIO-15)? Am I missing something?
@paulmcwhorter2 жыл бұрын
Good catch. I will add a note to the video. You can down load corrected pinout here: toptechboy.com/understanding-raspberry-pi-4-gpio-pinouts/pinout-corrected/ Next couple lessons unfortunately also have this error, but I will correct it in future videos. Thanks for your help!
@SPADMI2 жыл бұрын
@@paulmcwhorter On the same issue, Board pin 24 should be marked as (GPIO-8), right?
@paulmcwhorter2 жыл бұрын
@@SPADMI Thanks, that correction has been made in the downloadable one on my web site now. Thanks
@aman-sood2 жыл бұрын
I was wondering that exact thing!!
@mykyta1235 Жыл бұрын
unfortunately that url doesn't work anymore :(@@paulmcwhorter
@opalprestonshirley17002 жыл бұрын
I've been doing this since 1979 and I always get a sense of satisfaction seeing the LED come on and go off.
@paulmcwhorter2 жыл бұрын
Me too!
@Slowpaws1389 Жыл бұрын
Me2
@brandonzawaski10 ай бұрын
Paul, I've rewatched the beginning lessons and up to this point just so I am not missing anything. You are a great explainer.
@willgordon57372 ай бұрын
Unfortunately, the old GPIO library has been discontinued due to hardware changes in Raspberry Pi. The new method for controlling GPIO is by using libgpiod. Here's an example to turn an LED on and off: Note: You must use BCM pin numbering, not BOARD, which is why GPIO 17 is used in the example. Cleanup is no longer necessary. import gpiod import time chip = gpiod.Chip('gpiochip0') line = chip.get_line(17) line.request(consumer='LED', type=gpiod.LINE_REQ_DIR_OUT) line.set_value(1) time.sleep(5) line.set_value(0)
@annastrong114610 ай бұрын
Thanks for the shoutout to the ladies. Love your videos. Super helpful. Thank you for making them!
@GYM_LOVER-q5rАй бұрын
all ladies deserves this shout out
@callumm.1511 ай бұрын
Following along with the Pi 5 has been smooth sailing up until this video, where RPi.GPIO can no longer be used unfortunately. I will try to follow using gpiod, but it seems more complicated. With that aside, tutorials have been really great so far! EDIT: I noticed the Raspberry Pi documentation recommends using "gpiozero", though it works much differently than "RPi.GPIO" using device objects rather than controlling the pins directly which I'm not a fan of. On the other hand, "gpiod" seems more complicated and above all, has very little documentation (atleast of what I could find). For anyone looking for a library like RPi.GPIO, I definitely recommend "lgpio" which behaves very similarly. The biggest difference it seems is the chip select, but this is because of Pi 5's new structure. This is very easy to use, just by selecting chip "4" (use "chip = lgpio.gpiochip_open(4)" ). Then, follow the "lgpio python" documentation to use the gpio pins by using the "chip" object as a handle. Hope this helps someone!
@SuleimanAL-Far4 ай бұрын
Thank you
@willgordon57372 ай бұрын
This is the life of an Engineer, old technologies get depreciated and need to figure out how to port the software to the latest tools :(
@mmulisha1022 Жыл бұрын
Just Received my kit and started following this series. No programming background at all. (outside CNC and robotic programming). I am loving this series, and looking forward to getting all the way through it.... long way to go. I never thought i would be this happy about a blinking light lol!! Awesome! Homework is done, may jump to lesson 5 tomorrow!!
@alberttalkstech Жыл бұрын
Great!😅
@ttl58422 жыл бұрын
I'm a woman, I love your programs !!
@MattFacer2 жыл бұрын
I’ve learnt more in this one lesson than I have over hours of googling!! Thanks. Great video and delivery
@paulmcwhorter2 жыл бұрын
Great to hear!
@BunnLilah3 ай бұрын
This is so exciting! I'm thankful you started out very simple because I know the homework is pretty basic but it still took a while for me to figure it out. I'm really excited for the rest of this series! Just turning on and off an LED with code is blowing my mind as someone who has only done basic computer coding. Somehow it feels more magical when you're actually affecting things in the real world!
@leahswinney57113 ай бұрын
Hello from South Texas! Thanks for the great lesson and video playlist! I recently got a job building weather instrumentation for a university. Most of the instrumentation is done using a Raspberry Pi, and I am just starting out. Just wanted to share my thanks and appreciation for your videos!
@djbroake98102 жыл бұрын
Here from the Arduino course's, This was needed and as good as them. Thank you so much!
@ricardorodriguez218 Жыл бұрын
Best coffee tutorial ever! :)
@tarekazakir99192 жыл бұрын
You are the best I am a a stem teenager and I really wanted to learn alot of things about robotics and I found all my answers in your videos. Thank you very much
@paulmcwhorter2 жыл бұрын
Great to hear! You are going to go far in life. Maybe even make the world a better place!
@Event.Horizon. Жыл бұрын
You got another woman watching your vids over here, thanks for all the help!
@paulmcwhorter Жыл бұрын
Excellent!
@andersontiban53563 ай бұрын
Thanks for taking the time to explain the basics for the new guys such as myself😁
@isimsiz-ok1jg10 ай бұрын
I'm surprised there are still good men like you in this world, thank you. :)
@chandanasrin32522 жыл бұрын
Hloo Paul this is chandana , i am following all your lessons from starting , i love the way you teach us ......Thank you
@halcyonramirez64697 ай бұрын
Thank you so much for this. I do have some programming background but never any hardware. Seeing the LED turn on brought almost a tear to my eye as it reminded of my initial journey in programming. Thank you!!. FYI. folks with a Raspberry pi 5. this instructions wont work. RPi 5 changed some things and code written for previous pis wont work.
@alanabela19002 жыл бұрын
Thank you for all these lessons.
@daveflatters49812 жыл бұрын
If you type ‘pinout’ without the quotes, on the terminal you get a basic diagram of the actual model of Pi you are using, some basic information about it and a GPIO diagram. The GPIO diagram shows the board PIN numbers power and ground pins and the GPIO numbers but there is no extra information about the use of the GPIO pins i.e. UART, I2C etc
@paulmcwhorter2 жыл бұрын
Dave, I just learned something new, cool and important. Thanks!
@VivekAnandJ Жыл бұрын
Oh cool! Thank you so much!
@andersontiban53563 ай бұрын
Thank you for the free course I really appreciate your work
@madisonhypes53322 жыл бұрын
This video is incredible. Thank you so much for all your hard work teaching.
@Alpha_fitz2 жыл бұрын
Thank you. You're an inspired person on a mission. Enjoy your work!
@miguelangelfelipecalle88453 ай бұрын
You the best, I am sharing this key content to my friends. Greetings from Bolivia.
@floridian0802 жыл бұрын
After watching this video twice, I see the advantages of library you used over the GPIO Zero library used in Official Raspberry Pi Beginner's Guide. Also, I've been using VSCode on my Pi400 without difficulty. The breadboard adapter makes for a more Arduino-like experience than attaching wires directly to the Pi.
@keithlohmeyer2 жыл бұрын
I also wondered why Paul chose this library. After some reading I see that GPIOzero is a wrapper for RPi.GPIO and handles some of the setup code for you. Most of us are coming from Arduino and understand setup and pullup / pulldown so I think RPi.GPIO was the right choice. It is good to know about GPIOzero as you will see it in example code online.
@charlotteswift2 жыл бұрын
Hi Paul In the first video for this series, someone corrected you for pronouncing the 'G' in GNOME. I wasn't sure but I was biased towards pronouncing it. Well it turns out that you were right👍(as usual). GNOME is an acronym for “GNU Network Object Model Environment,” and since the 'G' in GNU is pronounced and GNU is the first word in the GNOME acronym, the 'G' in GNOME is also pronounced.
@carol-lo Жыл бұрын
You are superstar! I feel more confident on using the GPIO now. Thanks.
@lestersegelhorst27764 ай бұрын
I have an obsolete kit from NRI made by fishertechnic. I haven't been able to use since I can no longer run the software A fortran based language geared to the proprietary interface in the kit. Distributed on(5.25" floppies, IBM xt) I would like to use the raspberry pi instead. However this will require running some small 5v motors. I don't want to power the motors from the pi. I need a driver circuit to switch a separate supply to the motors
@rockymountainfacet5958 Жыл бұрын
Love your content as always. Thank you!
@sumantakumardutta986 Жыл бұрын
Homework solved!!😁 I even added another user-input about the time delay between 2 blinks. So the blinking is sometimes too slow or too fast, depending upon the user-input. 😀 This is really exciting!!😃 And thank you for mentioning the amazing "time" library of Python.❤
@sunilkulkarni44262 жыл бұрын
Excited for the GPIO video !!!
@CKGamingChannel-w2o3 күн бұрын
Something strange is occuring on my 16 channel relay board, connected to a t-cobbler. The GPIO.output, LOW and HIGH commands are inverted in polarity. I really don't understand it. But in the code I have to invert the commands to send signals. Any ideas?
@rockymountainfacet5958 Жыл бұрын
I actually did the sum. I did not fold like a cheap lawn chair. I also have my Ice Coffee for this next video. I appreciate you Paul! I defiantly look up to you.
@paulmcwhorter Жыл бұрын
Great job!
@steffig72822 жыл бұрын
You are brilliant Sir. I ♡ that your shirt always according to the tutorial. Greetings from Belgium
@paulmcwhorter2 жыл бұрын
Thanks! 😃
@Compuscience-Python-Prog-Exps Жыл бұрын
I've learned how to do a Breadboard because of you Paul. Another KZbin teacher showed me tips to create a breadboard with cobbler. Excellent choice I even recommend it. Cobblers avoid actual Rasp Pi pinouts from getting damaged. I'm just over a year and a half from having this amazing machine It taught me much in such a very short time. Please check out my work. when you have the time... Thanks Paul.......🙂👌👍
@sachinkumar-eb9mt10 ай бұрын
Hi Sir, I am very thankful that you are doing this series. I am using Pi5 and at 35:00 i am getting the error as Traceback (most recent call last): File "", line 1, in RuntimeError: Cannot determine SOC peripheral base address please help me! Thanks in Advanced
@paddler-sn7ub8 ай бұрын
Thank you for the website and tutorials
@ronwatkins2507 Жыл бұрын
I've ordered the sun founder package and it's supposed to be delivered.
@tarekhk10 ай бұрын
Hey Paul, I got the RPi 5 and a SunFounder kit but when I try to setup GPIO.OUT I get : "RuntimeError: Cannot determine SOC peripheral base address". My understanding is that the new RPi 5 has a new chip and I cannot use the GPIO library so can't follow your lessons. I have been able to interact with the LED through GPIOD however I don't believe I can follow your lessons as it's very different code lines. What is the best way to follow the lessons? would a cheap Pico be able to use the GPIO library? I can't justify buying an older RPi 4 now as gpio library has been deprecated.
@paulmcwhorter10 ай бұрын
This class is probably better suited for an earlier version of the pi.
@buddhabrot32 ай бұрын
@@paulmcwhorter Dear Paul, I really enjoyed your lesson so far, sadly I have the kit and pi as well and get the same error messages… it’s quite annoying tbh. As someone without experience it is difficult or impossible to follow your course. Maybe you can talk to sunfounder that they not advertise the set for raspberry pie 5 or ask them if they can pay you to run an updated version. I know this is not your fault but for me on the consumer end it is more than annoying, what I do now with this 60$ half-used set
@jacksoncontreras20965 ай бұрын
Question: how does the raspberry pi know to output 5 volts?
@tahababazadeh84442 жыл бұрын
Hi Mr.McWorter as always thanks for your great videos . unfortunately in my country with my income I cant afford to buy a raspberry pi although I am really interested and full of ideas and so passionate about it. is there any simulator or anything that I can rely on for learning raspberry pi thank you sincerly,
@SPADMI2 жыл бұрын
I don't know is this the better answer for you. Your alternative choice is to buy a Raspberry Pi Zero 2W at US$15. Not that expensive, hoping that it is more affordable.
@JonahWind-k8x4 ай бұрын
Hello! Nice lesson Paul, I understood everything. 🎉But as I wrote in the command: GPIO.setup(11,GPIO.OUT) I got this: RuntimeError: No access to /dev/mem. Try running as root! I tried running the program with sudo python3 and then it worked. Is there another way to solve this problem, because I'm affraid, that if I write a wrong command I could remove the hard/software or something like that.😅
@gplayer012 жыл бұрын
Really cool lesson. Many thanks!!
@waltmetcalf53542 жыл бұрын
import time import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) red=11 GPIO.setup(red,GPIO.OUT) while true: blink_num=int(input("How Many Blinks? ")) for i in range (0,blink_num): GPIO.output(red,True) time.sleep(.25) GPIO.output(red,False) time.sleep(.25) GPIO.cleanup() Homework Lesson 4
@VivekAnandJ Жыл бұрын
Sir in the GPIO pin out you've shown in the beginning (10:40), you've shown pin 6 as TX. However Google images shows it as Ground for Raspberry Pi 4, Model B. Is this for a different model? Thank you in advance for clarifying. 😊🙏
@cmaguire3056 ай бұрын
I've been enjoying these videos, until now. I'm using a Raspberry Pi 5, which doesn't use RPi GPIO. The Pi 5 uses GPIOZero. I'm currently struggling with that! Hopefully I can jump back on these videos, once I figure out what the heck I'm doing with GPIOZERO.
@NirvanaGlobalFoundation5 ай бұрын
Same issue am glad you've raised it I found your comment scrolling for solutions. I'll try using GPIOzero en do more research on it.
@onlynonsense87232 жыл бұрын
Great videos. Some timestamps would help greatly. If you could also keep the picture of you small rather than large so we can see the content, that would be super.
@SahithaKARAPITIYA-yx3dh5 ай бұрын
Thank you Mr. Paul. RuntimeError: Cannot determine SOC peripeheral base address. Could you please tell me why this error appears though I followed the steps in the video? (this occured after the GPIO.setup(11,GPIO.OUT). I am using Rasppi5. Thank you
@paulmcwhorter5 ай бұрын
These lessons are not compatible with Pi 5 as Pi 5 changed how to interact with GPIO pins.
@SahithaKARAPITIYA-yx3dh5 ай бұрын
@@paulmcwhorter so is do you have another seres for pi 5. Or would you recommend any other source?
@SahithaKARAPITIYA-yx3dh5 ай бұрын
@@paulmcwhorter Mr. Paul my goal is to send data from several STM 32 nucleo boards to a raspberry pi 5 and then send it to a cloud server.
@greatscott36 Жыл бұрын
Is it possible to write in others instead of Phython?
@AdolfZcoder Жыл бұрын
Hi paul, I just wanted to ask before i buy the kit. Is the raspberry pi included in the kit itself? Or the kit only has components without the raspberry pi. Is the raspberry pi included in the Sunfounder kit? The one you have in the video
@paulmcwhorter Жыл бұрын
No you need to have the pi, it is not included
@AdolfZcoder Жыл бұрын
@@paulmcwhorter Ow ok thanks you, Any suggestions on where i can get a complete Kit and not seperate?
@maddogmaz15769 ай бұрын
The drawing said 5V but didn't you put it to the 3V?
@SPADMI2 жыл бұрын
Does it matter if I put the resistor on the short leg (cathode) instead of connecting it to the long leg (anode) of the LED?
@paulmcwhorter2 жыл бұрын
Can go on either side of the LED. Just needs to be in series with it.
@rzaheer007 Жыл бұрын
The circuit diagram shows a 5v battery. Does the command 'GPIO.output(11,True)' set pin 11 at 5V by default? Can we set the voltage at any desired level using the output function?
@paulmcwhorter Жыл бұрын
Yes
@timeforrice Жыл бұрын
This guy is amazing!!!
@imastered90217 ай бұрын
Hi Paul, I'm running into an issue when I run the line "GPIO.setup(11,GPIO.OUT)" It is giving me an error saying, "RuntimeError: Cannot determine SOC peripheral base address." Do you have any ideas why? Thanks for everything so far, really enjoying your course!
@halcyonramirez64697 ай бұрын
It's cuz the raspberry pi 5 changed. use the gpiozero library instead
@bendibhafed16872 жыл бұрын
Thank you Mr. Paul, This is really interesting.
@ActualRandy Жыл бұрын
Hi Paul - thanks again for providing these materials, they are much more pleasant than reading dry tutorials! Would you be able to check my computations below? I'm trying to figure out how to select the correct resistor. According to my internet research (probably reliable but who knows): * 3.3 volts is the amounted provided by GPIO pins * 1.8 is the voltage drop for the red/green/yellow LEDs in our kit * 8 milliamps is the default max amperage on a GPIO pin * R = (VS - VD) / I, where R = Resistance, VS=voltage supplied, VD = Voltage Drop, I = current So by my calculation and research, the lowest resistor value meeting the 8 milliamp max should be: R = (3.3 - 1.8) / .008 = 187 ohm I.e., we should have at least a 187 ohm resistor to avoid sending too much current through the pin. Am I correct? Thanks in advance
@tezza3733 Жыл бұрын
Voltage drop across a diode is 0.6v not 1.2v
@Dinesh-nb6td10 ай бұрын
in which simulation we can make above simulation?
@malindailankoon8 ай бұрын
Tinkercad
@farazahmed16682 жыл бұрын
Thank you so much mister paul.
@paulmcwhorter2 жыл бұрын
Welcome!
@russellfaronijr.68266 ай бұрын
I have a problem with the code for the first program in this lesson. I get this error after the 3rd line of code is entered and it's not a typo I checked several times... Traceback (most recent call last): File "", line 1, in untimeError: Cannot determine sOC peripheral base address >> GPIO.setup(11,GPIO.OUT) Traceback (most recent call last): File "", line 1, in RuntimeError: Cannot determine SOC peripheral base address Any suggestions?
@cmaguire3056 ай бұрын
If you're using a Raspberry Pi 5, you can't use RPi GPIO. You need to use GPIOZERO.
@RixtronixLAB11 ай бұрын
Nice video, thanks :)
@RobVollmar Жыл бұрын
It wasn't easy but I AM LEGEND!
@paulmcwhorter Жыл бұрын
LEGEND!
@joemurphey47366 ай бұрын
Where are the answers to the homework? List of program so I can learn from it?
@paulmcwhorter6 ай бұрын
Thanks! Really appreciate the support, it means a lot.
@TradersTradingEdge2 жыл бұрын
Wonderful, thanks very much. Can't wait to learn more in the next videos. §8-) Have a happy day. 🌞
@BuzzKiller232 ай бұрын
Is this ever going to be updated for the raspberry pi 5, or did I just waste $50 on this kit?
@paulmcwhorter2 ай бұрын
Perhaps you should have bought the version of the Pi that the class is based around? That would have been another option.
@BuzzKiller2320 күн бұрын
@@paulmcwhorter Your friends at sunfounder said that their kit is compatible with the pi 5.
@andrewmueller880317 күн бұрын
Don't be mean, you are such a buzz killer.
@CKGamingChannel-w2o3 күн бұрын
It sounds very stupid I know, but try inverting the low high commands in your code and see if it helps.
@tpobrienjr2 жыл бұрын
Cool stuff, indeed!
@martinlewis645 Жыл бұрын
@paulmcwhorter Жыл бұрын
LEGEND!
@OZtwo Жыл бұрын
Let us all sing: My LED is on! My LED is on! wow, LOVE to see that my LED turn on!
@arjunsaibo2 жыл бұрын
Dear Sir please upload early.. Please release today only, lec4 and lec5
@goku64100 Жыл бұрын
no one's been killed with an led YET
@keithlohmeyer2 жыл бұрын
Homework number 3 for this lesson kzbin.info/www/bejne/eHWQmpyvm958Z6c Paul suggested you could blink multiple LEDs independently without using threading. I took the challenge.
@poggiostefano2 жыл бұрын
I wish you were my Physics Teacher
@ion4497Ай бұрын
thanks !!!
@tkklein2 жыл бұрын
How's your church plant going??
@paulmcwhorter2 жыл бұрын
Slow, but progressing. Purchasing property is a challenge right now.
@tkklein2 жыл бұрын
@@paulmcwhorter I see, do you need more donations?
@paulmcwhorter2 жыл бұрын
Thank you for your kind thoughts. Actually I dont get donations or support for the work I do here. I support it from the work I do on this channel. So, supporting the channel supports the work I do here. The problem with property purchase is one of finding the right spot at the right price. Also, most property here does not have a title, and then issues of easements and other things make it a challenge. So, we continue to try and work through all those issues. Thanks for asking.
@tkklein2 жыл бұрын
@@paulmcwhorter Ok, makes sense. I will be praying!
@TheCourtoh2 жыл бұрын
I am legend!
@TheUnofficialMaker2 жыл бұрын
link: kzbin.info/www/bejne/noi6pqZ8pbqtsLM for the homework. This was fun..had to keep playing with it.
@paulmcwhorter2 жыл бұрын
A+
@maddogmaz15769 ай бұрын
True turns mine off
@karliskide2460 Жыл бұрын
Thank you for the lesson! Starting series on Raspberry Pi as well. So here is my homework solution for this one: kzbin.info/www/bejne/sGataKqFjL6Nftk
@paulmcwhorter Жыл бұрын
LEGEND!
@captainprototype1872 жыл бұрын
ok, my fist 10 minutes done. Will return later for the next 10 minutes..
@Greebstreebling11 ай бұрын
sorry, took too long to get into it....:) :)
@davidschnider1297 Жыл бұрын
Hello Paul. thank you for another exciting and challenging lesson. Here is my homework assignment... please forgive the untidy desk...thankful to have found the SunFounder Kit and though the kit.. I found YOU. God bless you, Brother Paul. oh.. here is the link to my homework video kzbin.info/www/bejne/jonQcoGLr7Bpp8k
@paulmcwhorter Жыл бұрын
Excellent!
@alberttalkstech Жыл бұрын
This is my Homework link: kzbin.info/www/bejne/Y5raiIqZqM5lbrc
@paulmcwhorter Жыл бұрын
EXCELLENT!
@lorisrobots2 жыл бұрын
Thanks for the great lesson - I have been traveling in my RV lately so I am a bit behind in the lessons. Trying to catch up while I still have internet. Here is my homework video: kzbin.info/www/bejne/npPShoFqmp10qpI
Thank you for this series, really enjoying it. My homework is here: kzbin.info/www/bejne/epKYfX13ftuja5o
@drmonkr9 ай бұрын
Not working for GPIO.setup(11,GPIO.OUT)
@SuleimanAL-Far5 ай бұрын
can you help me please , I can not understand this error and how Can I solve it ?? pi@raspberrypi:~ $ python3 Python 3.11.2 (main, May 2 2024, 11:59:08) [GCC 12.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import RPi.GPIO as GPIO >>> GPIO.setmode(GPIO.BOARD) >>> GPIO.setup(11,GPIO.OUT) Traceback (most recent call last): File "", line 1, in RuntimeError: Cannot determine SOC peripheral base address
@SPADMI2 жыл бұрын
my homework submission: drive.google.com/file/d/157jwlQiHmHkj4bUsIvJZOopQ19Hsg-GT/view?usp=sharing
@paulmcwhorter2 жыл бұрын
Can you add to youtube . . . most people wont click on google drive links