• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

KaliTut

Kali Linux tutorial and Linux Tips

  • Home
  • Raspberry Pi
  • Privacy Policy
  • About us
  • Affiliate disclaimer

Raspberry Pi GPIO input wired with button/switch

by

Raspberry Pi GPIO input wired with button

Raspberry Pi GPIO input

Basically, you can operate a GPIO pin either as an input or as an output. As an input, it can assume the states “High” and “Low”. For example, from a switch or button. 
In general, Raspberry Pi’s GPIOs are wired with resistors to set inputs to a defined level (+ VCC or GND) or to limit the current.

  • Basics: Connect Raspberry Pi GPIO

GPIO input with push-button / switch and pull-up resistor

Raspberry Pi pull up resistor

The pullup principle pulls the GPIO input to the + VCC level with a pull-up resistor. The ground state of the input would then be “high” or “logical 1”. With a switch or pushbutton, the GPIO input is pulled or switched to ground (GND). That is, in the switched state, the input would have the state “Low” or “logical 0”.

GPIO input with push-button / switch and pull-down resistor

Raspberry Pi pull down resistor

The pull-down principle pulls the GPIO input with a pulldown resistor to ground (GND). The ground state of the input would then be “low” or “logical 0”. With a switch or pushbutton, the GPIO input was pulled to the level of + VCC. This means that in the switched state, the input would have the status “High” or “Logic 1”.

GPIO input with button / switch and cross resistance

Raspberry Pi cross resistance

Basically, the current in the switched state (push button / switch actuated) is limited only by the resistance of the internal components. In order to limit the current in the external wiring, an additional shunt resistor is often switched in front of the GPIO input.

Pull-up or pull-down resistor?
It is recommended to connect GPIO inputs with a pull-up or pull-down resistor. The question is, why is such a resistance necessary? And which principle should be used? So pullup or pulldown? And what size should these resistors have?

  • GPIO with pull up or pull down resistor?
Post Views: 498

Filed Under: Raspberry Pi Tagged With: Raspberry Pi GPIO

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Follow us

  • Facebook
  • Twitter
  • YouTube

Categories

  • algorithm
  • Android Ai coding
  • Android pentesting tools
  • Arduino
  • Artificial Intelligence
  • Books
  • ChatGPT Prompt
  • Darknet
  • database
  • General
  • Github Tools
  • Hacking
  • Kali Linux
  • Linux
  • Linux Commands
  • Network Administrator
  • Penetration Testing
  • Penetration Testing Tools
  • PowerShell
  • Raspberry Pi
  • resources
  • Review
  • Termux
  • Tutorials
  • Ubuntu
  • Uncategorized
  • Video Tutorials
  • vmware
  • WiFi Adapter
  • WiFi Pentesting
  • Wireless Router
  • Wireshark

Recent Posts

  • Shannon – The AI Pentesting Tool That Finds Real Exploits
  • Transforming Photos with ChatGPT Prompt : A Cinematic Double Exposure in a Post-Apocalyptic World
  • Stryker Android App: Your Mobile Pentesting Powerhouse
  • Alfa awus036ach review
  • Alfa AWUS1900 for Wireless Penetration Testing

Footer

Kalitut

Kalitut.com goal is to share the knowledge for free, help you find the best tools on the web and provides tutorials

Find us on social media

  • Facebook
  • Pinterest
  • Reddit
  • Twitter
  • YouTube

Copyright © 2026

  • Home
  • About us
  • Privacy Policy
  • Affiliate disclaimer