MicroPython IoT MicroController-Installation Guide and Basics

Get your ESP32 MicroController Board From Amazon Follow the Link : https://amzn.to/31N0W2c

Get your USB Cable From Amazon Follow the Link : https://amzn.to/2AxwOwJ

In CMD Install esptool through PIP such as: pip install esptool

Erase Flash: c:\Python36\Lib\site-packages>esptool.py --port COM6 erase_flash

Install ESP32 Firmware from here : https://micropython.org/download/all

Write Flash: c:\Python36\Lib\site-packages>esptool.py --port COM6 write_flash 0x1000 C:\Users\PCNAME\Desktop/arduino/write_flash/esp32-20180511-v1.9.4.bin

Open your Putty Put as COM6(Your PORT) in Serial Line Box and in Speed 115200 then go for Connection type and Select as Serial and then go and Select Open. A Command Line Python will Be opened do type the programme or select the programme from import and run them.

In CMD Install ampy through PIP such as: pip install adafruit-ampy

Put Code in ESP32 development board through ampy as such : ampy --port COM6 put blinky.py

>>> from machine import Pin
>>> led=Pin(2,Pin.OUT)
>>> led.value(1)
>>> led.value(0)