WiringBeginner-friendly

5 Ways People Kill Their Raspberry Pi's GPIO Pins

None of these mistakes are exotic. They're the ordinary, easy-to-make wiring errors that quietly cook a GPIO pin — sometimes the whole board — and they show up in forums constantly. Here's what actually causes it, and how to avoid every one of them.

Ad space

1. Feeding a 5V signal into a 3.3V-only input

This is the single most common way to damage a Pi. The GPIO pins are strictly 3.3V logic — unlike an Arduino Uno, which tolerates 5V natively. A lot of budget sensor modules (ultrasonic distance sensors, some PIR motion sensors, some relay boards) output a 5V signal on their data or "OUT" pin. Wire that straight into a Pi GPIO and you're overvolting the input every single time it triggers.

The classic offender is the HC-SR04 ultrasonic sensor — it needs 5V to power itself, but its Echo pin also outputs at 5V. Left unprotected, that will degrade the GPIO pin over repeated use, and it can fail outright.

Fix: put a simple voltage divider (a 1kΩ and a 2kΩ resistor in series, tapped in the middle) on any 5V signal line before it reaches a GPIO pin. It's two resistors and five minutes of wiring. A logic-level converter board does the same job if you'd rather not do the maths.

2. Driving an LED with no resistor

A GPIO pin can only safely source a small amount of current — roughly 16mA per pin is the commonly cited safe limit, well under the 3.3V rail's actual capacity. An LED with no resistor in the circuit will try to pull far more than that, which either kills the LED, the pin, or both.

A basic 330Ω resistor in series with a standard LED is enough for most everyday use. It's the cheapest insurance you'll ever buy for a project.

3. Powering a motor or servo straight from a GPIO pin, or even from the 5V rail

Motors and servos draw current in sudden spikes, especially on startup or when they change direction. A GPIO pin can't supply that current at all — you should only ever use a pin to send a signal to a motor driver or ESC, never to power the motor directly.

Less obvious: even the Pi's 5V power pins aren't a great source for a servo under load. A sudden current draw can brown out the whole board — you'll see it reboot or the SD card corrupt for no obvious reason. Power motors and servos from a separate, appropriately rated supply, and just share a common ground with the Pi.

4. Shorting 3.3V and 5V together on the header

It sounds obvious written down, but it's an easy slip on a breadboard — a stray jumper wire bridging the 3.3V rail and 5V rail, or a component straddling both by accident. This doesn't just risk the component; it can push 5V back into the 3.3V rail that feeds the Pi's own logic.

Habit worth building: before powering up, trace every wire on your breadboard with your finger, from pin to component and back. It feels slow. It's much faster than debugging a bricked Pi.

5. Hot-plugging modules while the Pi is powered

Plugging or unplugging sensors, displays, or HATs while the Pi is running is asking for a brief short as pins make and break contact in the wrong order. It doesn't always cause a problem — which is exactly why people keep doing it — but when it does, it's usually not obvious what caused it.

Simple rule: power down (or at minimum, sudo shutdown now and wait for the green light to stop) before you change any wiring.

Ad space

Plan your wiring before you build

A good chunk of these mistakes happen because people wire as they go, rather than planning pin usage up front. PinTinker flags voltage issues like the HC-SR04's Echo pin automatically, before you've plugged anything in.

The underlying skill here is reading the numbers before you wire: how to read a datasheet.

Gear that helps

A cheap multimeter is the best $15–25 you can spend before starting GPIO projects (see the full bench buying guide for what else is worth it) — checking continuity and voltage before power-on catches most of the mistakes above. A basic multimeter and a breadboard jumper wire kit cover you for most beginner projects.