Steps to flash micropython from Terminal
- Install esptool.py "pip install esptool" https://docs.espressif.com/projects/esptool/en/latest/esp32/
- Erase flash "esptool erase_flash"
- load code "esptool --baud 460800 write_flash 0x1000 ESP32_GENERIC-20241129-v1.24.1.bin" https://micropython.org/download/ESP32_GENERIC/
Steps to flash micropython from Thonny
- Set interpretter (Run -> Configure Interpreter)
- change to "Micropython Esp32"
- Install Micropython (esptool)
- Select comport
- Select Esp32
- Select variant "Espressif Esp32/Wroom
- Select Latest version
- wait to finish
- close interpreter window and Terminal should update with the micropython REPL
Setting up Thonny IDE
- Set interpretter (Run -> Configure Interpreter)
- change to "Micropython Esp32"
Loading Libraries
- File -> Open -> this computer "ir_control.py" "rover.py"
- For both files: file -> save copy -? "ir_control.py" "rover.py"
Running ir_test.py
- File -> Open -> this computer "ir_test.py"
- hit green run triangle
- device should periodically transmit and look for recieve code