In this tutorial we will check how to mount a FAT file system on the ESP32, using the Arduino core. The tests were performed using a DFRobot’s ESP32 module integrated in a ESP32 development board. Introduction In this tutorial we will check how to mount a FAT file system on the ESP32, using the Arduino core. Under the …
ESP32 Arduino SPIFFS: testing if file exists
In this tutorial we will learn how to check if a file exists in the ESP32 SPIFFS file system, using the name of the file we want to test. The tests were performed using a DFRobot’s ESP32 module integrated in a ESP32 development board. Introduction In this tutorial we will learn how to check if a file exists in …
Continue reading "ESP32 Arduino SPIFFS: testing if file exists"
ESP32 web server: template processing when serving HTML from file system
In this tutorial we will learn how to use placeholders to replace values at run time in a HTML file served from the ESP32 file system. We will be using the ESP32 async web server library and the Arduino core. The tests shown here were performed using a DFRobot’s ESP32 module integrated in a ESP32 development board. Introduction In …
Continue reading "ESP32 web server: template processing when serving HTML from file system"
ESP32 HTTP web server: Serving external JavaScript file
In this tutorial we will learn how to serve an external JavaScript file to be referenced by a HTML file, using the ESP32. The ESP32 will be running the Arduino core and the HTTP async web server libraries. The tests were performed using a DFRobot’s ESP32 module integrated in a ESP32 development board. Introduction In this tutorial we will …
Continue reading "ESP32 HTTP web server: Serving external JavaScript file"
ESP32 Arduino web server: Serving external CSS file
In this tutorial we will check how to serve an external CSS file, to be included by an HTML file. This will be implemented on the ESP32 running the Arduino core and using the HTTP async web server libraries. The tests were performed using a DFRobot’s ESP32 module integrated in a ESP32 development board. Introduction In this tutorial we …
Continue reading "ESP32 Arduino web server: Serving external CSS file"
ESP32 Arduino: Getting DHT22 sensor measurements with interrupts
In this tutorial we will check how to obtain temperature measurements from a DHT22 sesnor using the ESP32, the Arduino core and timer interrupts. The tests were performed using a DFRobot’s ESP32 module integrated in a ESP32 development board, and a DFRobot DHT22 module. Introduction In this tutorial we will check how to obtain temperature measurements from a DHT22 sensor …
Continue reading "ESP32 Arduino: Getting DHT22 sensor measurements with interrupts"
Micro:bit MicroPython: Getting the status of a LED
In this tutorial we will learn how to read the status of a LED from the Micro:Bit's LED matrix, using MicroPython. Introduction In this tutorial we will learn how to read the status of a LED from the Micro:Bit's LED matrix, using MicroPython. If you need a guide on how to set the state of …
Continue reading "Micro:bit MicroPython: Getting the status of a LED"
ESP32 / ESP8266 Arduino: Printing numbers to serial in different bases
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 tests on the ESP32 were performed using a DFRobot’s ESP-WROOM-32 device integrated in a ESP32 FireBeetle board. The tests on the ESP8266 were performed on a DFRobot’s ESP8266 FireBeetle board. Introduction In this tutorial, we will …
Continue reading "ESP32 / ESP8266 Arduino: Printing numbers to serial in different bases"
Micro:bit MicroPython: Turning on and off the LEDs of the matrix
In this tutorial we will learn how to turn on and off specific LEDs from the micro:bit's LED matrix, using MicroPython, including controlling their brightness. Introduction In this tutorial we will learn how to turn on and off specific LEDs from the micro:bit's LED matrix, using MicroPython, including controlling their brightness. If you are looking …
Continue reading "Micro:bit MicroPython: Turning on and off the LEDs of the matrix"
Micro:bit MicroPython: string repetition
In this tutorial we will check how to use the * operator to generate a repetitive sequence of a string. This tutorial was tested on MicroPython running on a micro:bit board. Introduction In this tutorial we will check how to use the * operator to generate a repetitive sequence of a string. Using this operator, we can define …