Vigyata.AI
Is this your channel?

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

6.5K views· 68 likes· 13:42· Jul 7, 2024

🛍️ Products Mentioned (13)

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-gpio.html Raspberry Pi & SBC Playlist: https://www.youtube.com/playlist?list=PLlLR7EXXYZ0bZl0azi5-OelwdpHxFYX5G Practical Electronics & Circuits 101 playlist: https://youtube.com/playlist?list=PLlLR7EXXYZ0YcMaDjlh_1T-_dr_zAZpFM&si=RtpQ4EEvT2swVO0A 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/673711/raspberry-pi-5-8gb-lpddr4x Pi 5 4GB: https://www.microcenter.com/product/673712/raspberry-pi-5-4gb-lpddr4x 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

🎬 More from Phazer Tech