Thank you for replying.Re: "the buttons? Should those have resistors added when they are connected to the GPIO pins?"
No resistor needed if the button is connected across a GPIO and ground (GND). In the software we set a "pull-up" (internal resistor) so the GPIO reads high (3V3) until the button is pressed when it goes to zero (0v). When we release the button the GPIO goes high again.
Sometimes we need "debounce" on the GPIO.
And see 2.5 Button in gpiozero https://gpiozero.readthedocs.io/en/stable/recipes.html
So, you mean I can wire up the buttons now (one lead to the GPIO and one to the ground), and worry about the “pull up” (internal resistor) in the code later? If so, that’s good to know.
The reason I’m so puzzled by this is because the Raspberry Pi tutorial kit I bought has a project where you power an LED by pushing a button. The LED requires a 220 ohm resistor, but the button needs two 10k ohm resistors attached to it.
Statistics: Posted by Michelle66 — Wed Aug 14, 2024 1:21 pm