Thursday, 12 February 2026

Making a Heltec CubeCell Capsule based The Things Stack LoRaWAN sensor

 (Thurs 12th Feb 2026 16:10) What devices have we got?

A quick check shows 4 devices.

CubeCell Capsule devices


What is the status of each? I have a development interface board which allows me to check for any serial output and to do Arduino IDE development.

The one plugged into the interface board is labelled slan-008 and its serial output shows:

16:16:56.174 -> Copyright @2019-2020 Heltec Automation.All rights reserved.
16:16:56.505 -> 
16:16:56.505 -> 
16:16:56.505 -> Sketch: BME680_TTN_V3_slan_008_v1_3
16:16:56.505 -> Version: v1.3 Sat 7th Sept 2024 16:43
16:16:56.505 -> Board: CubeCell-Capsule (HTCC-AC0X)
16:16:56.505 -> 
16:16:56.505 -> 
16:16:56.505 -> AT Rev 1.3
16:16:56.505 -> +AutoLPM=1
16:16:56.505 -> 
16:16:56.505 -> +LORAWAN=1
16:16:56.505 -> 
16:16:56.505 -> +KeepNet=0
16:16:56.505 -> +OTAA=1
16:16:56.505 -> +Class=A
16:16:56.505 -> +ADR=1
16:16:56.505 -> +IsTxConfirmed=1
16:16:56.505 -> +AppPort=8
16:16:56.505 -> +DutyCycle=1740000
16:16:56.538 -> +ConfirmedNbTrials=4
16:16:56.538 -> +ChMask=0000000000000000000000FF
16:16:56.538 -> +DevEui=xxxxxxxxxxxxxxxx(For OTAA Mode)
16:16:56.538 -> +AppEui=xxxxxxxxxxxxxxxx(For OTAA Mode)
16:16:56.538 -> +AppKey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(For OTAA Mode)
16:16:56.538 -> +NwkSKey=00000000000000000000000000000000(For ABP Mode)
16:16:56.538 -> +AppSKey=00000000000000000000000000000000(For ABP Mode)
16:16:56.538 -> +DevAddr=00000000(For ABP Mode)
16:16:56.538 -> 
16:16:56.538 -> 
16:16:56.538 -> LoRaWAN EU868 Class A start!
16:16:56.571 -> 
16:16:56.671 -> joining...joined
16:17:03.012 -> Could not find a valid BME680 sensor, check wiring!




So what next? Let's find the BME680_TTN_V3_slan_008_v1_3.ino sketch. Cannot find sketch or entry on Heltec site for these devices (only V3). But found this:

https://iotci.co.uk/product/heltec-lora-node-asr6502-capsule-sensors-cubecell-sensor-for-arduino-lora-iot-waterproof-ip67-soalr-panel/

So lets our existing code and extend it to support more than just the BME680 sensor!

(17:07) That's done and code runs but just reports voltage on the serial line. So I will commit this code to GitHub as version 1.15

Looking at what capsule sensors I have I find four:





The BME680 is know and can be added to slan-008 (good test to reverting code to support BME680 in secrets.h file)


Fortunately, the above website lists all the capsule sensors:


Capsule sensors



So what code is needed?












No comments:

Post a Comment