This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tamiwiki:users:6r1d:diymall_esp32_s3_fixture [2025/10/18 20:46] – 6r1d | tamiwiki:users:6r1d:diymall_esp32_s3_fixture [2025/10/20 05:43] (current) – [ESP-IDF (+ history and PWM debug)] 6r1d | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | There's something | + | There’s something |
| - | Or a bad board. Mostly | + | Or a non-working one. |
| + | //Usually// it's one of those two. | ||
| ====== Introduction ====== | ====== Introduction ====== | ||
| Line 8: | Line 9: | ||
| {{: | {{: | ||
| - | It is very helpful as a fixture. It is not helpful whatsoever | + | It is very helpful as a fixture. It is not helpful whatsoever |
| So, the fixture is easy to buy on AliExpress, for example, [[https:// | So, the fixture is easy to buy on AliExpress, for example, [[https:// | ||
| Line 47: | Line 48: | ||
| ===== Notes ===== | ===== Notes ===== | ||
| - | * GPIO pin 48 is the onboard LED, usually blue. | + | |
| - | * Initially, I thought that onboard USB-UART is connected to something else than RXD0 / TXD0. It was not. It is the main UART. | + | * Initially, I thought that onboard USB-UART is connected to something else than RXD0 / TXD0. It was not. It is the main UART. |
| + | |||
| + | ====== Tracing code ====== | ||
| - | ====== Tracing code: Arduino ====== | + | You might disagree with me and want to double-check. Excellent! More eyes (and feedback) mean better information. |
| - | You may disagree with me and want to run a quick check. For your convenience, | + | Grab your trusty 30-year-old LED soldered |
| + | |||
| + | For convenience, | ||
| + | ===== ESP-IDF (+ history and PWM debug) ===== | ||
| + | |||
| + | This code gives you a predictable interactive workflow with history. | ||
| + | |||
| + | < | ||
| + | > help | ||
| + | Commands: | ||
| + | list -> show test-safe GPIOs | ||
| + | status | ||
| + | pin < | ||
| + | < | ||
| + | delay < | ||
| + | pwm <pin> [brightness] | ||
| + | brightness < | ||
| + | freq < | ||
| + | stop -> stop and release pin | ||
| + | |||
| + | > 48 | ||
| + | Stopped. Pin released to INPUT. | ||
| + | Blinking GPIO 48 at 100 ms. | ||
| + | |||
| + | > 42 | ||
| + | Stopped. Pin released to INPUT. | ||
| + | Blinking GPIO 42 at 100 ms. | ||
| + | |||
| + | > 47 | ||
| + | Stopped. Pin released to INPUT. | ||
| + | Blinking GPIO 47 at 100 ms. | ||
| + | |||
| + | > 46 | ||
| + | Restricted: GPIO 46 is not in the test-safe set. | ||
| + | |||
| + | > delay 40 | ||
| + | Set blink delay to 40 ms. | ||
| + | |||
| + | > delay 10 | ||
| + | Set blink delay to 10 ms. | ||
| + | </ | ||
| + | |||
| + | As for using it, you should know the gist at this point. | ||
| + | |||
| + | <code bash> | ||
| + | mkdir pin_tracer && cd pin_tracer | ||
| + | idf.py create-project . && idf.py reconfigure && idf.py set-target esp32s3 | ||
| + | # fill the code | ||
| + | # update the CMake configs | ||
| + | idf.py build | ||
| + | idf.py flash monitor | ||
| + | </ | ||
| + | |||
| + | For your convenience, | ||
| + | |||
| + | Clone it like that: | ||
| + | |||
| + | <code bash> | ||
| + | git clone https:// | ||
| + | </ | ||
| + | |||
| + | Also, you can use Minicom to interact with the tracing code if you'd like. It's just one of the default baudrates, 115200. | ||
| + | |||
| + | <code bash> | ||
| + | minicom -D / | ||
| + | </ | ||
| + | ===== Arduino (basic version) ===== | ||
| Flash from Arduino IDE. Use the ESP32 board package by Espressif, pick ESP32S3 Dev Module, pick 115200 baud in Serial Monitor. | Flash from Arduino IDE. Use the ESP32 board package by Espressif, pick ESP32S3 Dev Module, pick 115200 baud in Serial Monitor. | ||