ESP32 Espruino DHT22: Getting temperature and humidity

In this tutorial we will check how to get temperature and humidity measurements from a DHT22 sensor using Espruino, running on the ESP32. 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 get temperature and humidity measurements from a DHT22 sensor using Espruino, …

ESP32 Espruino: Get SDK version, free heap and software reset

In this tutorial we will check how to use some ESP32 specific functionalities on Espruino. We will analyze how to obtain the SDK version, the number of free bytes available on the heap and how to perform a software reset on the device. The tests from this tutorial were performed using a DFRobot’s ESP32 module integrated in a ESP32 …

ESP32 Espruino: Converting an object to a JSON string

In this tutorial, we will check how to convert an object to a JSON string using Espruino on the ESP32. 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 convert an object to a JSON string using Espruino on the ESP32. JSON …

ESP32 Espruino: Listing property names of objects

In this tutorial, we will check how to obtain the property names of a JavaScript object created on Espruino, running on the ESP32. 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 obtain the property names of a JavaScript object created on Espruino, …

ESP32 Arduino HTTP Server: Serving HTML and JavaScript

The objective of this post is to explain how to serve a HTML webpage with some JavaScript from a HTTP webserver running on the ESP32, using the Arduino core. The tests of this ESP32 tutorial were performed using a DFRobot’s ESP-WROOM-32 device integrated in a ESP32 FireBeetle board. Introduction The objective of this post is to explain how to serve …

ESP32 Espruino: Creating simple JavaScript objects

The objective of this post is to explain how to create objects on Espruino using the JavaScript object initializer notation. The tests were performed using a DFRobot’s ESP-WROOM-32 device integrated in a ESP32 FireBeetle board. Introduction The objective of this post is to explain how to create objects on Espruino using the JavaScript object initializer notation. Using this notation, …

Micro:bit JavaScript Blocks Editor: String interpolation

The objective of this post is to explain how to use string interpolation on the micro:bit board, using the JavaScript Blocks Editor. Introduction The objective of this post is to explain how to use string interpolation on the micro:bit board, using the JavaScript Blocks Editor. In short, string interpolation corresponds to evaluating a string that may contain …

ESP32 Espruino: convert number to string in different bases

The objective of this post is to explain how to convert a number to string in different bases, using the Espruino on the ESP32. The tests were performed using a DFRobot’s ESP-WROOM-32 device integrated in a ESP32 FireBeetle board. Introduction The objective of this post is to explain how to convert a number to string in different bases, using the …