Read Temperature on an ESP32 using the HTU21D-sensor

The HTU21D is a popular and affordable sensor for measuring both temperature and humidity with a microcontroller. While there are many libraries for interacting with the sensor in the arduino-ecosystem, at the time of writing this, I didn’t find a good library to support the sensor with ESP-IDF while utilizing FreeRTOS. So here is a little write-up about how I implemented a small custom driver for the HTU21D. First things first: The specification....

November 2, 2022

Url Decode on a Microcontroller

On a recent IoT-Project I did, when working with the ESP32 and the associated WiFi-Chip, I found myself struggling to correctly decode and interpret the submitted URL, especially the URL-parameters. To make lives easier, I decided to write a quick post about how I decode and interpret URLs on an ESP32 in my projects. First, we’ll define the header file and the API we want to expose: // decode.h #include <string....

August 21, 2022