Difference between revisions of "MakePython ESP8266"

From MakerFabsWiki
Jump to: navigation, search
(Created page with "== Introduction == Python is one of the most widely used, simple and easy-to-learn programming languages around. MicroPython is a lean implementation of the Python 3 programmi...")
(2 intermediate revisions by the same user not shown)
Line 54: Line 54:
'''[https://github.com/Makerfabs/MakePython-ESP8266 Github:MakePython-ESP8266]'''
===Development Tool===
===Development Tool===
Line 147: Line 149:
== Resources ==
== Resources ==
*[https://www.makerfabs.com/wiki/index.php?title=File:MakePython_ESP32_V1.1.pdf  v1.1 Schematic]
*[https://www.makerfabs.com/wiki/images/d/db/MakePython_ESP8266_V1.1.pdf  v1.1 Schematic]
*[https://www.makerfabs.com/desfile/files/esp32-wroom-32_datasheet_en.pdf ESP32 wroom datasheet]
*[https://www.makerfabs.com/desfile/files/esp32-wrover_datasheet_en.pdf ESP32 wrover datasheet]

Latest revision as of 06:03, 24 July 2020


Python is one of the most widely used, simple and easy-to-learn programming languages around. MicroPython is a lean implementation of the Python 3 programming language that has been pared down to run efficiently on microcontrollers.
MakePython ESP8266 is preloaded with MicroPython, simple and suitable for beginners to learn the basic programming with MicroPython, Of course, users can free to change it to make it work with other platforms such as Arduino/GCC.

Model: MAKT8266
MakePython ESP8266.jpg


  • Wi-Fi Protocols: 802.11b/g/n, 802.11 n support(2.4GHz), up to 72.2Mbps
  • Wi-Fi Frequency range: 2.4GHz ~ 2.5GHz
  • CPU: Tensilica L106 32-bit processor
  • Module interface: UART/SPI/SDIO/I2C/I2S/IR Remote Control/GPIO/ADC/PWM/LED Light & Button
  • RAM: 50KB
  • Integrated crystal: 26MHz crystal
  • Integrated SPI flash: 4MB
  • Power supply: 5V, integrate 5V-to-3.3V LDO
  • Operating current: Average 80 mA
  • Minimum current delivered by power supply: 500 mA
  • OLED: 1.3inch SSD1306/SSD1315
  • Recommended operation temperature range: --40℃ ~ +85℃
  • Board size: 70*32.6mm
  • Moisture sensitivity level(MSL): Level 3

Pin Definitions

MakePython ESP8266 1.JPG
MakePython ESP8266 2.JPG

Booting Mode:

Booting PIN

Pin Default SPI Boot(Running Mode) Download Boot(Download Mode)
GPIO15 Pull-down 0 0
GPIO0 Pull-up 0 1
GPIO2 Pull-up 1 1



Development Tool

1.1Installing uPyCraft IDE

  • Click this link to download uPyCraft IDE for Windows:


Connect MakePython ESP8266 to your computer through an USB cable, follow the steps:

  • Tools > Board and select the esp8266:

MakePython ESP8266 3.JPG

  • Go to Tools > Serial and select the com port your ESP is connected to(download the USB driver at: CP210x USB)
  • Press the Connect button to establish a serial communication with your board.

MakePython ESP32 3.JPG

MakePython ESP8266 Projects

Project_1: Ultrasonic Ranging

We use the HC-SR04 Module at:
MakePython ESP32 4.JPG

  • Sensor Connection
  • Connect the simple sensor to ESP8266 boards as following:
HC-SR04 Pins MakePython ESP8266 Pins
Trig IO13
Echo IO12

Connect MakePython ESP8266 to your computer through an USB cable.

  • Download the ssd1306.py and hcsr04.py driver library from here:Code
  • File > open and select the ssd1306.py and hcsr04.py

MakePython ESP32 5.JPG

  • Click on the right to DownloadAndRun MakePython ESP32 6.JPG
  • Download the sample code: hc_sr04.py
  • File > open and select the hc_sr04.py, then click DownloadAndRun

MakePython ESP8266 4.JPG

Project_2: Web Server Control LED

1.Connect LED

Connect the long LED pin to the end of the 330R resistor, the other end of the resistance is connected to 3.3v, the short pin of the LED lamp is connected to the IO5 of ESP8266. As follows
MakePython ESP8266 5.JPG

2.Connect WiFi

Click to download the Socket_LED.py file.
open the file and modify the 'SSID' and 'PASSWORD' to local WIF and password:

SSID = "Makerfabs"     #Modify here with SSID
PASSWORD = "20160704"  #Modify here with PWD

MakePython ESP32 9.JPG

After saving and clicking run, you can see network config, followed by the IP/netmask/gw/DNS address of the interface:

MakePython ESP32 10.JPG

3.control LED

Enter the IP address printed from the serial port in any browser, with any computer in the same WIFI, to control the LED on/off:

MakePython ESP32 11.JPG

When you click 'ON' with the mouse, the LED will turn on, and when you click off, the LED will turn off:

MakePython ESP8266 6.JPG


You can list your questions here or contact with support@makerfabs.com for technology support.