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

Author: George Bantique

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

005 - ESP32 MicroPython: Pulse Width Modulation

George Bantique September 13, 2020 1 Comment

In this tutorial, we will learn to use the PWM of ESP32 in MicroPython. PWM stands for Pulse Width Modulation. CIRCUIT DIAGRAM VIDEO DEMONSTRATION CALL TO ACTION If you find this tutorial helpful, please consider Subscribing to my Youtube channel by clicking this link to SUBSCRIBE to TechToTinker Youtube channel. Thank you. SOURCE CODE # […]


Read more 005 - ESP32 MicroPython: Pulse Width Modulation