Skip to content

Portable AVR Control Studio for Arduino Uno - #2

Merged
Aria00pp merged 4 commits into
mainfrom
codex/continue-work-on-draft-pr-for-avr-studio
Jun 1, 2026
Merged

Aria00pp merged 4 commits into
mainfrom
codex/continue-work-on-draft-pr-for-avr-studio

Conversation

@Aria00pp

@Aria00pp Aria00pp commented Jun 1, 2026

Copy link
Copy Markdown
Owner

Motivation

  • Converge the repository into a portable, Windows-centered AVR control and configuration studio that pairs conservative Uno/Nano AVR firmware with a user-friendly GUI and clear handoff notes.
  • Provide a small, safe, EEPROM-backed runtime Config format with magic/version validation, factory defaults, and conservative I/O validation so GUI-driven settings can be applied and persisted safely.
  • Ship a desktop app and documentation that handle unknown hardware via documented profiles (not false auto-detection) and support a clearly labelled demo/simulation mode for presentations while keeping the PR in draft until AVR compile checks are reproducible.

Description

  • Added AVR firmware at firmware/PortableAVRControlStudio/PortableAVRControlStudio.ino implementing an EEPROM-backed Config struct with magic/version validation, factory defaults, fixed-size serial parsing without String, validated SET semantics, SAVE_CONFIG/LOAD_CONFIG/FACTORY_RESET, and relay/buzzer control and status reporting via OK/ERR/CONFIG/STATUS/DATA responses.
  • Added the Windows Tkinter desktop app at gui/portable_avr_control_studio.py branded as "Portable AVR Control Studio" with tabs for Connection, Firmware, Settings, Live Monitor, Hardware Profiles, Diagnostics, Logs, and About / Handoff, plus robust serial parsing, demo transport, pyserial-backed transport, settings send/save/reset controls, and a prepared .hex upload placeholder.
  • Added protocol and handoff documentation including docs/PROTOCOL.md, docs/PACKAGING.md, docs/ARDUINO_CLI.md, and a bundled hardware profile docs/profiles/generic_uno_nano_avr.json to document the ASCII protocol, compile/packaging checks, and profile-driven hardware guidance.
  • Added repository hygiene via README.md update describing the new architecture and smoke checks, and a .gitignore to exclude Python bytecode and packaging build artifacts.

Testing

  • PASS: python -m py_compile gui/portable_avr_control_studio.py succeeded as a Python syntax/smoke check.
  • PASS: Parser smoke tests using from gui.portable_avr_control_studio import parse_serial_line were executed and validated OK/ERR/CONFIG/STATUS/DATA/malformed cases as expected.
  • WARNING: arduino-cli compile --fqbn arduino:avr:uno firmware/PortableAVRControlStudio could not be executed because arduino-cli is not available in this environment.
  • WARNING: An automated attempt to install arduino-cli in the environment failed due to the download endpoint returning HTTP 403, so AVR compile checks must be run in an environment with arduino-cli and the arduino:avr core installed before un-drafting.

Codex Task

Aria00pp commented Jun 1, 2026

Copy link
Copy Markdown
Owner Author

Codex follow-up task — metadata-only update.

The code and CI checks are acceptable. Do not change firmware, GUI, workflow, or docs in this task.

Please only update PR metadata so it matches the current state.

Required changes:

  1. Update the PR title from:
    Draft: Portable AVR Control Studio — firmware, Windows GUI, protocol & docs

    to:
    Portable AVR Control Studio for Arduino Uno

  2. Update the PR body so it no longer contains stale testing text about Arduino CLI being unavailable or AVR compile checks needing to be run later.

  3. In the PR body, make the target clear:

    • Primary target: Arduino Uno / ATmega328P AVR.
    • Arduino Nano may be mentioned only as a compatible secondary option, not the primary customer target.
  4. Replace the Testing section with:

### Testing

- PASS: GitHub Actions `Python syntax and parser smoke` completed successfully.
- PASS: `python -m py_compile gui/portable_avr_control_studio.py` completed successfully in CI.
- PASS: Parser smoke tests for `OK`, `ERR`, `CONFIG`, `STATUS`, `DATA`, and malformed input completed successfully in CI.
- PASS: GitHub Actions `Arduino AVR Uno compile` completed successfully.
- PASS: `arduino-cli compile --fqbn arduino:avr:uno firmware/PortableAVRControlStudio` completed successfully in CI.

No physical hardware testing has been claimed. Final validation still requires the actual Arduino Uno board, connected sensor circuit, relay/buzzer wiring, power setup, and any customer-specific hardware.
  1. Do not mark this as a new feature. This is only a PR title/body cleanup before merge.

Acceptance criteria:

  • PR title is updated.
  • PR body accurately reflects current passing checks.
  • No stale warning about unavailable Arduino CLI remains.
  • No physical hardware testing is claimed.
  • No code files are changed.

@Aria00pp Aria00pp changed the title Draft: Portable AVR Control Studio — firmware, Windows GUI, protocol & docs Portable AVR Control Studio for Arduino Uno Jun 1, 2026
@Aria00pp
Aria00pp merged commit 26fd198 into main Jun 1, 2026
2 checks passed
@Aria00pp
Aria00pp deleted the codex/continue-work-on-draft-pr-for-avr-studio branch June 1, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant