Python GPIO - Input Pin Push Button Example & Compatibility With Raspberry Pi 5

Veröffentlicht am: 06 Juli 2024
auf dem Kanal: Phazer Tech
6,339
67

This is a continuation of my guide on using the Raspberry Pi GPIO pins in Python. In a previous video I demonstrated how to use the output pins with a transistor circuit to power LEDs. Today's example shows how to use the input pins with a simple push button example. I also go over the Raspberry Pi 5 and its compatibility with existing libraries. Stay tuned for my next video where I'll show how to interface with sensors including an ultrasonic distance sensor and an IMU.

Written Guide: https://phazertech.com/tutorials/rpi-...

Raspberry Pi & SBC Playlist:    • Raspberry Pi & SBCs  

Practical Electronics & Circuits 101 playlist:    • Practical Electronics & Circuits 101  

Purchase push buttons on Amazon: https://amzn.to/3xuqi7m

Purchase a Raspberry Pi on Amazon
Raspberry Pi 5 8GB: https://amzn.to/4gb1ceq
Raspberry Pi 5 4GB: https://amzn.to/4igE404
Raspberry Pi 4 Model B 4GB: https://amzn.to/4252Xnr
Raspberry Pi 3 Model B+: https://amzn.to/424PegC
Raspberry Pi Zero 2 W: https://amzn.to/3UQhmSD
Raspberry Pi Zero WH: https://amzn.to/4aZLlNU

Purchase at MicroCenter (Best Deal)
Pi 5 8GB: https://www.microcenter.com/product/6...
Pi 5 4GB: https://www.microcenter.com/product/6...

These are affiliate links where I earn a small commission for purchases at no extra cost to you.
This is the easiest way to help the channel, thank you!
Amazon: https://amzn.to/484HUnU

Website: https://phazertech.com/

Donations
Buy me a coffee: https://www.buymeacoffee.com/phazertech

Chapters
00:00 Intro
02:09 Raspberry Pi 5 compatibility
04:35 Voltage divider circuit for the push button
07:08 Explaining the code
09:46 Running the code and other potential uses
12:57 Outro


Auf dieser Seite können Sie das Online-Video Python GPIO - Input Pin Push Button Example & Compatibility With Raspberry Pi 5 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Phazer Tech 06 Juli 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 6,339 Mal angesehen und es wurde von 67 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!