This example demonstrates a complete FM transmitter control system using:
Raspberry Pi Pico
┌───────────────────┐
│ │
┌─────┤ 3.3V (36) │
│ │ │
┌───────┼─────┤ GND (38) │
│ │ │ │
│ ┌───┼─────┤ GP0 (1) SDA │ ← I2C Bus
│ │ │ │ │
│ │ │ ┌───┤ GP1 (2) SCL │ ← I2C Bus
│ │ │ │ │ │
│ │ │ │ ┌─┤ GP2 (4) ENC_A │ ← Encoder A
│ │ │ │ │ │ │
│ │ │ │ │ ┌┤ GP3 (5) ENC_B │ ← Encoder B
│ │ │ │ │ ││ │
│ │ │ │ │ │┌┤ GP4 (6) ENC_BTN│ ← Encoder Button
│ │ │ │ │ │││ │
│ │ │ │ │ │││ GP16(21) CEN │ ← QN8066 Enable
│ │ │ │ │ │││ │
│ │ │ │ │ │││ │
│ │ │ │ │ │││ │
│ │ │ │ │ │││ │
│ │ │ │ │ │││ │
│ │ │ │ │ │├┘ │
│ │ │ │ │ ├┘ │
│ │ │ │ ├┘ │
│ │ │ ├┘ │
│ │ ├┘ │
│ │ │ │
│ │ │ │
│ │ │ ┌─────────────┐ │
│ │ └────┤ SDA VCC ├──────┘
│ │ │ │
│ └────────┤ SCL GND ├──┐
│ │ │ │
│ │ LCD16x2 │ │
│ │ I2C 0x27 │ │
│ └─────────────┘ │
│ │
│ │
│ ┌─────────────┐ │
│ ┌────┤ SDA VCC ├──────┼──┘
│ │ │ │ │
│ │ ┌──┤ SCL GND ├──────┼──┐
│ │ │ │ │ │ │
│ │ │ │ QN8066 │ │ │
│ │ │ │ │ │ │
│ │ │ │ CEN XCLK ├──────┼──┼──── 32.768kHz
│ │ │ │ │ │ │ Crystal
│ │ │ │ ALI RFO ├──────┼──┼──── Antenna
│ │ │ │ │ │ │
│ │ │ │ ARI │ │ │
│ │ │ └─────────────┘ │ │
│ │ │ │ │
│ │ └───────────────────────┘ │
│ └───────────────────────────┼──┘
│ │
│ │
│ ┌─────────────────────┐ │
│ │ Rotary Encoder │ │
│ │ │ │
├───┤ A │ │
│ │ │ │
├───┤ B │ │
│ │ │ │
├───┤ BTN │ │
│ │ │ │
└───┤ GND │ │
│ │ │
└─────────────────────┘ │
│
┌───────────────────────────────┘
│
│ Common Ground
└───────────────────────────────────
Raspberry Pi Pico | Component | Pin/Signal | Description |
---|---|---|---|
3.3V (Pin 36) | All modules | VCC | Power supply |
GND (Pin 38) | All modules | GND | Common ground |
GP0 (Pin 1) | I2C Bus | SDA | I2C Data |
GP1 (Pin 2) | I2C Bus | SCL | I2C Clock |
GP2 (Pin 4) | Encoder | A | Encoder channel A |
GP3 (Pin 5) | Encoder | B | Encoder channel B |
GP4 (Pin 6) | Encoder | Button | Push button |
GP16 (Pin 21) | QN8066 | CEN | Chip enable (optional) |
Install these libraries through Arduino IDE Library Manager:
This example can be extended with:
QN8066 Pico LCD Control Starting...
System ready!
Freq: 106.9 MHz | Power: 73 | Mode: Stereo | FSM: 10 | Audio: 45 mV
Freq: 107.5 MHz | Power: 73 | Mode: Stereo | FSM: 10 | Audio: 52 mV
Freq: 107.5 MHz | Power: 83 | Mode: Stereo | FSM: 10 | Audio: 52 mV
This example provides a complete, interactive FM transmitter control system with professional-grade user interface and monitoring capabilities.