Enable and verify Raspberry Pi I2C bus i2c-1 for 3.3V sensors
Enable i2c-1 on Raspberry Pi OS, wire 3.3V sensors to GPIO 2 and 3, and verify the bus with i2cdetect.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Enable i2c-1 on Raspberry Pi OS, wire 3.3V sensors to GPIO 2 and 3, and verify the bus with i2cdetect.
Legacy /sys/class/gpio GPIO is deprecated on Raspberry Pi OS Bookworm. Learn to detect chips, map BCM lines, and toggle GPIOs with gpiodetect, gpioinfo, gpioset, and gpioget.
A practical look at GPIO edge detection on Raspberry Pi—when to use sysfs, when to reach for libgpiod, and why debounce behavior changes between Pi 3 and Pi 4.
Software-toggled PWM on a Raspberry Pi jitters whenever Linux deschedules your process. Here's how the SoC's hardware PWM channels fix that, with a working sysfs example on GPIO 18 and the trade-offs to plan for.
Raspberry Pi GPIO pins use 3.3V logic and can be destroyed by 5V signals. Learn what that means, wire a safe first LED circuit, and handle 5V peripherals correctly.
A minimal three-step workflow to toggle GPIO pins from userspace, with pin muxing warnings, current limits, and cleanup patterns so you avoid export errors and hardware conflicts.