Skip to main content

Controller board

Inspect generated Uno code, compile offline, and understand the separate upload workflow.

Understand the three steps​

PAVA targets Arduino Uno R3 / ATmega328P. Generating a sketch, compiling it, and uploading it are different actions.

ActionWhat happensPhysical board needed?
Board codeShows the sketch generated from supported current codeNo
Compile offlineValidates and compiles with bundled toolsNo
UploadWrites firmware to the selected connected boardYes

Board code generation does not run the hardware. Successful compilation does not prove the wiring or physical behavior is correct. Check the qualified board and USB-to-serial interface supplied for your classroom; a similar-looking board is not automatically supported.

Controller board panel with separate compile and upload areas and Results and Board code tabs

The panel separates Check your program from Send to your controller board. The lower Results / Board code tabs show messages or the generated sketch. The screenshot has no connected board; Upload becomes available only after selecting a usable port; until then, the panel says what is missing, such as choosing the board's port.

Check your program offline​

  1. Keep the registered USB connected and select or write a supported program.
  2. Open Controller board → Board code to inspect the generated sketch.
  3. Choose Compile offline.
  4. Keep the app open until a result appears in Results. Read the error details if compilation fails.

The supplied student app includes its compiler tools and libraries; a separate Arduino IDE or internet connection is not needed. Only peripherals used by the program are initialized. Validation rejects incompatible pin sharing and timer conflicts.

Analog pins are A0–A5. An I2C LCD uses A4/A5, so those pins cannot simultaneously serve unrelated analog inputs. Servo and buzzer functions can also conflict with PWM timers. Resolve the reported conflict before trying again.

Prepare an upload​

Have a teacher or responsible operator check the actual hardware, power, pin assignments, and moving parts. Use the relevant sensor and output, bus-servo, or line-tracer guide. Physical operation needs separate verification; the teaching diagram is not a certified wiring plan.

  1. Connect the checked controller board using a data-capable USB cable.
  2. Open Controller board and choose Refresh ports.
  3. Select the correct Serial port / COM port. Do not guess between connected devices.
  4. Check that the program and work area are ready, then choose Upload.
  5. Read and confirm the upload dialog. Keep the board connected while firmware is being written.

An upload can start a program that moves attached equipment. Disconnect a bus-servo converter's UART from D0/D1 during upload. A serial monitor or another app using the same COM port can prevent an upload.

Some board variants require an official Windows USB-to-serial driver. Ask school IT or the provider for the qualified driver; simulation does not require that driver.

App Stop and removal of the registered USB do not stop firmware already running on a physical board. Plan the equipment's physical stop and power controls before upload.

If ports or compilation fail, use Troubleshooting.