Basic usage of the Raspberry Pi GPIO pins

Sdílet
Vložit
  • čas přidán 25. 07. 2024
  • Working with Raspberry Pi GPIO pins is easy and very useful. In this video is an introduction to doing just that.
    Hope you enjoyed the video!
    PiJuice HAT:
    uk.pi-supply.com/products/pij...
    Check out this code here:
    github.com/engineer-man/youtu...
    Join my Discord server to chat with me:
    / discord
    Check out some code on my GitHub:
    github.com/realtux
    github.com/engineer-man/youtube
    Come visit us on Reddit:
    / engineerman
    Other Social:
    / _engineerman
    / engineermanyt
  • Věda a technologie

Komentáře • 135

  • @SchoolforHackers
    @SchoolforHackers Před 5 lety +52

    Loving your from-the-ground-up approach: great for learning how actually to build on the Pi. Hope you’ll make this a series.

  • @capistor1
    @capistor1 Před 5 lety +12

    Eyyy loved the video. Please continue and make this a series

  • @reinaldonovoa
    @reinaldonovoa Před 4 lety

    Most clear coding example I've seen for the RPi. Definitely more RPi videos please I recently fell into the RPi rabbit hole.

  • @brandonbrand2338
    @brandonbrand2338 Před 4 lety +2

    This was brilliant E-Man, thank you. Looking forward to much more raspberry pi videos especially when coding using Python and the RPi's GPIO pins. I simply love tinkering with these SBC.

  • @smmextraYT
    @smmextraYT Před 3 lety +1

    Great instructional video! I've watch many videos on very similar functions, but the way you explain each function, while showing the dual view (well, tri-view), made each step easy to follow. You've taken the fear out of programming. Thank you and keep it up!

  • @lefabb
    @lefabb Před 5 lety +1

    Great video, I learned a lot thanks to you. I love the RPi and look forward to seeing the next videos you make about it. Cheers

  • @bullium
    @bullium Před 5 lety

    Would love you to continue this series for sure my man!

  • @beron_the_colossus
    @beron_the_colossus Před 5 lety +4

    Thank you, always love videos about Raspberries

  • @yuvigerstein
    @yuvigerstein Před 5 lety

    That's a great tutorial, thank you. Please make more on this exact topic and more advanced physical projects. Thanks!

  • @timstraps
    @timstraps Před 5 lety

    I was going to do a RPi project this summer that involves 7-segment displays. These are really helpful, hope you do more.

  • @sasakanjuh7660
    @sasakanjuh7660 Před 5 lety +20

    Definitely more RP videos! Or even some basic electronics could be interesting :)

  • @stevewlasichuk
    @stevewlasichuk Před 5 lety

    This was super useful as someone that knows how to program + a little circuit knowledge. If you do more like this, hooking up a motor to a similar event would be cool.

  • @tburda823
    @tburda823 Před 4 lety

    Setting up a circuit to add to outdoor motion lights when one catches motion, it turns them all on. This was a perfect tutorial to get the basics I needed of using GPIO to detect input. Thanks.

  • @str0g
    @str0g Před 5 lety

    hope that this becomes a series! keep up the great work...

  • @mohammadrezasabouri6875

    Extremely helpful, I got all the information I needed, thank you so much!

  • @alvfig
    @alvfig Před 5 lety

    I'd like to see more videos like this one, too. Thank You!

  • @carpandrei7493
    @carpandrei7493 Před 5 lety

    You just gave me one more reason to start learning Python. Especially since I already have two Raspberry PIs that I switch back and forth between different projects (mainly retro gaming, music and video streaming).

  • @hectoro5144
    @hectoro5144 Před 4 lety +3

    Whats up man, I like this raspberry video, thank you so much!

  • @Solcitse
    @Solcitse Před 5 lety

    thanks for the videos bro, looking forward to more pi gpio tutorials

  • @gsansoucie
    @gsansoucie Před 4 lety

    Excellent hello world here. I’ve done Pic and Arduino now for decades, just got a Pi, just needed this to figure out where to start.

  • @markharrisllb
    @markharrisllb Před 2 lety

    This is the first video I’ve seen of yours but it’s certainly not the last. Everything explained thorough but succinctly without any waffle.

  • @fuzzylon
    @fuzzylon Před 3 lety

    This video is exactly what I was looking for. Thanks.

  • @TheGreatWolf13
    @TheGreatWolf13 Před 5 lety

    Only recently started with a RaspberryPi Zero, so would love to see more videos.

  • @ashwoodson1649
    @ashwoodson1649 Před 5 lety

    First time I've seen (what seems obvious) the use of an ide cable with a pi... Nice! And Clean!

  • @PR0MINENCE
    @PR0MINENCE Před 8 měsíci +1

    Great video! Just a small comment - It doesn’t matter where you put the resistor. It can be either on negative or positive side of the LED. It will still limit the current that goes through.

  • @ericr5481
    @ericr5481 Před 5 lety

    This is sweet. Especially love that the code is in python. Please make more.

  • @dvn8ter
    @dvn8ter Před 5 lety +4

    man great video! keep it up PLEASE!

  • @kwkspectre
    @kwkspectre Před 4 lety

    Very helpful video - I'd like to see more.

  • @FPS-WIFI
    @FPS-WIFI Před 4 lety

    Great video, and a raspberry pi series would be awesome!

  • @Soljarag5
    @Soljarag5 Před 3 lety

    Perfect tutorial to get started with gpio!! Thanks

  • @donmiller504
    @donmiller504 Před 8 měsíci

    Thank You, I'm trying to learn this!

  • @caleb8764
    @caleb8764 Před 5 lety

    So good mate, keep the Raspberrypi vids coming I say!

  • @ImARichard
    @ImARichard Před 5 lety

    More raspberry pie stuff would be awesome to see!

  • @vilks_jan
    @vilks_jan Před 5 lety

    Thanks Engineering Man!

  • @daowiz001
    @daowiz001 Před 3 lety

    Super good! please more!

  • @sndgx100
    @sndgx100 Před 5 lety

    Thank you! More please!

  • @IcculusTheProphet
    @IcculusTheProphet Před 5 lety

    Great video! I would like to see more RPi projects. This was a great warm-up to show how simple and powerful an RPi can be with just a little coding experience.
    I always thought a gun RPi project would be modifying an old garage door opener to a "smart" garage for opener with a RPi Zero.
    What do you think?

  • @janism94
    @janism94 Před 5 lety +6

    R Pi uses round the house would be a good vid

  • @angelbythewings
    @angelbythewings Před 2 lety

    This was awesome manx

  • @csebastian3
    @csebastian3 Před 3 lety

    Great introduction!

  • @BloodmansCrypt
    @BloodmansCrypt Před 4 lety +1

    Loved the video!

  • @wedemier
    @wedemier Před 5 lety

    Awesome video! More please.

  • @davidb.5911
    @davidb.5911 Před 3 lety

    Thank you, very useful video!

  • @nkeirujohnson-achilike6020

    Extremely helpful video

  • @fernandoflores3728
    @fernandoflores3728 Před 4 lety

    Good and complete video about RP GPIO manage, hope you may make a video using RP with hardware interrupts like we can make with microprocessors (INT), thanks!

  • @leanobajio
    @leanobajio Před 5 lety +5

    Awesome video. I'd love to see more Arduino and Raspberry Pi projects in the future.

    • @skeeveskeeve
      @skeeveskeeve Před 5 lety +3

      agreed

    • @JosueRodriguez08
      @JosueRodriguez08 Před 5 lety +1

      Nooooo, look for that in another channel, don't transform this in more of the same shit

  • @CarinoGamingStudio
    @CarinoGamingStudio Před 3 lety

    i subscribe because this channel can teach me on raspberry pi as what it was.

  • @jeffsirkis2552
    @jeffsirkis2552 Před 5 lety

    Would like more raspberry pi videos. Thanks!

  • @Jamison_IO
    @Jamison_IO Před 5 lety

    Awesome video. This is a great channel.

  • @devnull08
    @devnull08 Před 5 lety +1

    Great intro, can you possibly do something with reading data from an input such as a temperature sensor, movement detector etc?

  • @yassinemessaoudi
    @yassinemessaoudi Před 5 lety +1

    Great Video

  • @evertidema3338
    @evertidema3338 Před 5 lety

    Great video, would love to see some python pi and sensor stuff

  • @zren4585
    @zren4585 Před 4 lety

    thank you its really helpful

  • @thijsdebont
    @thijsdebont Před 4 lety

    Cool vid! Quick question. Could you use a variable, like the led_on variable, to set the GPIO state instead of GPIO.HIGH/LOW? This would eliminate the need for the if..else statement in the switch function (I could test this myself, but others might be interested).

  • @andrewpaige9152
    @andrewpaige9152 Před 3 lety

    Your the best, im new to this and was understanderbly clear, cheers from down under Australia, can you maybe do tutorials using all the gadgets? How to go to install programs for your shields and install things through terminal onto Raspian so many people just assume because you have a Pi your and expert, but im just making the change over and people can be so arogant i cant see why people give up and run back to windows and never look back and hate the linux community or open source community. But you were very good going step by step and explaining why each step is like it and what piece does what and why this command command does that and if if you dont sceanario. New Subscriber

  • @Mcfryguy5555
    @Mcfryguy5555 Před 5 lety

    Yes, do some more Raspberry Pi videos!

  • @ankitmourya9070
    @ankitmourya9070 Před 4 lety

    Nice explanation.keep it up

  • @blenzangel06
    @blenzangel06 Před 4 lety

    Love the video by the way.

  • @skeeveskeeve
    @skeeveskeeve Před 5 lety

    super helpful

  • @ThesexyMrX
    @ThesexyMrX Před 4 lety

    Fuck.. now I need a breadboard.. seriously I've been to microcenter so many times this week! Thanks for the video

  • @ShizzleMyChizzle
    @ShizzleMyChizzle Před 3 lety

    I like your videos before watching them

  • @Sirmrmeowmeow
    @Sirmrmeowmeow Před 5 lety

    nice video! keep it up!

  • @shoaib_zubair
    @shoaib_zubair Před 5 lety

    nice vedio!
    great explanation.

  • @FatPinkSlug
    @FatPinkSlug Před 5 lety +1

    One thing that I would be interested to see is actually a step further towards the "basics" and have demonstrate how to launch code on a PI. That, but also I would be super interested to see about things that you can do with a RaspberryPi that you can't do with something like an Arduino.

    • @noweare1
      @noweare1 Před 5 lety

      Since the PI has an operating system the Arduino is better for processing sensors and in general interfaceing with the environment. The PI has a bunch of stuff to do so it only gives the Arduino a piece of time to do it's thing. If you want to control something use an Arduino. Anything with an O.S. will be slow, slow, slow.

  • @FEBIHKING
    @FEBIHKING Před 5 lety

    Superb.... Please do more raspberry pi video's

  • @RobsPlaceFL
    @RobsPlaceFL Před 4 lety

    Keep them coming! Worked with Pic Micro and Arduino but just getting into Pi. Where did you write the code and where did you execute it?

  • @VE3RGO
    @VE3RGO Před 5 lety

    Keep showing the RPi stuff!

  • @kbaeksu
    @kbaeksu Před 3 lety

    Really nice video, Questions, I'd like to connect to Pi & run python remotely, what kind of editor you recommend for Python (Windows app?)? I saw you mounted some drive or network drive, can you explain what working environment you have?

  • @oswaldjh
    @oswaldjh Před 5 lety

    Random pixelization at the top side of your PiJuice makes it appear to letting out the magic smoke.

  • @varunrajput267
    @varunrajput267 Před 5 lety

    Please more pi videos!

  • @assida143
    @assida143 Před 5 lety +7

    Can you do some on OS Raspberry Pi cluster moving ICE is simple and easy cluster and thank you

    • @JosueRodriguez08
      @JosueRodriguez08 Před 5 lety

      I have a 15 nodes RaspberryPi Cluster for virtualization

  • @BrotherHank
    @BrotherHank Před 5 lety

    More Raspberry PI Videos please!

  • @maxmillionnunez
    @maxmillionnunez Před 3 lety

    Do you have a script when the button is pressed it calls not for an LED but rather a shell script/file? Is the ‘callback’ would be the call for my script.

  • @artlessroger197
    @artlessroger197 Před 3 lety

    are the pins the holes on the pcb or is it the little metal prongs that go through the holes? Also can you solder wires to get info/energy from the holes?

  • @t16bros96
    @t16bros96 Před 3 lety

    I’m yet to find a decent button which one did you use

  • @Asithan476
    @Asithan476 Před 3 lety

    Does the resistor have to be on the positive side coming in?

  • @Compuscience-Python-Prog-Exps
    @Compuscience-Python-Prog-Exps Před 10 měsíci

    I soo Love my Raspberry Pi 4b.💙

  • @Manfrix888
    @Manfrix888 Před 3 lety

    hi man, i must do the same thing using forth, any tips?

  • @wiiu7640
    @wiiu7640 Před 3 lety

    How would you convert an audio file into dsd to be played back through the PWM methods in this video? PDM is basically the same as PWM but instead of modulating the pulsewidth via time, it’s by keeping it on or off over clock cycles at a really high clock speed. All you would need is a capacitor to filter the high end. Would it be possible to use all the GPIO pins to output this kind of signal?

  • @johnbarrios4531
    @johnbarrios4531 Před 2 lety

    Clarified the BCM and Board setting...had me for a day trying to figure if the outputs were set right in the program..

  • @gingsSon
    @gingsSon Před 3 lety

    Thanks.

  • @pawebaran3601
    @pawebaran3601 Před 2 lety

    Hey, I plan to use Raspberry as a NAS using OpenMediaVault and I want it to act as a microcontroller to control some of my projects (on Arduino at this point, but my goal is to control them through PI's GPIO pins). How can I achieve both of those goals? Open Media Vault works in headless mode, no monitor and gui, everything controlled from other PC connected to the same network. Do you have any clues? Controlling GPIO in headless mode similar to microcontroller like Arduino or menaging Open Media Vault in normal Raspbian or something

  • @jasonstation
    @jasonstation Před 10 měsíci

    Is it in any way possible to utilise the GPIO pins of a Raspberry Pi that is running a Home Assistant instance? IE to connect to the sensors of an old home alarm system.

  • @peegee101
    @peegee101 Před 5 lety

    Very Kewl!

  • @ThesniperScythe
    @ThesniperScythe Před 4 lety

    How can you edit python remotely, what do you use?

  • @davidwplummer953
    @davidwplummer953 Před 5 lety +1

    Great intro - now how do I do it in C? I assume it's trivial, but could use a simple example like you've done here for python!

    • @AtoZProgrammingTutorials
      @AtoZProgrammingTutorials Před 5 lety +1

      Look into the WiringPi or BCM2835 libraries, for extra points you can control the pins directly by using Linux kernel functions.

  • @dmbrv
    @dmbrv Před 5 lety

    nice video

  • @jhoughjr1
    @jhoughjr1 Před 5 lety

    Anyone got epoll to work with Buster? i use JS and seems its borked.

  • @robertdavis5569
    @robertdavis5569 Před 4 lety

    Super new to raspberry and arduino. Which IDE are you using?

  • @BillYovino
    @BillYovino Před 2 lety

    How would I simulate a button press from another Pi? In other words, taking your example in this video, instead of having the physical button you had jumpers from another Pi. How would you define the GPIO pins in software for both Pi's? My idea is to use a WiFi enabled Pico W to trigger a button press on a 3B+ running Fruitbox (Jukebox software). I would then be able to use my phone's browser to control some aspects of it.

  • @Sifu-Myers
    @Sifu-Myers Před 4 lety

    What program are you using to do this for the raspberry pi?

  • @yannnique17
    @yannnique17 Před 3 lety

    What if it's not blinking? I can't measure voltage at the GPIO.

  • @logiztv4986
    @logiztv4986 Před 2 lety

    Can‘t you change the voltage of the gpio output ?

  • @sbschuppel8552
    @sbschuppel8552 Před 4 lety

    what switch did you use ?

  • @Alpha_fitz
    @Alpha_fitz Před 2 lety +2

    Do an apdated version of this.

  • @siddharthdedhia11
    @siddharthdedhia11 Před 4 lety

    Are the GPIOs same for raspberry pi 3 and 4?

  • @HEX1337x
    @HEX1337x Před rokem

    How are called this pins? I want to buy on ebay, i need it exactly this what are, the basic M/M pins?

  • @masehacker
    @masehacker Před 4 lety

    I am in need of some coding help, I want time.sleeep(X) and I need X to be taken from another file. I am then going to have that file IE: input.txt have its values inside change from a php script\website.
    no one has been able to tell me how to do this.

  • @mikebailey2970
    @mikebailey2970 Před 5 lety

    Yum, more Pi please 8-) Or perhaps micropython on the ESP8266

  • @neilshobbyhq
    @neilshobbyhq Před 5 lety

    How are you transferring the data to the PI is it connected to a computer