Learn electronics, coding, and projects — step by step.

Sections: Archives

013 - ESP32 MicroPython: UART Serial in MicroPython

George Bantique October 7, 2020 10 Comments

In this tutorial, we will learn to use the UART peripheral of ESP32 in MicroPython. UART is useful for interfacing devices such as DF Player Mini mp3 player module, SIM800L gsm module, HC-06 bluetooth module, and etc which basically needs serial communication as mode of control. ESP32 has 3 hardware uart serial ports available which […]


Read more 013 - ESP32 MicroPython: UART Serial in MicroPython

012 - ESP32 MicroPython: HC-SR04 Ultrasonic Sensor in MicroPython

George Bantique October 3, 2020 1 Comment

In this video, we will learn how to use the HC-SR04 ultrasonic sensor in MicroPython. With ultrasonic sensor, it can be use for measuring distance or it can be use for sensing an object. CIRCUIT DIAGRAM INSTRUCTION Connect the HC-SR04 VCC pin to ESP32 VIN pin. The HC-SR04 needs 5V, trust me I already tried […]


Read more 012 - ESP32 MicroPython: HC-SR04 Ultrasonic Sensor in MicroPython

011 - ESP32 MicroPython: DHT11, DHT22 in MicroPython

George Bantique October 1, 2020 3 Comments

In this tutorial, we will learn to use the DHT22 in MicroPython. DHT11 should be compatible with slight modification. CIRCUIT DIAGRAM INSTRUCTION Connect the OLED VCC pin to 3V3 supply pin of ESP32. Connect the OLED GND pin to ESP32 GND pin. Connect the OLED SCL pin to ESP32 GPIO D22 pin (SCL dedicated pin). […]


Read more 011 - ESP32 MicroPython: DHT11, DHT22 in MicroPython

010 - ESP32 MicroPython: 0.96 OLED in MicroPython

George Bantique September 30, 2020 No Comments

In this tutorial, we will learn to use the 0.96 inch OLED display with monochrome display. This is useful for displaying something for the end user. Its easy to use, we just need 4 wires. 2 wires for the power and another 2 wires for the i2c comunication protocol for controlling the display. CIRCUIT DIAGRAM […]


Read more 010 - ESP32 MicroPython: 0.96 OLED in MicroPython

009 - ESP32 MicroPython: Non-blocking Delays and Multithreading | Multitasking

George Bantique September 27, 2020 6 Comments

In previous tutorials we learned to use the hardware timer interrupt which is very useful when we need to execute a task at specific interval period. We also use hardware timer interrupts for executing timed threaded task which is similar to multitasking. Using the hardware timer in that manner, sooner or later, we will runout […]


Read more 009 - ESP32 MicroPython: Non-blocking Delays and Multithreading | Multitasking