Raspberry Pi Linux LESSON 26: Controlling the Raspberry Pi GPIO pins from Python

preview_player
Показать описание
In this tutorial we show how to control the GPIO pins on the Raspberry Pi from a python program. We introduce the concepts by running commands from the python shell, and then show how to blink an LED using a python program. We explore both the BOARD and BCM pin numbering schemes.

See full details at:
Рекомендации по теме
Комментарии
Автор

I really appreciate how you explain the code you use rather than just throwing out a script and saying "Here you go". I'm trying to learn the code, not just make a servo work. Many thanks.

johnlayman
Автор

This is the best video series on the internet for programming the Raspberry Pi.

zynoda
Автор

After learning myself to program the Vic-20 as a 15 year old in 1985 as a hobby, I began studying humanistic subjects. When I was 30, a former girlfriend bought me Lego robotics. Now I'm 47 years old and your lectures helps me pick up my real interests again. It's so much fun. Thank you :) (Seems like I was the only one not realising my true interest :D ).

stigmellem
Автор

You have fabulous teaching skills, thanks for putting these online.

bobert
Автор

after searching online for "MY" kind of teaching i found your channel ! so thank you first off.. tonight ill start at lesson 1 and work up to this. been a Pi user for a while but only with MagicMirror stuff, this is my first time on the GPi0 side of things. have a zero and 3B+ not sure what im using yet, but i have a 4 chan realy that needs setup with a few things. project is for the chicken coop. chan 1 - operating the linear actuator ( has limit stops ) to open the chicken door at a preset time int he morning and then chan-2 closes the door, chan 3- led lighting in the coop chan 4- 12 volt fan. future config for the pi i have a set of temp sensors that i want to see inside temp outside temp and water temp in the coop... glad to be a part of your channel !

WayneRigley
Автор

Brilliant thank you! after frying my first raspberry pi in less than 24 hours things are finally starting to make sense!

benmiddleton
Автор

Wonderful lesson. Thank you!
One suggestion ... I know that, for the most part, people will be using brand new, or uncut, LEDs, in which case, saying that the "long" lead is the positive (anode) lead.
However, that wouldn't work if they are using a used one, scrapped one, one where the leads have been cut. So what I do is tell people to look at the contacts INSIDE the LED. One of them looks like a pointer, or "arrow" (the Cathode) and the other one looks like a post or straight block (the Anode) if you will. I tell people that "the arrow points to positive."
Just thought I would share that.
Keep up the great work! As always ... Have a better day!

dolfinmagikpro
Автор

Amazing work with this video. Your pacing and thoroughness makes it very easy to learn. I've been working with Linux and Python for a short time and have thus far been slightly confused. Not anymore. Thanks a bunch. Great work!!

blusapphirervg
Автор

These lessons are just Fantastic to learn linux plus the ability to control sensors just can't say enough.

dannymeadows
Автор

@14:47

"I actually practice this stuff before I come on here so I know I make sure what I'm doing...." takes a drink of a rum and coke.

bocephus
Автор

You are an excellent teacher, thanks a lot for the lessons!

BerserkIlidan
Автор

I can't wait to finish this series and begin your Beagle Bone one! :) You are amazing!

emersonbaik
Автор

I wish we had more teachers like you! Excellent videos!

amaklp
Автор

You are so brilliant Teacher and a Programmer, keep making videos and God bless!

justforphysics
Автор

This was super helpful. Thank you very much. Sincerely - probably the best youtube tutorial I've ever done.

seangleason
Автор

Thank you Paul for your contributions! And Happy NEW YEAR! as soon as I figure out how I want to utilize ansible (based upon python) to control GPIO - and yes I realize just because you can do something doesn't mean you should...

daveb-bxhh
Автор

i loved the happy way of your teaching ...enjoying every little or big thing

Deepakkumar-tqxv
Автор

I appreciate all the work that went into these videos. I feel like I've learned a lot!

bluesquare
Автор

Paul ... You do a great job teaching this lesson Thank you

lovemyjob
Автор

Hi Paul! Very informative! I've been searching for a great tutorial on Raspberry and i found your channel, which is amazing! You're doing a great job! Thank you so much for your effort!

gmmotzu