- Joined
- Aug 11, 2018
- Messages
- 677
- Reaction score
- 1,121
Either configuration can be valid, as long as the internal pull-up/pull-down is set correctly.Thanks, makes sense, feed from 3.3v rail and then tie it into an open GPIO port. Need to figure out how I want to add it to the hat.
Thanks for the help as usual :)
I found this old schematic for wiring in float switches, can someone explain the difference?
https://www.reef2reef.com/threads/r...-on-raspberry-pi.289256/page-356#post-5312272
It looks like it was designed for an older rpi since the diagram is 26 pins. I'm not sure if the older pis had a different default pin states.
This looks like it is not expecting to use the internal pull up or pull down resistors. The 10k resistor is a pull up resistor to provide a default state when the switch is open. The 1k serves as the current limit resistor (can also protect against accidentally setting GPIO 18 as a high output if the switch is also closed).
