Flipper Zero GPIO: Reading Sensors and Controlling LEDs
Hands-on GPIO projects that work with the Flipper as a standalone microcontroller platform.
Project 1 โ Blink an LED
Parts: LED, 330ฮฉ resistor
Wiring:
- Flipper GPIO pin (e.g., PA7) โ 330ฮฉ resistor โ LED anode (+)
- LED cathode (-) โ GND (Pin 2)
In Flipper: Apps โ GPIO โ GPIO Control โ Toggle PA7
You should see the LED blink with each toggle.
Project 2 โ Read a Button
Parts: Push button, wire
Wiring:
- One button leg โ GPIO pin (e.g., PA4)
- Other button leg โ GND
Enable internal pull-up for the pin in the GPIO app. Read: pin is HIGH when button not pressed, LOW when pressed.
Project 3 โ DHT11 Temperature Sensor
Parts: DHT11 or DHT22 temperature/humidity sensor
Wiring:
- VCC โ 3.3V (Pin 3)
- GND โ GND (Pin 2)
- DATA โ PA4
App: Search "DHT" in the Flipper App Catalog โ community apps exist for this sensor.
Project 4 โ Control a Relay
Parts: 3.3V-compatible relay module
Wiring:
- IN โ GPIO pin
- VCC โ 5V (Pin 1, requires USB power)
- GND โ GND
Toggle GPIO pin = toggle relay. Use to control mains-powered devices (with appropriate precautions).
Project 5 โ I2C OLED Display
Parts: SSD1306 128ร32 or 128ร64 OLED
Wiring:
- SCL โ PC0
- SDA โ PC1
- VCC โ 3.3V
- GND โ GND
App: SSD1306 app in community firmware (Momentum includes it). Display custom text or sensor data.
Development Tips
- Always use series resistors on GPIO output pins (100โ330ฮฉ to LEDs)
- Never exceed 3.3V on input pins
- Current limit: Each GPIO pin max 5mA; total GPIO max ~50mA
- Test connections with a multimeter before powering up