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

Published: 06 July 2024
on channel: 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


On this page of the site you can watch the video online Python GPIO - Input Pin Push Button Example & Compatibility With Raspberry Pi 5 with a duration of hours minute second in good quality, which was uploaded by the user Phazer Tech 06 July 2024, share the link with friends and acquaintances, this video has already been watched 6,339 times on youtube and it was liked by 67 viewers. Enjoy your viewing!