Skip to content

C++ Raspberry Pi Pico template project for wireless communication with a small display to show received messages.

Notifications You must be signed in to change notification settings

jiinurppa/nrf24_ssd1306

Repository files navigation

nrf24_ssd1306

C++ Raspberry Pi Pico template project for wireless communication with a small display to show received messages.

Components

Functionality

  1. Boot to programming mode for code upload (optional with enable_programming_mode or resetting with BOOTSEL pressed, see Annoyances #2)
  2. Set dormant power mode
  3. Wake from dormant power mode when wireless module sets IRQ pin LOW
  4. Read message from wireless module
  5. Respond to !PING message (if sent) with !PONG
  6. Show received message on OLED display
  7. Go to #2 (loop)

Functionality demonstration

Wiring

Wiring schematic

Picoprobe GP5 / UART1 RX connection is only required if enable_debug_logging = true

Setup

Required repositories:

  • pico-sdk repo
  • pico-extras (for pico/sleep.h) repo

RF24 library is added as a submodule repo & documentation

Files that might require path tweaks:

  • .vscode\launch.json
  • .vscode\c_cpp_properties.json

Annoyances

  1. Powering from a USB power bank turns off power after a few seconds (current draw too low?). USB charger works fine.
  2. Picoprobe can't wake Pico from dormant power mode (reset required for code upload)
  3. Debugging in dormant power mode keeps breaking at main

About

C++ Raspberry Pi Pico template project for wireless communication with a small display to show received messages.

Topics

Resources

Stars

Watchers

Forks