Skip to main content

Illumination board

Illumination board Rev. F

The light source above the sample. Four concentric rings of addressable RGB LEDs give brightfield, darkfield, DPC and other angle-coded patterns. A white 4000 K power LED in the centre does plain brightfield. A XIAO ESP32-S3 drives both and listens on CAN.

Current revisionRev. F, 2026-10-21 (adds the strobe switch). Rev. D and E are in shipped FRAMEs.
ControllerSeeed XIAO ESP32-S3
RGB LEDs136 × SK6812-EC20 in 4 rings
White LED3-chip 2835, constant current 100 mA (ZXLD1350), PWM dimmed
Supply12 V from the bus. On-board buck (TPS54560) makes 4.7 V / 5 A for the LEDs
FirmwareUC2_canopen_slave_led, in the web flasher as "LED / illumination satellite"
CAN node30. One node for both: the rings are the LED array, the white LED is laser id 4 on the masters.
SourcesKiCad project · schematic PDF

LED rings​

RingLEDsRadius
inner ("Zernike")209.0 mm
middle2812.25 mm
big4015.5 mm
outer4818.75 mm

The data line runs from the inside to the outside, so LED index 0 is on the inner ring. The centre of the board is open for the white LED and its optics.

All 136 LEDs at full white would draw about 5.4 A, more than the 5 A the buck delivers. Keep full-white patterns below full brightness, or light only some of the rings. The LED rail is 4.7 V on purpose: the 3.3 V data signal from the XIAO is then still read as high by the SK6812.

Connectors​

Top view with silkscreen

RefTypePin 1 → nUse
J101JST XH 4, SMD side entryCAN_L, CAN_H, +12 V, GNDbus. The pad numbers of this footprint run the other way round than on the through-hole jacks of the other boards. Go by the silkscreen, not by the pin number.
J1024-pin headerGND, +5 V, DIM_WLED, NEOPIXELLED rail and both control signals, for driving an external light source or feeding signals in
J1033-pin header (VDG)+5 V, data, GNDNeoPixel chain continues here
J13013-pin fan headerGND, fan supply, tachofan. Supply voltage set by an MCP4017 digital potentiometer on I2C.

XIAO pinout​

XIAO pinESP32-S3 GPIOFunction
D01I2C SDA (fan potentiometer)
D12thermistor 1 (ADC)
D23NeoPixel data
D34white LED dimming (PWM, 10 kHz to 1 MHz)
D45CAN TX
D56CAN RX
D643I2C SCL
D744fan tacho
D87Rev. F: STROBE. Up to Rev. E: thermistor 4.
D98thermistor 3 (ADC)
D109thermistor 2 (ADC)

The thermistors are 10 kΩ NTCs on the board, buffered by an LM324. Up to Rev. D, D0 and D1 were touch pads. They were removed in Rev. E.

White LED strobe (Rev. F)​

For stop-motion imaging while the stage moves, Rev. F can overdrive the white LED in short pulses. A MOSFET (Q101, gate on D8) pulls the LED cathode straight to ground and bypasses the constant-current driver.

  • The peak current is not regulated. It is (12 V − Vf) / (R103 + R105 + LED), roughly 0.3 to 0.5 A depending on the LED.
  • The LED is rated 120 mA DC and 240 mA pulsed. Keep pulses at 10 to 20 µs and the duty cycle below 1 %.
  • Pull DIM_WLED low first (driver off), then fire STROBE from a hardware timer (RMT or MCPWM). A software delay is not precise enough and a stuck-high pin kills the LED.
  • R105 is fitted with 0 Ω for maximum light. 1 to 4.7 Ω lowers the peak.

Solder jumpers​

JumperWhen closed
JP801120 Ω CAN termination. Close only at a physical end of the bus.
JP802CAN activity LED

Firmware​

EnvUC2_canopen_slave_led
Pin mapmain/config/UC2_canopen_slave_led/PinConfig.h
BusCANopen, 500 kbit/s, node 30
USBserial JSON over USB-CDC

The pin map still lists D8 as the fourth thermistor. Strobe on D8 is a Rev. F hardware feature.

Flash it as described in Flashing the firmware. Test commands, over USB or through the master:

{"task":"/ledarr_act","led":{"action":"rings","radius":3,"r":0,"g":255,"b":0}}
{"task":"/ledarr_act","led":{"action":"halves","region":"left","r":255,"g":255,"b":255}}
{"task":"/ledarr_act","led":{"action":"off"}}
{"task":"/laser_act","LASERid":4,"LASERval":300}

The last line dims the white LED through the master. Directly on the board's USB port it is LASERid 0. All pattern options are in the serial command reference.


Boards: shop.openuc2.com. Questions: openuc2.discourse.group.