MicroPython


We actively support Arduino and CircuitPython, but we have also tested MicroPython and Platform.IO. We can confirm that MicroPython is compatible with the Neuron ESP32S3 module. The ESP32-S3-WROOM-I module on Neuron is the same module as that used on the Espressif developer board ESP32-S3-DevKitC-1-N8R8. You will want to use the MicroPython  firmware.bin file for the Generic ESP32-S3 (SPIRAM Octal) firmware located here:

https://micropython.org/download/GENERIC_S3_SPIRAM_OCT/

You will need to install the required toolchain for MicroPython (Python, Esptool and a MicroPython IDE). Popular IDE’s for MicroPython include Thonny. Before using MicroPython you will need to put a compatible firmware.bin file on the Neuron. To do this, use the following commands in a terminal session using ESPTOOL:

Ensure the Neuron is placed in BOOT mode before uploading the firmware. In a terminal session enter the following:

esptool.py --chip esp32s3 --port COM15 erase_flash

Following the erase command, initiate the firmware  installation.

esptool.py --chip esp32s3 --port COM15 write_flash -z 0x0 ESP32-S3-SPIRAM-OCTAL.bin

Press the reset button on the Neuron.

Note: Please change “COM15” to the COM port that the Neuron is connected to on your computer. Change “ESP32-S3-SPIRAM-OCTAL.bin” to the filename of the firmware file you downloaded from https://micropython.org/download/GENERIC_S3_SPIRAM_OCT/

Here is a blink example to test your MicroPython configuration:

import machine
import time

pin = machine.Pin(47, machine.Pin.OUT)

for i in range(10):

    pin.on()

    time.sleep(1)

    pin.off()

    time.sleep(1)

BrainBoardzTM and Plug and CodeTM 
are Trademarks of BrainBoardz Inc. © Copyright, 2021