🛠 Premier démarrage headless de la Zero W (Wi-Fi + SSH)
Objectives
Flash Raspberry Pi OS, preconfigure Wi-Fi and SSH with Raspberry Pi Imager, then boot without a screen or keyboard (headless).
Hardware
- 1 Raspberry Pi Zero W (BCM2835 1 GHz, 512 MB)
- 1 microSD card 8 GB min. + reader
- 1 power supply 5 V / 1.2 A (official recommendation) + micro-USB cable
Steps
- In Raspberry Pi Imager, choose Raspberry Pi OS Lite (32-bit): the Zero W's ARMv6 core only runs in 32-bit (armhf).
- Custom settings: hostname
zerow, SSH enabled, credentials, Wi-Fi and WLAN country — the regulatory domain determines channels and power. - Write the card. Plan B: an empty
sshfile at the root of the boot partition also reactivates SSH. - Power via the PWR port (the other port is the OTG data port). The ACT LED (GPIO47, active-low) blinks during boot then settles once Wi-Fi is connected.
- From the PC:
ssh pi@zerow.local, thennmcli -t -f IP4.ADDRESS dev show wlan0(DHCP lease).
Verification
uname -m returns armv6l; vcgencmd measure_temp stays well below the throttling threshold (80–85 °C).
Common Errors
- Plugging the power supply into the OTG data port: nothing boots.
- Forgetting the WLAN country: forbidden 2.4 GHz channels or reduced power.
- No under-voltage detection on the Zero range: a weak power supply corrupts the SD card without kernel warning.
Other tutorials for this board
- Suder le header 40 broches et faire clignoter une LED
- Se connecter au Wi-Fi en ligne de commande (nmcli)
- Pi-hole : bloqueur de pub DNS sur Zero W
- Gadget USB : Ethernet sur le port OTG + relais Wi-Fi
- Balise BLE : diffuser un beacon avec le CYW43438
- Nœud capteur autonome sur batterie : énergie et fiabilité
Code examples for this board
clignotante.pyPythonbouton-gpio.pyPythoncapteur-i2c.shBashsurveillance-temperature.shBashcapteur-dht11.pyPythonservo-pwm-sysfs.shBash