Posts

Showing posts with the label Raspberry Pi

Can I Connect 5V to a 3.3V Pin? Logic Levels and Level Shifters

Image
Series navigation: Episode 1: The Roadmap · Episode 11 The problem: A 5 V module and a 3.3 V controller have matching signal names, but direct wiring may fail or damage an input. The goal: Check voltage limits and logic thresholds in both directions. The result: A decision process for direct connection, dividers, buffers, and level translators. AI-generated illustration of a mixed-voltage workbench. Verify every connection against the exact device data sheets. The connector fit, so I almost connected it The peripheral board had VCC , GND , TX , and RX . The microcontroller had pins with the same names. One board used 5 V and the other used 3.3 V. Matching names describe functions, not electrical compatibility. Before joining the wires, I needed answers to two separate questions: Will a HIGH output be recognized as HIGH by the receiver? Can the receiver safely tolerate the maximum voltage? Passing the first test does not guarantee the second. Four data-sheet value...

Why a GPIO Input Changes by Itself: Floating Pins, Pull-Ups, and Pull-Downs

Image
Series navigation: Episode 1: The Roadmap · Episode 9: SPI LCD Debugging · Episode 10 The problem: A button input changes even when nobody presses it. The goal: Give every digital input a defined idle state. The result: A practical wiring and debugging checklist for pull resistors, polarity, noise, and shared ground. AI-generated illustration of a low-voltage GPIO debugging setup; it is not a record of a physical measurement. The button worked—until my hand moved near it I connected a pushbutton to a microcontroller, read the pin, and expected either HIGH or LOW . Instead, the value changed randomly. Touching a wire sometimes changed it again. The code was deterministic. The voltage at the input was not. A digital input is not automatically zero when nothing drives it. Its high impedance makes it easy to sense, but also allows leakage, electric fields, long wires, and switching signals nearby to move the voltage across the logic threshold. This is a floating input ....

How to Build and Measure a Voltage Divider: Why the Output Drops Under Load

Image
Series navigation: Episode 1: The Roadmap · Episode 2: Digital Multimeter and LED Circuit · Episode 3 What you will build: A 4.5 V voltage divider using two 10 kΩ resistors. What you will observe: About 2.25 V with no load and about 1.50 V after adding a 10 kΩ load. What you will understand: A connected device becomes part of the circuit; it does not merely receive the calculated voltage. Reader guide Indicator Details Article type Guided circuit and measurement tutorial Reading time About 11 minutes Difficulty 2/5 — Beginner Hands-on time 25–40 minutes Estimated cost A few resistors if you already have the tools from the previous guide Prerequisites Basic digital multimeter operation and Ohm's law Safety level Extra-low-voltage DC only; maximum 4.5 V in this procedure Reader outcome Calculate and explain both unloaded and loaded voltage-divider output The voltage was correct—until I connected something I first met voltage ...