Skip to content

janvrska/meteo-sensor-v2

Repository files navigation

Meteo sensor v2

Custom PCB project of LoraWAN weather sensor

Components :

Software:

This project assumes, that credentials were configured by Serial Lora E5 AT Commands (DevEUI, AppKey) before flashing the project code.

Flow:

  1. Should be in a range of some nearest LoraWAN Gateway (can look on TTNMapper)
  2. Power on the device with 3.3 V (2x AA or 2x AAA batteries) connected to VCC and GND pins (look at board schema, SV1 blue line GND down, red line VCC)
  3. The device will try to OTA join configured LoraWAN network
  4. Broadcast data packet (temperature, humidity, voltage)
  5. 2.5 minutes sleeping (configured for DR5, spread factor 7, make sure to not violate ETSI regulations or TTN fair access policy. Should be calculated before use)
  6. Back to step 4.
stateDiagram
   [*] --> PowerOn
   PowerOn --> Join
   Join --> Measure
   Measure --> SendPacket
   SendPacket --> Sleep
   Sleep --> Measure
Loading

Low power (250 µA measured in sleep)

  • use AT+DR=DR5 (will work only if a gateway is close or open area without a lot of RF noise)
  • use AT+POWER=2 (same above)
  • other AT commands already used in code

TTN

Use this payload formatter for decoding. Weather data can be later processed with some TTN integration options (MQTT, webhooks...) ttn

From personal testing, the sensor could transmit for 4 months on 2x AA batteries with default settings (DR5, AT+POWER=2)

Photos of setup:

Soldered by hand and hot air gun