Code and resources for esp32-s3 implementation of Moody
  • Python 98.5%
  • Shell 1.5%
Find a file
2026-10-09 16:21:14 +02:00
Beacon-S3 ESP-S3 update 2023-08-07 20:21:14 +02:00
.DS_Store ESP-S3 update 2023-08-07 20:21:14 +02:00
ble_advertising.py code for temp sending and color receiving 2022-08-18 14:18:59 +02:00
boot.py add automatic flashing 2022-09-26 19:08:22 +02:00
CLAUDE.md submanager: sync project context 2026-10-09 16:21:14 +02:00
flash.sh changed naming, added beacon 2022-10-05 10:32:41 +02:00
GENERIC_S3-20220618-v1.19.1.bin added image 2022-08-18 14:42:55 +02:00
main.py changed naming, added beacon 2022-10-05 10:32:41 +02:00
mlx90615.py code for temp sending and color receiving 2022-08-18 14:18:59 +02:00
name.txt ESP-S3 update 2023-08-07 20:21:14 +02:00
README.md Update README.md 2022-10-05 15:41:26 +02:00
webrepl_cfg.py add automatic flashing 2022-09-26 19:08:22 +02:00

Moody esp32-s3

Code and resources for esp32-s3 implementation of Moody

Wiring:

Neopixel din to IO42

Temp SCL to IO2 SDA to IO1

scheme

Flashing ESP:

All steps below with python3 environment (tested with python3.9)

Install esptool:

pip install esptool

(https://github.com/espressif/esptool)

Use micropython image in git or download newer: https://micropython.org/download/GENERIC_S3/

Install ampy:

pip install adafruit-ampy

(https://github.com/scientifichackers/ampy)

Connect esp

Script steps:

./flash.sh \<port\> \<moodyID\>

Manual steps:

Delete everything from flash mem:

esptool.py --chip esp32s3 --port /dev/cu.usbserial-016570EF erase_flash (replace /dev/cu.usbserial-016570EF by whatever port it's connected to)

Flash micropython:

esptool.py --chip esp32s3 --port /dev/cu.usbserial-016570EF write_flash -z 0 GENERIC_S3-20220618-v1.19.1.bin (replace /dev/cu.usbserial-016570EF by whatever port it's connected to and image path by wherever it is)

Copy files:

ampy --port /dev/cu.usbserial-016570EF --baud 115200 put mlx90615.py

ampy --port /dev/cu.usbserial-016570EF --baud 115200 put webrepl_cfg.py

ampy --port /dev/cu.usbserial-016570EF --baud 115200 put ble_advertising.py

ampy --port /dev/cu.usbserial-016570EF --baud 115200 put main.py

Connect to REPL:

screen /dev/cu.usbserial-016570EF 115200

You should see a promt now.

to run code type demo() (will be adapted to launch automatically)

TODO: ESP IDs & wifi connection (Done)

ESP behaviour

When booted EPS neopixel will turn green.

When a bluetooth connection is established neopixel will turn blue.

ESPs Only try to connect to wifi when booting they flash pink if successful. They connect to:

  • SSID: Moody-net
  • Pass: ExcitingResearch