From 05b601dbd6aec562d252ba4439c83c484078056f Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sat, 23 Jul 2022 11:25:15 +0300 Subject: [PATCH] examples : add pinout info for the MCU examples --- examples/arduino-rx/README.md | 18 ++++++++++++++++++ examples/arduino-rx/arduino-rx.ino | 18 ++++++++++++++++++ examples/esp32-rx/README.md | 10 +++++----- examples/esp32-rx/esp32-rx.ino | 29 +++++++++++++++++++++++++++++ 4 files changed, 70 insertions(+), 5 deletions(-) diff --git a/examples/arduino-rx/README.md b/examples/arduino-rx/README.md index a97d359..2300cbf 100644 --- a/examples/arduino-rx/README.md +++ b/examples/arduino-rx/README.md @@ -9,6 +9,24 @@ The development board has a built-in microphone which makes this device very sui - OLED SSD1306 - Generic speaker +## Pinout for Arduino Nano RP2040 Connect + +### I2C Display (optional) + +| MCU | Display | +| ------------- | --------- | +| GND | GND | +| 3.3V | VCC / VDD | +| D18 / GPIO 12 | SDA | +| D19 / GPIO 13 | SCL | + +### Peripherals (optional) + +| MCU | Periph. | +| ------------- | ------- | +| D5 / GPIO 17 | Button | +| D10 / GPIO 5 | Speaker | + ![Sketch-Breadboard](fritzing-sketch_bb.png) ![Sketch-Photo](https://user-images.githubusercontent.com/1991296/177850326-e5fefde3-93ee-4cf9-8fa5-861eef9565f7.JPEG) diff --git a/examples/arduino-rx/arduino-rx.ino b/examples/arduino-rx/arduino-rx.ino index 0f4899e..8ac41de 100644 --- a/examples/arduino-rx/arduino-rx.ino +++ b/examples/arduino-rx/arduino-rx.ino @@ -26,6 +26,24 @@ // // Sketch: https://github.com/ggerganov/ggwave/tree/master/examples/arduino-rx // +// ## Pinout for Arduino Nano RP2040 Connect +// +// ### I2C Display (optional) +// +// | MCU | Display | +// | ------------- | --------- | +// | GND | GND | +// | 3.3V | VCC / VDD | +// | D18 / GPIO 12 | SDA | +// | D19 / GPIO 13 | SCL | +// +// ### Peripherals (optional) +// +// | MCU | Periph. | +// | ------------- | ------- | +// | D5 / GPIO 17 | Button | +// | D10 / GPIO 5 | Speaker | +// // Uncoment this line to enable SSD1306 display output //#define DISPLAY_OUTPUT 1 diff --git a/examples/esp32-rx/README.md b/examples/esp32-rx/README.md index d79187a..c2a5acd 100644 --- a/examples/esp32-rx/README.md +++ b/examples/esp32-rx/README.md @@ -22,15 +22,15 @@ The received messages are optionally displayed on the attached OLED display. ### Analog Microphone -| EPS32 | Mic | +| MCU | Mic | | ------- | --------- | | GND | GND | | 3.3V | VCC / VDD | | GPIO 35 | Out | -### Digital Microphone +### Digital (I2S) Microphone -| EPS32 | Mic | +| MCU | Mic | | ------- | ----------- | | GND | GND | | 3.3V | VCC / VDD | @@ -38,9 +38,9 @@ The received messages are optionally displayed on the attached OLED display. | GPIO 33 | Data / DOUT | | GPIO 25 | LRCL | -### I2C Display +### I2C Display (optional) -| EPS32 | Display | +| MCU | Display | | ------- | ----------- | | GND | GND | | 3.3V | VCC / VDD | diff --git a/examples/esp32-rx/esp32-rx.ino b/examples/esp32-rx/esp32-rx.ino index c764420..e645e8a 100644 --- a/examples/esp32-rx/esp32-rx.ino +++ b/examples/esp32-rx/esp32-rx.ino @@ -35,6 +35,35 @@ // // Sketch: https://github.com/ggerganov/ggwave/tree/master/examples/esp32-rx // +// ## Pinout +// +// ### Analog Microphone +// +// | MCU | Mic | +// | ------- | --------- | +// | GND | GND | +// | 3.3V | VCC / VDD | +// | GPIO 35 | Out | +// +// ### Digital (I2S) Microphone +// +// | MCU | Mic | +// | ------- | ----------- | +// | GND | GND | +// | 3.3V | VCC / VDD | +// | GPIO 26 | BCLK | +// | GPIO 33 | Data / DOUT | +// | GPIO 25 | LRCL | +// +// ### I2C Display (optional) +// +// | MCU | Display | +// | ------- | --------- | +// | GND | GND | +// | 3.3V | VCC / VDD | +// | GPIO 21 | SDA | +// | GPIO 22 | SCL | +// // Uncomment the line coresponding to your microhpone #define MIC_ANALOG