Fixing Airwire Errors


The stale marker changed to another local 5V_PROT trace segment (Trace 1322), still tied to C1:P1. I’m cleaning that local segment and re-checking again.
After removing the stale local segments, DRC now exposes two short 5V_PROT airwires and the board pre-check says routing is feasible. I’m running a focused routing cleanup pass now.
The C1 airwire is cleared, but the cleanup route introduced overlapping-copper DRC errors. I’m removing the offending cleanup traces/vias so we don’t leave the board with shorts, then I’ll re-check DRC.
The cleanup removed the shorts, but it opened several small local airwires/dangling traces. The board check says routing is feasible, but another route pass may introduce new conflicts; I’m stopping here rather than risking further churn.
I reworked the local C1:P1 / 5V_PROT routing and re-ran DRC. The original C1:P1 airwire was removed, but the repair route introduced other local routing issues; I removed the shorting overlaps, and the latest DRC now shows 4 airwires and 3 dangling-trace warnings, with no overlapping-copper errors in the checked set.
So the board is still not export-ready. The next safe step is a careful manual PCB edit around the affected traces rather than another blind autoroute pass, because the router is now creating cleanup churn.
Manual routing fix
Inspect affected nets
Revert cleanup route
Create repair plan
Check manufacturability

Waiting for input


Firmware Starter — LampOS RGBWW Controller
Platform & Toolchain
  • MCU: ESP32-WROOM-32-N4
  • Framework: Arduino for ESP32 via PlatformIO
  • Programming: external USB-UART pogo adapter on 3V3, GND, TX0, RX0, EN, GPIO0
Pin Mapping

Table


FunctionESP32 GPIOSchematic NetNotes
Top/shade LED ringGPIO12GPIO12_TOP_RAW -> AHCT -> TOP_DINStrapping pin; do not externally pull high at reset.
Bottom/base LED ringGPIO14GPIO14_BOT_RAW -> AHCT -> BOT_DINIndependent chain.
UART TX0GPIO1UART_TX0Programming/debug pad.
UART RX0GPIO3UART_RX0Programming/debug pad.
BootGPIO0ESP_GPIO0_BOOTPull-up plus BOOT switch to GND.
ResetENESP_ENPull-up, 1 uF delay cap, RESET switch to GND.
platformio.ini

Ini


[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
lib_deps =
    fastled/FastLED@^3.7.0
Complete Arduino Starter Source

Cpp


#include <Arduino.h>
#include <WiFi.h>
#include <FastLED.h>

#define TOP_LED_PIN       12
#define BOT_LED_PIN       14
#define TOP_LED_COUNT     16
#define BOT_LED_COUNT     16
#define SERIAL_BAUD       115200

// SK6812 RGBW is represented here with FastLED RGB ordering for initial bring-up.
// For true RGBW/Warm White control in LampOS, use an RGBW-capable SK6812 driver.
CRGB topRing[TOP_LED_COUNT];
CRGB botRing[BOT_LED_COUNT];

const char* WIFI_SSID = "YOUR_SSID";
const char* WIFI_PASS = "YOUR_PASSWORD";

uint8_t globalBrightness = 32;  // conservative default for current limiting
unsigned long lastPatternMs = 0;
uint8_t hue = 0;

void initWiFi() {
  WiFi.mode(WIFI_STA);
  WiFi.begin(WIFI_SSID, WIFI_PASS);
  Serial.print("WiFi connecting");
  for (int i = 0; i < 20 && WiFi.status() != WL_CONNECTED; ++i) {
    delay(250);
    Serial.print('.');
  }
  if (WiFi.status() == WL_CONNECTED) {
    Serial.printf("\nWiFi connected: %s\n", WiFi.localIP().toString().c_str());
  } else {
    Serial.println("\nWiFi not connected; continuing offline");
  }
}

void setCurrentLimitMode(uint16_t sourceMilliAmps) {
  // Approximate firmware limiter. Tune in LampOS using actual RGBWW driver current model.
  if (sourceMilliAmps <= 500)      globalBrightness = 8;
  else if (sourceMilliAmps <= 1000) globalBrightness = 20;
  else if (sourceMilliAmps <= 1500) globalBrightness = 40;
  else                              globalBrightness = 80;  // still below full power
  FastLED.setBrightness(globalBrightness);
  Serial.printf("Brightness limit set to %u for %u mA source\n", globalBrightness, sourceMilliAmps);
}

void initLeds() {
  FastLED.addLeds<SK6812, TOP_LED_PIN, GRB>(topRing, TOP_LED_COUNT);
  FastLED.addLeds<SK6812, BOT_LED_PIN, GRB>(botRing, BOT_LED_COUNT);
  setCurrentLimitMode(3000);
  fill_solid(topRing, TOP_LED_COUNT, CRGB::Black);
  fill_solid(botRing, BOT_LED_COUNT, CRGB::Black);
  FastLED.show();
}

void showBringupPattern() {
  fill_rainbow(topRing, TOP_LED_COUNT, hue, 8);
  fill_rainbow(botRing, BOT_LED_COUNT, hue + 64, 8);
  FastLED.show();
  hue++;
}

void setup() {
  Serial.begin(SERIAL_BAUD);
  delay(200);
  Serial.println("LampOS RGBWW Controller bring-up firmware");
  Serial.println("GPIO12 = top/shade ring, GPIO14 = bottom/base ring");

  initLeds();
  initWiFi();
}

void loop() {
  const unsigned long now = millis();
  if (now - lastPatternMs >= 50) {
    lastPatternMs = now;
    showBringupPattern();
  }

  if (WiFi.status() != WL_CONNECTED) {
    static unsigned long lastReconnect = 0;
    if (now - lastReconnect > 10000) {
      lastReconnect = now;
      initWiFi();
    }
  }
}
Build & Flash
  1. Hold BOOT, tap RESET, release BOOT to enter UART bootloader.
  2. Build: pio run
  3. Flash: pio run -t upload
  4. Monitor: pio device monitor
Notes
  • GPIO12 is a boot-strapping pin. Keep the external AHCT input high-impedance/passive during reset and do not add a pull-up on this net.
  • Full 32-RGBWW brightness can exceed a 3 A source. LampOS should enforce a source-current brightness limiter.
  • Platform & Toolchain

  • Pin Mapping

  • platformio.ini

  • Complete Arduino Starter Source

  • Build & Flash

  • Notes