Reading the Internal Temperature Sensor on #BL602 and BL604 ... All shall be explained in this article
#Roblox also happily renders #PineDio Stack BL604's Internal Temperature ... Received via #TheThingsNetwork 🎉
#Grafana receives #PineDio Stack BL604's Internal Temperature from #TheThingsNetwork ... And renders the Temperature Chart correctly 🎉
Let's create a command to transmit #PineDio Stack BL604's Internal Temperature to #TheThingsNetwork
#BL602 Internal Temperature Sensor is now read as a Float ... And first reading is always correct! 🎉
Here's how we call "get_tsen_adc" to read #BL602 Internal Temperature Sensor as a Float (instead of Integer)
Let's copy "bl_tsen_adc_get" from #BL602 ADC HAL and fix the issues ... 1️⃣ Temperature is now returned as Float (not Integer) ... 2️⃣ Insert a delay during init to fix the first reading
Reading #BL602 Internal Temperature Sensor with "bl_tsen_adc_get" has 2 issues ... 1️⃣ First reading is always too low ... 2️⃣ Result is returned as Integer even though the reading is actually Float
#BL602 ADC HAL provides a helpful function for reading the Internal Temperature Sensor: "bl_tsen_adc_get"
https://github.com/lupyuen/bl_iot_sdk/blob/tsen/customer_app/pinedio_tsen/pinedio_tsen/demo.c#L1-L27
Reading the #BL602 Internal Temperature Sensor looks complicated ... But there's an easier way!
https://github.com/bouffalolab/bl_docs/tree/main/BL602_RM/en
From #BL602 Reference Manual: The Internal Temperature Sensor is accessed thru ADC
https://github.com/bouffalolab/bl_docs/tree/main/BL602_RM/en
Let's read the Internal Temperature Sensor on #BL602 and #BL604
https://github.com/lupyuen/bl_iot_sdk/tree/tsen/customer_app/pinedio_tsen
My first post on #Roblox DevForum 😬
https://devforum.roblox.com/t/iot-digital-twin-with-roblox-and-the-things-network/1502305
Fetching Uplink Messages from #TheThingsNetwork
https://lupyuen.github.io/articles/roblox?21#appendix-fetch-sensor-data-from-the-things-network
Here's how we store Uplink Messages in #TheThingsNetwork
https://lupyuen.github.io/articles/roblox?19#appendix-the-things-network-settings
IoT Techie and Educator / Apache NuttX PMC