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

Sections: Archives

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

004 - ESP32 MicroPython: External Interrupts

George Bantique September 10, 2020 6 Comments

 Circuit Diagram for Example 3 VIDEO DEMONSTRATION SOURCE CODE Example 1, Simple Polling “”” *** Simple Polling Method of reading an input *** Author: George V. Bantique, TechToTinker Date: September 10, 2020 Description: The switch or the BOOT switch is polled until such time that the switch is detected at logic LOW When the switch […]


Read more 004 - ESP32 MicroPython: External Interrupts