Skip to content

Arduino-ESP32 and BME680 on The Things Network Example using TTGO LoRa32 V1 (ESP32+SX1276) board

License

Notifications You must be signed in to change notification settings

bschapendonk/arduino-esp32-bme680-ttn-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino-ESP32 and BME680 on The Things Network Example using TTGO LoRa32 V1 (ESP32+SX1276) board

Usage

  1. Create a ttn_secrets.h containing your TTN secrets.
#include <Arduino.h>
#include <lmic.h>

static const u1_t PROGMEM APPEUI[8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
static const u1_t PROGMEM DEVEUI[8] = { 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
static const u1_t PROGMEM APPKEY[16] = { 0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C };
  1. Set the correct pins in main.ino.
const lmic_pinmap lmic_pins = {
    .nss = 18,
    .rxtx = LMIC_UNUSED_PIN,
    .rst = 14,
    .dio = {26, 33, 32},
};
SPI.begin(5, 19, 27, 18);

main.ino is based on the following example https://github.com/matthijskooijman/arduino-lmic/blob/master/examples/ttn-otaa/ttn-otaa.ino

Copy & Pasted together using

Hardware

  • TTGO LoRa32 V1 (ESP32+SX1276)
  • BME680

alt text

About

Arduino-ESP32 and BME680 on The Things Network Example using TTGO LoRa32 V1 (ESP32+SX1276) board

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages