Introduction In this tutorial we will check how to use strings in our protobuf messages, using Nanopb and the Arduino core, running both on the ESP32 and on the ESP8266. Please check the previous tutorial for a detailed explanation on Read More
Arduino Tutorial: Protocol Buffers
Introduction In this tutorial we will learn how to get started using Protocol Buffers with the Arduino core. In this introductory example, we will check how to declare a message type and how to encode it. This tutorial was tested Read More
Arduino Tutorial: Using the TRACE macro
Introduction In this tutorial we will learn how to use the TRACE macro of the ArduinoTrace library to help debugging our programs. This library can be downloaded from the Arduino IDE library manager, as explained in more detail in this Read More
Arduino Tutorial: Debugging with the ArduinoTrace library
Introduction In this tutorial we will learn how to get started using ArduinoTrace, a tracing library that is aimed at debugging Arduino programs. This library was created by Benoît Blanchon, which is also the author of ArduinoJson, an awesome JSON Read More
Arduino Tutorial: Printing numbers to serial in different bases
Introduction In this tutorial, we will check how we can print numbers to the serial port using different bases, more specifically in binary, octal and hexadecimal. The code we are going to see below will be very short and simple Read More
ESP32 Arduino Tutorial: Alarm with PIR motion sensor and buzzer
Introduction In this esp32 tutorial we will check how to create a very simple alarm system with a buzzer and a PIR motion sensor. We will be using the Arduino core, running on the ESP32. Basically, when motion is detected Read More
ESP32 Arduino Tutorial: PIR motion sensor and interrupts
Introduction In this tutorial we will check how to interact with a PIR motion sensor using an interrupt based approach, using the Arduino core running on the ESP32. In the previous tutorial, we covered the basics on how to interact Read More
Raspberry Pi 3 Flask Tutorial: Receiving HTTP POST Request from ESP32
Introduction In this tutorial we will check how to setup a simple Flask server on the Raspberry Pi and send HTTP POST requests to it from the ESP32. Then, we will access the body of the request on the Raspberry Read More
ESP32 Arduino tutorial: Getting humidity measurements from a DHT22 sensor
Introduction In this esp32 tutorial, we will check how we can get humidity measurements from a DHT22 sensor, with the Arduino core running on the ESP32. The DHT22 is a temperature and humidity sensor and you can check on the previous tutorial how Read More
ESP32 Arduino: DHT22 Minimum Sampling Period
Introduction In this tutorial we will check how to get the minimum sampling period of the DHT22 and how to use it to make some temperature measurements without crossing the maximum sampling rate the sensor suports. We are going to Read More