Beauty electronics · Camera-guided lighting

AI nail-lamp electronics.Vision, light and control.

A camera-guided nail-curing design that connects nail segmentation, individually controlled LED channels and timed local control. Explore the electronics behind the lighting system.

  • 109-channel lighting architecture
  • STM32 local control
  • Camera-to-light mapping
  • USB-C & battery power design
KiCad three-dimensional design view of the nail-lamp STM32 control board and its vision, driver and guard interfaces
Control-board design view · Vision, LED-driver and hardware-guard interfaces

Separate vision from real-time control.

The architecture gives image processing, LED timing and hardware gating distinct responsibilities. The screen requests an operation; local control determines when lighting is permitted.

Camera-to-light control path
VISION & OPTICAL MAPPING
CAMERATimestamped framesHand position and nail regions
SEGMENTATIONNail contoursPixel-level lighting boundaries
CALIBRATIONChannel permitsMatch full light footprints

The mapping must account for wavelength, hand height, optical spread and motion. A detected rectangle alone is not a lighting boundary.

LOCAL CONTROL & LED DRIVE
UART LINKFrame validationSequence, age and CRC checks
STM32G071Timed state machineStart, qualify, run and stop
7 × TLC5940112 driver outputs109 lighting channels allocated

The local controller owns the timer and channel data. Three unused outputs remain off.

POWER & HARDWARE GATING
INPUTUSB-C power designContract and current budgeting
ENERGY4S battery architectureCharging and system-load allocation
GUARDIndependent gatingWatchdog and output-disable path

Power allocation, temperature inputs and fault signals form part of the illumination decision.

VISION PROCESSING

Find the nail contour

The software interface accepts a nail-probability map and a measured footprint for each light channel. A channel is permitted only when its complete mapped footprint falls inside the selected nail region.

LED CHANNEL CONTROL

Independent light commands

Seven 16-channel TLC5940 drivers provide a 112-output chain. The 109-channel allocation leaves three outputs disabled; brightness commands are bounded by the available power budget.

LOCAL TIMING

Keep exposure timing local

The control logic includes 9, 15 and 20-second intervals. Explicit start, stable-frame qualification, timed completion and latched faults keep the operating sequence independent of screen refresh.

HARDWARE GATING

A separate path to turn light off

The GUARD interface separates the lighting request from hardware permission. Watchdog recovery, output blanking, reset behavior and temperature inputs belong in one defined control sequence.

POWER MANAGEMENT

Budget the whole system

USB-C input power is shared by the processor, display, lighting and charging. The charge-current calculation reserves system power before allocating the remainder to the battery.

DISPLAY & CONNECTIVITY

Make controls fit the product

The user interface can bring together mode selection, countdown, battery information and fault messages. Display dimensions, camera optics and connectivity are selected around the enclosure and product brief.

Follow the signals through the board.

These images are exported from the editable KiCad designs. The local controller and LED driver use separate interfaces for data, timing, power and output permission.

KiCad PCB routing view: Local controller · top copper
PCB DESIGN VIEWLocal controller · top copperSTM32 control, vision UART, driver chain, buttons, charger and GUARD connections.
KiCad PCB routing view: 16-channel LED driver · top copper
PCB DESIGN VIEW16-channel LED driver · top copperTLC5940 routing with serial control, channel outputs and power connections.

A lighting decision has several checks.

The image-processing path proposes which channels may be used. The controller checks freshness, configuration, power and hardware permission before applying that decision.

01 / RECOGNITION

Contour, confidence and stability

Use segmentation rather than a bounding box. High-confidence regions, an inward margin and consecutive stable frames define the software input to optical mapping.

02 / LIGHT MAPPING

Match the whole footprint

Compare each channel’s calibrated optical envelope with the nail region. Wavelength, hand height, camera alignment and motion allowance determine the envelope.

03 / FRAME VALIDATION

Reject outdated commands

The V2 message format carries a frame sequence, source age, session identifier, calibration identifier and CRC. Invalid, stale or mismatched data clears lighting permission.

04 / LOCAL EXECUTION

Start deliberately. Stop predictably.

The controller progresses through arming, qualification and timed operation. A stop request or fault returns the outputs to the off state; a recovered fault requires a new start.

Optics and electronics define the result together.

A useful product brief connects the desired curing behavior to measurable optical, thermal and electrical requirements. Those requirements guide LED selection, board layout and the software calibration.

OPTICAL DESIGN

Wavelength, coverage and dose

Define the 365/405 nm light-source arrangement, nail-side coverage, allowed hand positions and gel-specific curing requirements. LED count alone does not define curing performance.

MECHANICAL DESIGN

Start with the hand space

Camera position, LED angles, reflections, enclosure clearances and service access determine where boards and wiring can sit. Share the internal geometry together with the industrial design.

POWER & THERMAL

Treat charging and lighting as one load case

Specify adapter power, battery capacity, peak lighting demand and ambient temperature together. Source switching and charge termination need to account for the system load.

BUILD PLANNING

Review cost against the production quantity

Compare board consolidation, connector count, sourcing and test time at the required volume. Material choices and assembly scope follow the agreed electrical and optical requirements.

Your beauty-electronics project

Define your next nail-lamp controller.

Share the lighting concept, camera and screen requirements, power source, enclosure dimensions and expected quantity. Start with a product brief or attach your existing design files.

Files are optional to start. The inquiry link includes this project reference.