
This course mainly covers the basics of MicroPython with different sections, Python 3 syntax, GPIO controlling, WiFi connectivity.
Install Python version 3 and the Tony ID IDE on Windows, Mac, and Linux; also install putty for Windows to communicate with MicroPython on ESP32/ESP8266.
For Windows OS
Install Tony IDE to script MicroPython for ESP32 and ESP8266. Download from tony.org, install on Windows/macOS/Linux, and verify Python in the shell.
For Windows OS only
Install the CS340 driver, then the CP210X driver, connect the ESP32/ESP8266 board, and verify the serial port appears in device manager for MicroPython development.
Learn how to install MicroPython firmware on ESP32 and ESP8266 by downloading the appropriate bin file from micropython.org, choosing unstable or stable builds, and saving it for flashing.
Flash MicroPython firmware to ESP32 using Thonny IDE, enabling the ESP tool plugin, selecting the correct port, erasing flash, uploading the bin file, and verifying with the MicroPython shell.
Learn to flash MicroPython onto an ESP32 using esptool, including erasing flash, booting into flash mode, uploading the firmware, and verifying with the MicroPython shell.
Learn to flash Micropython to ESP32 using the espress-if tool from Espressif, including selecting the COM port, erasing, and uploading Micropython firmware from micropython.org.
Explore the print function in MicroPython on ESP32. Learn to print numbers and strings, assign variables, and format strings using concatenation and the dot format method.
Learn how to use the type function in MicroPython to identify variable types, including int, float, string, boolean, and tuple, by declaring A–E and printing their types.
Explore how the help function in MicroPython on ESP32 demonstrates listing modules, importing machine, and viewing module functions like pin, adc, pwm, and _thread for multithreading.
Explore conditional statements in MicroPython with if, else, and elif, learn to take numeric input, compare to a reference value, and handle in range and out of range outcomes.
Learn to implement an infinite while loop in micro python for ESP32, using time.sleep to create delays and print hello at intervals, with ctrl+c interrupt and ctrl+d soft reboot.
Use for loops in MicroPython to run code a set number of times with range. End is exclusive and step is 1; start 2, end 26, step 3 prints 2,5,8,11,14,17,20,23.
Create and call your own functions in MicroPython using def, pass arguments, and print results, then repeat with a while loop and sleep intervals.
Explore the ESP32 pinout diagram, including GPIO, touchpads, ADC channels, LEDs, boot and reset buttons, 3.3V and Vin power, and USB connections, then compare with ESP8266 features and limitations.
Blink the default LED on the ESP32 (gpio pin two) using MicroPython by creating a gpio pin object with the machine module, and toggling it with sleep in a loop.
Learn how to use adc in micro python to read a potentiometer on gpio 32, printing values up to 4095 every second; also covers ldr and battery voltage measurements.
Learn to use capacitive touch on esp32 with micro python, read values from pin 27 and toggle a led on pin 25 via a threshold in a loop.
Use MicroPython on ESP32/ESP8266 to read temperature and humidity from a DHT11 sensor via a one-wire connection to GPIO 14. Add try-except handling and print readings after a short delay.
Measure the esp32 internal temperature with MicroPython. Use esp32.raw_temperature in a while loop and print the Fahrenheit value after delays.
Explore reading the ESP32 internal hall effect sensor with MicroPython, importing the ESP32 module and sleep, and looping to monitor hall_sensor values as a magnet approaches and recedes.
Learn to implement multithreading in MicroPython on the ESP32 by running three LEDs at different blink rates using separate thread functions and start_new_thread.
Connect ESP32 to a wifi network with MicroPython by configuring a station object and calling connect with SSID and password. Boot.py and main.py automate startup and show the IP address.
Learn how to fetch weather data from openweathermap.org in micropython for esp32/esp8266 via api calls, create api keys, and parse json for temperature, humidity, and wind.
Fetch weather data from openweathermap on an esp32 using urequests, parse json to extract city name and kelvin temperature, convert to celsius, and print results.
This course is a kick-start to MicroPython. Micropython is a lightweight version of Python 3 programming language designed for microcontrollers with a minimum of 256KB of ROM and 16KB of RAM. MicroPython supports chips like ESP32,ESP8266,STM32,nRF52,W600 etc.
This course mainly covers the basics of MicroPython with different sections, Python 3 syntax, GPIO controlling, WiFi connectivity.
The highlight of this course is MultiThreading
In this course, the software used is free of cost.