Files
butterfly-edfa-rack-firmware/platformio.ini
T
James Bateman (hp-laptop) 58475386ba Butterfly EDFA Rack bridge: seed + EDFA over WiFi/MQTT to Home Assistant
ESP32 firmware bridging the 1550 nm MOPA (Koheron CTL200 seed + Agiltron
M511 two-stage EDFA) to MQTT/HA as a single device. Telemetry and control
for both instruments verified end-to-end: MQTT command -> seed lasing ->
booster ramp to 27 dBm (~515 mW) at the documented 2500 mA operating point.

- PlatformIO/Arduino project, project-local venv, Makefile upload flow
- Koheron ASCII driver on UART2; Agiltron binary 0x55AA driver on UART1
- HA discovery (sensors, binary_sensors, switches, numbers); LWT availability
- Static IP, firmware current clamps on seed and booster pump
2026-06-19 10:16:50 +01:00

26 lines
801 B
INI

; PlatformIO project for the Koheron CTL200 -> WiFi/MQTT bridge on ESP32.
; Board: ESP32-D0WD-V3 (WROOM-32 class) on a CP2102N USB bridge.
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
; CP2102N enumerates as /dev/ttyUSB0 on this PC. Override at the command line
; with `pio run -t upload --upload-port /dev/ttyXXX` if it moves.
upload_port = /dev/ttyUSB0
monitor_port = /dev/ttyUSB0
; The ESP32's own USB console. The Koheron link is a *separate* hardware UART
; (see src/main.cpp) so the two never collide.
monitor_speed = 115200
upload_speed = 460800
; MQTT client. PubSubClient is small and battle-tested.
lib_deps =
knolleary/PubSubClient@^2.8
; Keep WiFi/MQTT credentials out of source control: see include/secrets.h.
build_flags =
-DCORE_DEBUG_LEVEL=3