To use Raspberry Pi connect pins for switching a high-power load via a standard 5V relay module, you must route 5V power from Physical Pin 2 (VCC), Ground from Physical Pin 6 (GND), and a 3.3V logic signal from Physical Pin 11 (GPIO 17) to the relay's control pins. The relay then acts as an isolated switch for your external 12V or 120V load. Getting this wrong—specifically by feeding 5V back into a 3.3V GPIO pin or sharing ground paths incorrectly—will instantly brick your Pi's RP1 or BCM2711 silicon.
This walkthrough traces the exact physical wiring for a Raspberry Pi 4 Model B (compatible with Pi 5 logic levels) driving a Songle SRD-05VDC-SL-C 5V relay to control a 12V DC water pump.
Decoding the Raspberry Pi Connect Diagram Symbols
Before stripping wires, you need to translate the schematic symbols used in Pi wiring diagrams to the physical silkscreen on your relay module. Misinterpreting these is the leading cause of dead GPIO pins.
- VCC / 5V: Represents the unregulated 5V power rail from the Pi's USB-C input. On the relay, this powers the electromagnet coil.
- GND: The common ground reference (0V). This must be shared between the Pi and the relay coil to complete the control circuit.
- IN / Signal: The logic input. On the Pi, this outputs 3.3V when HIGH. The relay module's optocoupler or transistor driver interprets this 3.3V as a valid 'ON' trigger.
- COM (Common): The moving contact inside the relay. This is your 'source' connection for the high-power load.
- NO (Normally Open): The load terminal that connects to COM only when the Pi sends a HIGH signal.
- NC (Normally Closed): The load terminal connected to COM when the relay is off. We leave this unconnected for standard pump control.
Node-by-Node Wiring Trace: Source to Load
Follow this exact sequence using 22 AWG Dupont jumper wires for the low-voltage side and 16 AWG stranded wire for the 12V load side. Do not skip the ground isolation step.
- Node 1 (Pi 5V to Relay VCC): Connect a red jumper from the Raspberry Pi Physical Pin 2 (5V Power) to the relay module's
VCCterminal. This provides the ~150mA needed to energize the relay coil. - Node 2 (Pi GND to Relay GND): Connect a black jumper from the Raspberry Pi Physical Pin 6 (Ground) to the relay module's
GNDterminal. This completes the low-voltage control circuit. - Node 3 (Pi Logic to Relay IN): Connect a yellow jumper from Physical Pin 11 (GPIO 17 / BCM 17) to the relay module's
INterminal. - Node 4 (12V Source to Relay COM): Connect the positive (+) terminal of your 12V DC power supply to the relay's
COMscrew terminal. - Node 5 (Relay NO to 12V Load): Connect the relay's
NOscrew terminal to the positive (+) input of your 12V water pump. - Node 6 (The Ground Path Return): Connect the negative (-) terminal of your 12V power supply directly to the negative (-) input of the 12V water pump.
Raspberry Pi GPIO Terminal & Pin Mapping Table
The Raspberry Pi 40-pin header can be confusing because physical pin numbers do not match the Broadcom (BCM) GPIO numbers used in Python scripts. Use this spec sheet to verify your physical connections against your code.
| Physical Pin | BCM GPIO | Pin Name | Wire Color | Function in this Circuit |
|---|---|---|---|---|
| 2 | N/A | 5V Power | Red | Powers the relay coil (VCC) |
| 6 | N/A | Ground | Black | Completes relay coil circuit (GND) |
| 11 | 17 | GPIO 17 | Yellow | 3.3V Logic trigger (IN) |
| 14 | N/A | Ground | None | Unused (Alternative GND reference) |
| 17 | N/A | 3V3 Power | None | Unused (Do NOT use for 5V relay VCC) |
For a comprehensive, interactive map of every pin on the header, bookmark the community-standard Raspberry Pi Pinout diagram. It remains the most reliable visual reference for avoiding the 5V/3.3V pin mix-ups that kill boards.
Verifying Your Connections with a Multimeter
Before applying power to the Pi or the 12V supply, grab a digital multimeter (DMM) like a Fluke 117 or Brymen BM235 and run these three verification checks.
1. The Dead-Short Check (Continuity Mode)
Set your DMM to continuity (the diode/sound wave symbol). Place the red probe on Physical Pin 2 (5V) and the black probe on Physical Pin 6 (GND). The meter should read 'OL' (Open Loop) or show no beep. If it beeps, you have a short on your relay module or a misplaced wire. Applying power now will trip the Pi's polyfuse or fry the PMIC.
2. The Logic Voltage Check (DC Voltage Mode)
Boot the Pi and run a quick Python script to set GPIO 17 HIGH. Set your DMM to DC Voltage. Place the black probe on Pin 6 (GND) and the red probe on Pin 11 (GPIO 17). You must read between 3.2V and 3.4V. If you read 5V, your wire is on the wrong pin (likely Pin 2 or 4), and you are about to feed 5V into a 3.3V-only logic input when the script switches it to an input state.
3. The Load Isolation Check (Resistance Mode)
With the 12V power supply disconnected, set the DMM to resistance (Ohms). Measure across the 12V pump's positive and negative terminals. You should see a low resistance (typically 2 to 15 ohms for a small DC motor). Now, measure between the pump's negative terminal and the Pi's Physical Pin 6 (GND). It must read 'OL'. This confirms your 12V ground is properly isolated from the Pi's logic ground.
Frequently Asked Questions
How to use Raspberry Pi connect pins without burning out the 3.3V logic?
The Raspberry Pi's GPIO pins are strictly 3.3V tolerant. If you are using a raw relay (not a module with a built-in optocoupler or driver transistor), you cannot drive it directly from the Pi. The coil requires 5V and draws ~70mA, which exceeds the Pi's 16mA per-pin limit and 50mA total bank limit. Always use a relay module with an integrated driver circuit (like the common blue 1-channel 5V modules with a JD-VCC jumper) or build a buffer using a 2N2222 NPN transistor and a 1kΩ base resistor.
Why is my Raspberry Pi connection dropping when the relay clicks?
This is a classic brownout caused by inrush current or back-EMF. When the relay coil de-energizes, it generates a voltage spike. If your relay module lacks a flyback diode (the small black cylinder across the coil pins), this spike bleeds into the Pi's 5V rail, causing the PMIC to reset the board. Furthermore, if your Pi power supply is a cheap 5V/2.5A phone charger, the sudden 150mA draw of the relay coil can drop the rail below 4.63V, triggering the Pi's low-voltage warning. Upgrade to the official 27W USB-C PD power supply and ensure your relay module has a flyback diode installed.
How to use Raspberry Pi Connect software alongside physical GPIO wiring?
'Raspberry Pi Connect' is also the name of Raspberry Pi Ltd's official remote access service (currently in beta/rollout) that allows secure remote shell and screen sharing without port forwarding. Using this software service does not interfere with physical GPIO wiring. However, if you are remotely triggering a GPIO script via the Connect service to activate a relay that controls a high-power load (like a heater or motor), always implement a software watchdog and a physical hardware timeout. If the Pi loses internet connectivity while the relay is latched ON, a physical 555-timer-based watchdog or a smart plug on the AC side ensures the load doesn't run indefinitely.






