LilyGO / TTGO-LORA32

ESP32-TTGO-T3
326 stars 100 forks source link

Inconsistent pin mapping #3

Open fedy0 opened 6 years ago

fedy0 commented 6 years ago

[1] Duplicated LoRa_MOSI, No LoRa_MISO [2] Is there OLED_RST or LORA_RST or BOTH wired to ESP32 PICO D4? [2] OLED (SDA, SCL) and other LoRa (IRQ/DI0) pin mapping are unclear due to the two new pull requests with different changes

Please update the pin out as soon as possible

kalon33 commented 6 years ago

@fedy0 I worked with the one from Bluejedi on TTN forum that was OK:

ttgo_lora32_v2 0 1

Hope that it helps

fedy0 commented 6 years ago

Thanks very much for the assistance. Another question please. Does it mean that LoRa DIO1 and DIO2 pins attached to esp32 should be unused when using LoRa communication?

kalon33 commented 6 years ago

If you want to use your board for LoRaWAN communication (using LMIC), you need to bridge LoRa_DIO2 to GPIO 32 and LoRaDIO1 to GPIO 33 as indicated earlier in the forum thread I linked, or your program will hang after sending a packet (as I experienced), or not work. OLED-SDA and OLED-SCL are perfectly usable in I2C, and I use it successfully with a BME280 sensor.

Don't hesitate to take some time to read the forum thread there https://www.thethingsnetwork.org/forum/t/big-esp32-sx127x-topic-part-2 there's really plently of info about the TTGO LORA32 V2.0 board from users.

fedy0 commented 6 years ago

@kalon33 thanks

But from the link and other sources like @hallard pull request on https://github.com/matthijskooijman/arduino-lmic provides a means to either use only DIO0 or no DIO pins for LoRaWAN stack.

And in this TTGO V2, are other DIO (DIO1 and DIO2) connected to gpio12 & 11?

I ask this because it was not stated clearly in the link you shared.

anthonykeane commented 6 years ago

https://www.thethingsnetwork.org/forum/t/big-esp32-sx127x-topic-part-2/11973

robsonos commented 5 years ago

SCL and LED_BUILTIN are wired to the same pin! That sucks.

joseluislucas commented 5 years ago

SCL and LED_BUILTIN are wired to the same pin! That sucks.

Why?

jinyistudio commented 5 years ago

Does it has other DIO,ADC for iot application ? I need one DO,one ADC.

Italque commented 5 years ago

If you want to use your board for LoRaWAN communication (using LMIC), you need to bridge LoRa_DIO2 to GPIO 32 and LoRaDIO1 to GPIO 33 as indicated earlier in the forum thread I linked, or your program will hang after sending a packet (as I experienced), or not work. OLED-SDA and OLED-SCL are perfectly usable in I2C, and I use it successfully with a BME280 sensor.

Don't hesitate to take some time to read the forum thread there https://www.thethingsnetwork.org/forum/t/big-esp32-sx127x-topic-part-2 there's really plently of info about the TTGO LORA32 V2.0 board from users.

Hi kalon33 and thanks for share this precious information, you save my day! Could you share more informations on how to use the TTGO LORA32 V2.0 with the BME280? I tried to make it work more than once but without success. Thanks in advance!