sh123 / esp32_loradv

ESP32 based Codec2/OPUS DV hobby UHF handheld transceiver aka walkie-talkie
GNU General Public License v2.0
37 stars 6 forks source link

Connection diagram #13

Closed uw5elk closed 4 months ago

uw5elk commented 6 months ago

Hello. Is there a diagram for connecting all the modules to the main board?

uw5elk commented 6 months ago

In particular, to which pins to connect the display?

sh123 commented 4 months ago

@uw5elk, ssd1306 display library is using Wire module, which uses esp32 SCL (GPIO22) and SDA (GPIO21) pinouts, other pinouts are numbered in include/config.h file as

// lora
#define LORA_RST                    26
#define LORA_IRQ                    12
#define CFG_LORA_PIN_SS             SS
#define CFG_LORA_PIN_RST            LORA_RST
#define CFG_LORA_PIN_A              LORA_IRQ    // (sx127x - dio0, sx126x/sx128x - dio1)
#define CFG_LORA_PIN_B              14          // (sx127x - dio1, sx126x/sx128x - busy)
#define CFG_LORA_PIN_RXEN           32          // (sx127x - unused, sx126x - RXEN pin number)
#define CFG_LORA_PIN_TXEN           33          // (sx127x - unused, sx126x - TXEN pin number)

// ptt button
#define CFG_PTT_BTN_PIN             39          // pin for ptt button

// rotary encoder
#define CFG_ENCODER_PIN_A           17
#define CFG_ENCODER_PIN_B           16
#define CFG_ENCODER_PIN_BTN         34

// i2s speaker
#define CFG_AUDIO_SPK_PIN_BCLK      26
#define CFG_AUDIO_SPK_PIN_LRC       13
#define CFG_AUDIO_SPK_PIN_DIN       25

// i2s mic
#define CFG_AUDIO_MIC_PIN_SD        2
#define CFG_AUDIO_MIC_PIN_WS        15
#define CFG_AUDIO_MIC_PIN_SCK       4

// battery monitor
#define CFG_AUDIO_BATTERY_MON_PIN   36

image

uw5elk commented 4 months ago

Дякую