ESP 32-C3 Super Mini and MicroPython

Thanks to:



Photo - larger than actual size


Pinout

Specs:

C3

Because someone will ask.

Pi Pico

Installing Python

Download the micropython interpreter for the C3 from:

 https://micropython.org/download/ESP32_GENERIC_C3/
 
 I picked the most recent version.

Using the command line:

I created a python virtual environment and installed esptool:

Connect the ESP32-C3 super mini to a USB port.

On my Ubuntu it connected to /dev/ttyACM0 

Then erase the existing flash and load python:

I then ran Thonny to talk to the ESP32, and it did.

A flashing led

import machine
import time

# The ESP32 supermini onboard led is on pin 8
led= machine.Pin(8, machine.Pin.OUT)
      
while True:
    led.value(not led.value())
    time.sleep(1)

and we are done...

Except ...

Why not have a web server that turns the led on and off and displays the temperature, and gives you a random number because Rui thought it would be a fine idea.




DS18B20 Wiring.  Note 4.7 K Pull Up Resistor

ESP 32-C3 Web Server Code


Notes: 

Thonny does not seem to do a hard reset on the ESP32-C3 board and it leaves network connections in an undefined state when you reload the program and try to bring up the network.  The solution is to click the Reset button.

Comments from the Jitsi Chat