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

Series: ESP32 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

003 - ESP32 MicroPython: General Purpose Input Output | GPIO Pins

George Bantique September 9, 2020 1 Comment

VIDEO DEMONSTRATION CALL TO ACTION If you like this tutorial and you find it useful, please Share it to your friends. Please consider also supporting me by Subscribing. Click this to Subscribe to TechToTinker Youtube channel. SOURCE CODE Example 1 import machine import time led = machine.Pin(2, machine.Pin.OUT) counter = 0 while (counter < 5): […]


Read more 003 - ESP32 MicroPython: General Purpose Input Output | GPIO Pins

001 - ESP32 MicroPython: What is MicroPython

George Bantique September 7, 2020 1 Comment

MicroPython is essentially a Python created for microcontrollers. MicroPython is a light-weight and compact implementation of Python Programming Language. It is stripped and trimmed down in order to work with embedded devices which basically has limited resources. And with the help of machine modules, we can easily communicate with the hardware input and output devices. […]


Read more 001 - ESP32 MicroPython: What is MicroPython