Skip to content

Lab — GUI + Arduino integration

Learn by programming: follow each step, write your own code, then apply it to the course assignment.

What you will build

A GUI button sends a serial command and displays the response.

  1. 1

    Define the protocol

    List commands and responses from the protocols PDF (header, checksum if any, line ending). Document one valid and one invalid example.

    Tip: Reference: /en/proyecto-final/comunicacion-serial-arduino/

  2. 2

    Separate layers

    A `SerialLink` class or module (open port, send, read). The GUI only calls high-level methods; do not mix widgets with raw bytes.
  3. 3

    UI button

    An «On» button (or similar) sends the agreed command. Show the Arduino response in a label or log area. See [GUI](/en/proyecto-final/interfaz-grafica/).
  4. 4

    End-to-end test

    With Arduino connected: press the button, verify the correct response, unplug the cable, and confirm the GUI shows a friendly error without crashing.
  5. 5

    Document for submission

    Screenshots of GUI + console, command table, and short README with dependencies (Qt, port, baud). Align with [Integration](/en/proyecto-final/integracion/).

Back to tutorial page