Skip to content

About

CYD Remote Control for BoxTurtle integrations

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BoxTurtle CYD Remote — Firmware v0.2 (test candidate)

Hardware: ESP32-2432S028 non-R CYD (same proven ILI9341/XPT2046 display/touch mapping as Cateau Systems). Separate project and source code from Cateau and SpoolSense. UI: 320 x 240 landscape, four tall lane cards.

What changed since the hardware-verified v0.1

  • Wi-Fi setup without hardcoded credentials: on first boot or after a failed 15-second connection, a temporary password-protected Wi-Fi access point named BT-CYD-XXXXXX appears. The screen shows its random password and http://192.168.4.1. Join this AP with phone or computer; browse to http://192.168.4.1; enter the home Wi-Fi SSID and password. The CYD stores them in ESP32 NVS and reboots. The AP's password changes on each setup session. After a successful connection it prints its local IP to the USB serial monitor at 115200 baud.
  • Moonraker target plain HTTP: http://trident.5catventures.com (no TLS setup/certificates). /server/info indicates API reachability.
  • Polls /printer/afc/status every 5 seconds. Displays status and material per lane and spool color if AFC returns usable color data. Tap opens detail with filament name and AFC status.
  • All LOAD / UNLOAD / CHANGE actions remain disabled, even when online. No API path issues gcode or motion commands.
  • If Wi-Fi/Moonraker/AFC data is unavailable, the UI explicitly shows offline/no data rather than inventing state. Serial monitor provides read-only HTTP/parse failure diagnostics.

How to test

  1. Open this repo in VS Code with PlatformIO; select boxturtle-cyd > General > Upload and Monitor.
  2. On first boot, use the setup network and password displayed on the CYD to join its Wi-Fi AP. Open http://192.168.4.1 on the connected device. Enter home Wi-Fi SSID and password, save.
  3. After restart, CYD should show AFC LIVE and actual lane states (provided the Trident can be reached from the CYD's Wi-Fi segment and AFC's /printer/afc/status endpoint returns the expected structure). If it shows NO API or NO AFC, view the serial monitor for the failing endpoint.
  4. Tap every lane and Back. Confirm that touch navigation still works and action buttons remain disabled.

The AFC webhook's response shape is taken from AFCProject/AFC-Klipper-Add-On extras/AFC.py: result["status:"]["AFC"]["Turtle_1"]["lane1".."lane4"] in the referenced upstream revision. Verify against the actual printer: custom versions may differ. Changes are not yet compiled or flashed; the v0.1 firmware is the last known-good build.

Key files

  • platformio.ini: PlatformIO environment, LovyanGFX and ArduinoJson dependencies.
  • include/CydBoard.h: same pin map and touch rotation as the tested v0.1.
  • src/NetworkManager.h/.cpp: Wi-Fi station connection and temporary setup AP.
  • src/MoonrakerClient.h/.cpp: HTTP-only Moonraker/AFC read-only status.
  • src/RemoteUi.h/.cpp: four-column lane UI and Wi-Fi setup instructions.
  • src/main.cpp: coordination between UI, Wi-Fi, and Moonraker.

The v0.2 test candidate should be committed only after on-device build/upload/testing. The project intentionally has no OTA, executable lane commands, or tangle detection yet.

About

CYD Remote Control for BoxTurtle integrations

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages