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

Month: September 2020

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

008 - ESP32 MicroPython: Hardware Timer Interrupts

George Bantique September 26, 2020 No Comments

In this tutorial, we will learn how to use the hardware Timer Interrupts of ESP32 in MicroPython. Timer in essence is basically a counter that either counts up or counts down. Timers can be use to trigger an interrupt event when an overflow happened or a certain count value is reached. CIRCUIT DIAGRAM VIDEO DESCRIPTION […]


Read more 008 - ESP32 MicroPython: Hardware Timer Interrupts

007 - ESP32 MicroPython: How to make some sound with MicroPython

George Bantique September 18, 2020 7 Comments

In this article, we will be exploring the use of Pulse Width Modulation or PWM in producing a sound using MicroPython. BILL OF MATERIALS ESP32 Development board. A buzzer module or a speaker. Some connecting wires. CIRCUIT DIAGRAM VIDEO DEMONSTRATION CALL TO ACTION If you found this tutorial as helpful, please consider supporting me by […]


Read more 007 - ESP32 MicroPython: How to make some sound with MicroPython

006 - ESP32 MicroPython: How to control servo motor with MicroPython

George Bantique September 15, 2020 3 Comments

CIRCUIT DIAGRAM Links to SG90 datasheet: http://www.ee.ic.ac.uk/pcheung/teaching/DE1_EE/stores/sg90_datasheet.pdf Links to Arduino map() function: https://www.arduino.cc/reference/en/language/functions/math/map/ Some formulas use freq = 1 / Period freq = 1 / 20ms freq = 50Hz 1ms / 20ms = 0.05 = 5% duty cycle 2ms / 20ms = 0.10 = 10% duty cycle To get the equivalent pwm duty values: 0.05 […]


Read more 006 - ESP32 MicroPython: How to control servo motor with MicroPython