​ These days I bought one board of esp32 to learn how to program with micropython.

​ Esp32 = mcu + wifi + bluetooth .

​ This package suply us so much components to use :DS1302 timer, ADC , LED ,OLED,RGB,Louder , Relay , SG90 steering engine,IR remote control, DC motor , and all kinds of sensor . It help me to learn how to communicate with these hardware by micropython .

ESP32 core board

Base Board

SN Description
1 4 Buttons
2 DS1302 Clock
3 TF Card
4 Esp32 core board port
5 Esp32 core board gpio
6 Power switch of base board
7 3.3v voltage stabilizer module
8 5v&3.3v input and output
9 ADC
10 8 LED lights
11 5 RGB lights
12 TM1637 module
13 self driven buzzer
14 infrared receiver
15 DS18B20&DHT11 sensor port
16 SG90 steering engine port
17 Common Anodedigital tube
18 ULN2004 chip , for drving electrical machinery
19 OLED&LCD port
20 Relay module

All kinds of sensors

Program

​ There are a lot of function in Micropython library and other third python library we can use to control all kinds of electronic devices.

Meanwhile , there are some special function for unique chips such as esp32 ,esp8266 .

I take one example here to show how to turn on or off the led light here .

main.py

from machine import Pin
import time
if __name__ == '__main__':
		led1 = Pin(15, Pin.OUT)
    while True:
        led1.on()
        time.sleep(1)
        led1.off()
        time.sleep(1)

You can burn this python file into esp32 board by Thonny or PyCharm .Make sure connect gpio15 with one LED light. Then Restart the board , you could see the led light shine per second .

I will introduce how to program with micropython one by one , and write blog at Embedded/esp32

Thanks for reading my blog .