🛠 Suder le header 40 broches et faire clignoter une LED

Raspberry Pi Zero W (2017) — Board Sheet · debutant · Schéma : IMG-zero-w-debutant-2-soudure-header-gpio-premier-clignotement.svg — Zero W avec header 40 broches à souder, plan de câblage broche 11 (GPIO17) → résistance 330 Ω → LED → broche 14 (GND).

Objectives

Solder the 40-pin header (supplied unmounted on the Zero W), then light up an LED via GPIO17 using gpiozero.

Hardware

Steps

  1. Place the header on the component side, aligning pin 1 with the two square pads near the USB/HDMI connectors; solder diagonally to avoid solder bridges.
  2. Wiring: pin 11 = GPIO17 → 330 Ω resistor → LED anode; cathode → pin 14 = GND. The logic level is 3.3 V, with a maximum of 16 mA per pin and 50 mA total for the entire header — the Zero W has no ADC/DAC.
  3. Install the library: sudo apt install python3-gpiozero, then:
from gpiozero import LED
from time import sleep
led = LED(17)   # broche physique 11
while True:
    led.toggle
    sleep(0.5)

Verification

gpioinfo (gpiod package) lists gpiochip0; the LED blinks once per second. Stop with Ctrl-C.

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials