joba-1 / STM32L0TTN

BME280 sensor data to TTN (ATTiny84TTN for STM32L011)
3 stars 0 forks source link
battery bme280 iot lorawan sensor stm32 ttn

STM32L0TTN

Send BME280 data and voltage to TTN with STM32L0

Build

Wiring

connect Gnd of all components

STM32L011

Not checked without, but generally recommended to use a small ceramic (~10nF) and big electrolyt condensator (~10µF) between + and - near STM pins

image

BME280

RFM95W

RFM95W pin labels for reuse of ESP32 adapter breadboard (print with 600dpi) image

Serial

Rx of a usb to serial converter sends at 115200. I use this command (serial port name ttyUSB_ser_red is defined in my /etc/udev/rules.d) pio device monitor -p /dev/ttyUSB_ser_red -b 115200

LED

can be used without resistor. I use 1kOhm to save battery

References

Good resource for STM32 is Stefan Frings He has links to reference, datasheet, errata and more. E.g.:

Power Info Bits

Status

Works fine. Power consumption much lower than with my similar ATTiny84 board

Bildschirmfoto von 2021-08-20 11-51-18

TTN migrated from V2 to V3. After they reactivated the device id ranges of the old network I could register the devices with the same devId, AppsKey and NwsKey. After ~2 weeks the devices started showing up in the console -> code works unchanged with V3! Config example in this post: https://www.thethingsnetwork.org/forum/t/migrate-old-abp-device-to-v3

Done

Not needed. by far the most power is consumed by sending. These tasks are not relevant

Todo