ESP32 MicroPython MQTT Publish Subscribe – Control Outputs

ESP32 MicroPython MQTT Publish Subscribe tutorial

In this ESP32 MicroPython tutorial, we will learn to use MQTT with ESP32 to publish and subscribe to MQTT topics using MicroPython. We will see how to use ESP32 as an MQTT publisher and subscriber with MicroPython scripts. For demonstration, we will control ESP32 outputs by publishing MQTT messages. There will be one ESP32 MQTT … Read more

ESP32 MicroPython Send Sensor Readings to ThingSpeak (BME280)

ESP32 MicroPython Send Sensor Readings to ThingSpeak (BME280)

In this user guide, we will learn how to publish sensor readings to ThingSpeak using Micropython and ESP32. We will use Thonny IDE to program our ESP32 board which will be connected to a temperature, humidity, and pressure sensor. Our main aim is to transmit these sensor readings to ThingSpeak easily and interactively demonstrate them. … Read more

NEO-6M GPS Module with ESP32 using MicroPython

NEO-6M GPS Module with ESP32 using MicroPython

In this tutorial, we will learn about a NEO-6M GPS module and how to interface it with ESP32 using MicroPython to obtain GPS parameters such as latitude, longitude, altitude, date, time, speed, satellites, etc. We will learn how GPS works and the overview of the NEO-6M GPS module with an introduction, pinout, and specifications. After … Read more

Interface 28BYJ-48 Stepper Motor with ESP32 using MicroPython

Interface 28BYJ-48 Stepper Motor with ESP32 using MicroPython

In this tutorial, we will learn about the 28BYJ-48 stepper motor and how to interface it with the ESP32 using a UNL2003 driver and MicroPython. The 28BYJ-48 stepper motor is inexpensive and one of the most commonly used stepper motors out there. It comes with a UL2003 motor driver attached to it that is responsible … Read more

I2C LCD with ESP32 and ESP8266 using MicroPython

I2C LCD with ESP32 and ESP8266 using MicroPython

In this tutorial, we will learn how to interface I2C LCD with ESP32/ESP8266 and how to display simple text/numbers and custom characters on I2C LCD. This I2C LCD is a 16×2 device which means it can display 16 columns by two rows of characters. The characters are alphanumeric, but you can create custom characters for … Read more

MicroPython HC-SR04 Ultrasonic Sensor with ESP32 and ESP8266

HC-SR04 Ultrasonic Sensor with ESP32 and ESP8266 using MicroPython OLED

This tutorial shows how to interface HC-SR04 ultrasonic sensors with ESP32 and ESP8266 NodeMCU for contactless distance measurement using MicroPython. First, we will learn to interface HC-SR04 with ESP32 and ESP8266 NodeMCU. After that, we will see the MicroPython example code to measure distance and display it on the MicroPython terminal. Secondly, we will see a … Read more

Flash MicroPython Firmware to ESP32 and ESP8266 with esptool.py

Flash MicroPython Firmware with esptool.py to ESP32 and ESP8266

In this comprehensive tutorial, we will learn how to flash MicroPython firmware to ESP32 and ESP8266 NodeMCU boards using esptool.py. The esptool.py tools can be used on Windows, Linux, and MacOS. It is a python based command line utility used to flash and erase Micropython firmware for various development boards such as ESP32 and ESP8266. … Read more

MicroPython ESP32 and ESP8266: Program with VS Code and Pymakr

MicroPython ESP32 and ESP8266 Program with VS Code and Pymakr

In this tutorial, we will learn to program ESP32 and ESP8266 boards with VS code by using the Pymakr extension available in visual studio code. As we have seen in previous tutorials, we have learned to program ESP32 and ESP8266 boards using various IDEs. Recommended Components The following components are used in this project or … Read more