A C compiler like that found in the Arduino IDE can short circuit?????? Read on…. What do you think the output of String g is at each stage?? String g = “no”; int i = 10; i > 10 && Read More
Arduino Tutorial: Protocol Buffers using Messages and Strings
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
Make your state variables survive (unexpected) reboots
Reset is a real PITA… We all know how often an ESP8266 project can get a little messy if our beloved ESP does an unexpected reboot. Reasons for that can be power supply issues oder watchdog errors or even other 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