Preparing real-board experiments: UNO, ESP32 and STM32
Prepare a bench practice kit with the correct board model, keeping wiring, code version, clock and raw files, separating compile results from real measurements, with a worksheet and check criteria.
Objectives and status
This guide prepares a bench experiment to study buttons, LEDs, timing and the provenance of a log before applying the ideas to drone systems. Work with the boards you have that match the reference kit, one model at a time. No aircraft is needed, and no ESC/motor or propeller is connected in this practice kit.
Status: The reference code and the PC check results are in the earlier lesson. The guide/worksheet is ready to use, but this round has no upload, no measurement of voltage/signal/IRQ latency/timing on a real board, and no learner experiment results. The measurement-result fields are left blank; compile results, synthetic data or SITL are not used to fill them in.
Real-board worksheet (CSV) · Round-preparation template (JSON) · Description of the record fields · List of reference kits and hashes
Prepare before connecting the board
- Read the fundamentals lesson or STM32 and the time budget according to the model you chose. Check your understanding with the assessment
- Record the board name/chip/board revision and the manufacturer's pinout. A GPIO number is not always the position of the pin on the board. Check voltage levels, the power supply, jumpers and connectors for the actual model.
- Choose the ZIP and the core from the list below. Keep the original, compare the SHA of the ZIP/files with the manifest, then record the tool version, target and options. A new compile result belongs to the experimenter's machine and is not the earlier reference result.
- Draw the wiring before connecting. Keep a photo of the real circuit in which the pin names can be read. Inspect with the power off. Use a USB cable that carries data and the power method per the board manual, and avoid connecting multiple power sources without checking the circuit.
- Name the round and separate the folders. Prepare a way to stop/unplug power and measuring equipment suited to the signal to be studied. A round name written by hand is not yet a boot identity confirmed by the device.
Proposed times: 30 minutes to prepare and read the manual, 45–60 minutes per board for the LED/input experiment, or 60–90 minutes to plan an STM32 log. These are proposed times, not results measured with learners.
Path A: UNO R3 with a button and LED
Practice point: read raw/stable input with timing arranged so that nothing blocks. Use the UNO input/debounce kit The target is arduino:avr:uno, AVR core 1.8.8 per the reference result; do not generalize to the UNO R4 or boards with similar names.
- Open the sketch/header of the same kit and Verify before connecting the board. Record the source SHA/core/target/options and your own compiler messages.
- When you have a UNO R3, check the button contact pairs and connect D2 → momentary button → GND as in the figure, using
INPUT_PULLUP, LOW when pressed. Start with the power off, then check USB/the port and upload per the manual. - Open Serial at 115200 baud and keep
millis,raw_pressed,stable_pressed,eventfrom normal presses/releases. Observe how raw and stable change differently, and that the event occurs when stable changes. - If you want to prove the 30 ms margin, you need a test signal and a method of measuring pulse width that is known; do not use the feeling of 'pressed quickly' in place of timing numbers.
- Change the printing workload one factor at a time. Keep the base case and the changed case separate. The reporting interval of about 200 ms / LED about 500 ms are program targets; they must be measured on the real thing before concluding.
Check the work: matching wiring/model 1, raw/stable/event with raw files 1, clock/measurement point stated 1, conclusion limited to what was observed 1 point. If you measure only the Serial reporting time, you have not confirmed the LED period at the signal pin.
Path B: classic ESP32 with clearly specified GPIOs
Practice point: carry the same concept over by re-checking the pins and voltage. Use the ESP32 input/debounce kit target esp32:esp32:esp32, Arduino-ESP32 core 3.3.12 per the reference result; it does not cover the ESP32-C3/S3.
- Check that the classic board you have brings out GPIO25/27, and Verify the sketch/header matching the kit before upload.
- Connect with the power off: GPIO27 → button → GND (
INPUT_PULLUP), GPIO25 → 330 Ω → LED anode, cathode → GND. Check the LED direction / button contacts / ground against the real pinout. - This kit uses 3.3 V logic. Do not connect a 5 V signal from the UNO to an ESP32 pin, and do not assume the on-board LED replaces the external LED that the example specifies.
- When ready, upload per the manual of the actual model, open Serial at 115200 baud, then keep the data and compare pressing/releasing/printing as in Path A. This kit does not turn on Wi-Fi/Bluetooth.
Check the work: board/pinout/core stated 1, matching wiring/voltage 1, data with time and the base case 1, conclusions separated from host tests/compile 1 point. Another model needs its own target/pinout and new check results.
Path C: NUCLEO-F446RE and the scope of the log
Practice point: study callback → FIFO → freshness gate → task/log. Use the STM32 data freshness kit, target STMicroelectronics:stm32:Nucleo_64:pnum=NUCLEO_F446RE, STM32duino 3.0.0 per the reference result. Read Timer Interrupt and data queues first.
- Check the NUCLEO-F446RE/MB1136 and the connector/jumper/power supply against the manual of the revision you have. A Nucleo board has an ST-LINK for programming/debugging, but you must still check the driver/port/settings that match the model. If you use a core/SDK different from the reference kit, record the version and re-check, and keep the results separate from the earlier report.
- Verify the original sketch/header before upload, and only when a board is ready. TIM2 requested at 100 Hz is a value set in the code, not a rate measured from a board on this website.
- Plan to keep a six-column CSV per the contract:
tick,age_us,work_us,state,overflow,droppedstate the callback/main point that uses the timestamp, the reset, and the start–end of the recording. Keep the raw data and do not edit the line endings after hashing. - Read it with the web Log tool if it is within the 1 MB / 10,000-row limit, or use the analyzer from the full-kit manual, which supports different limits. A file that passes the format does not prove the capture is complete.
- Read the provenance and scope of the Log to make a sidecar according to the schema of that kit.
origin=user-suppliedis a declaration by the preparer, not automatic confirmation of the board. The round-preparation template in this lesson is a different format and cannot be submitted to that validator. - If you need to measure the real IRQ latency or period, define a reference event and measurement points on related clocks, state the tool's resolution/uncertainty, and the effects of instrumentation. Adding a probe/GPIO to the sketch creates a new source that needs a new compile check and new real results. Do not call callback age the IRQ latency.
Check the work: model/source/core 1, clock/measurement points 1, raw bytes/hash/capture boundary 1, boot/capture/instrumentation limitations 1 point. There are no criteria certifying flight from the 20,000 µs cutoff or the 2,000 µs job budget of the problem.
The experiment does not pass at the start: isolate the problem step by step
Objective: find out whether it is stuck in the code, tools, connection or data format, before changing many things at once. Reading and Verify can be done without connecting a board. The port/upload/signal steps must wait for the real device. This guide is a diagnostic approach; it does not report that a real board problem has been solved.
Choose the symptom below, then use the problem log form (Markdown) to keep the model, tools, errors and what was changed one at a time. See the hashes of the downloaded files The initial result is not-run; when you have really tried but cannot close the problem, use needs-validation together with evidence.
Verify fails, or the header is not complete
Open the sketch with the .h file of the same ZIP, and check the folder/file names and the target/core stated in paths A–C before pressing Verify. Keep the full console and read the errors related to source/header before the final summary message. Do not fix it by changing the board or upgrading every library at once. If you change the core, note it as a new condition and do not compare it with the earlier reference result. See the Arduino compilation checking guide
Pass criterion for this step: Verify succeeds for the recorded source/target/options. It does not yet confirm that the upload or the circuit works.
No port is found, or the port is in use
When you have a board, use a USB cable that carries data, check the connector of the actual model, and try connecting directly to the computer. Compare the port list when unplugging/plugging the board, then choose the port that really changes; do not guess the highest COM number. If the port is held, close the Serial Monitor/terminal of that job before trying again. Choosing the Board sets how to compile, while the Port identifies the real device; they are separate values. See the Arduino explanation of board/port
Pass criterion for this step: the device matching the model is detected and chosen, with the port recorded at the time of the experiment. Seeing a port does not yet confirm an upload result.
Upload fails: check by model
- UNO R3: review the board/port and the data cable, close programs using the port, and check devices connected to D0/RX or D1/TX, which may interfere with data transfer. Start the upload test with the minimal connection per the manual. Keep the error from
avrdudebefore concluding the cause. See Arduino: checking uploads and avrdude for the UNO - Classic ESP32: If the connection fails, check the cable/power/port and what is connected to TX/RX first, then check the way to enter download mode using the BOOT/EN of the board you have, per Espressif troubleshooting Do not use the button positions or methods of the C3/S3 for each other, and do not begin modifying the reset circuit from a single symptom.
- NUCLEO-F446RE: separates the Serial port that reads data from the programming method via ST-LINK/SWD. Check the Upload Method menu and the tools needed. The STM32CubeProgrammer (SWD) method requires a CubeProgrammer that the tooling can find, per STM32duino upload methods The ARM compile result on the website did not check the installation of this program or the upload result on the experimenter's machine.
Pass criterion for this step: the upload tool reports success and there is a console for that round. Keep the version/upload method together with the source hash. The program's behaviour must still be checked separately.
Serial is blank, unreadable, or the time looks wrong
For the UNO and classic ESP32 kits in this lesson, set the monitor to match the Serial.begin(115200) of the source. Check the port after reset and see whether the program has started sending messages. The monitor's baud rate and the upload speed are separate settings. For STM32, check the serial routing/connector and the board options of that kit; do not assume every USB connector is the same message path.
Keep several lines with the start–end and the reset if any. Continuous timestamps from Serial do not yet prove the LED period or the IRQ latency, because host time and the timestamp in the MCU come from different clocks. When adding messages makes the work slow, do the base case and the changed case separately per the time budget lesson
The LED or button does not match what is expected
Disconnect the power before checking the wiring, the LED direction, the resistor and the button contact pairs against the circuit figure in Path A/B. The UNO kit uses D2, while the classic ESP32 uses GPIO27 and the external LED on GPIO25; GPIO numbers must be checked against the real board's pinout. Read raw/stable/event to match INPUT_PULLUP which is LOW when pressed. Do not interpret a button pressed quickly by hand as a measurement of the 30 ms debounce margin.
Pass criterion for this step: can explain the circuit and the raw/stable/event files actually kept. If you must conclude a period or threshold, there must be a measurement point, a clock and a supporting resolution.
The web Log tool rejects the file
The web tool accepts the six-column STM32 CSV tick,age_us,work_us,state,overflow,dropped and does not accept the four-column button CSV of the UNO/ESP32 or the SITL event JSON. Do not rename headers to pass without changing the meaning. If it exceeds 1,000,000 bytes or 10,000 rows, use the full kit's analyzer per its manual. Keep the original and state the window if the recording is trimmed.
Read the error message together with the sample Log and the scope of the tool Passing the format checker does not yet confirm a complete capture, the boot provenance or real operation on the board.
Record results without skipping evidence levels
Fill in the order what is expected from the code → what is observed or measured → unit/clock/measurement point → the supported conclusion → what has not been checked Keep together the source hash, the firmware/build output hash if any, the wiring photo, the tool versions, the raw files and the protocol that changes one factor at a time.
If you did not run the experiment, use not-run; if you tried but the data are insufficient, use needs-validation with the reason. Do not fill synthetic model answers or numbers from the compiler into the real-measurement field. A change of model/supply/SDK/clock/probe method must be recorded as a new condition before comparing results.
Work still pending: matching equipment, real upload/measurement, signal and timing checks, and experiments with learners. This part must collect real evidence before the website status is updated. No such experiments took place in the round that prepared this guide.
References and further study
Official sources were checked on 2 October 2026 and are used to read the pinout/API/manuals, but the earlier compile results remain pinned to the stated core.
- Arduino UNO R3: pinout and documentation
- Espressif: the GPIO API and board-specific limitations
- ST: NUCLEO-F446RE and board documents
Back to the three-level overview · Sim/SITL activities before you have a board · Check your understanding