Saltar al contenido
Hub Nexus
Actualizado

AutorAún sin autorAsumirla

¿Ves algo que mejorar? Propón un cambio.

Apoyo

Esta página es pública.

A closed-loop "self-driving" lab does not have to be expensive. A team built one for physics teaching from an Arduino microcontroller, eight LEDs and a light sensor, using only commercially available parts and open-source software. Its job: reproduce a target colour spectrum. Three machine-learning methods compete to do it, so students see their strengths and limits first-hand.

The setup

Schematic of the closed-loop platform: a target spectrum, a control stack, an LED array and a light sensor, with three algorithms

Figure 1 of the paper, arXiv:2604.13139 (2026), CC BY 4.0; changed here: shown as a picture on a page.

A computer runs the optimization and picks candidate voltages. The Arduino passes them to a digital-to-analog converter, which drives eight LEDs of different wavelengths. A multichannel light sensor (AS7341) reads the result in ten channels — eight narrow visible bands from about 415 nm to 680 nm, plus a clear and a near-infrared channel. The computer compares the measured spectrum with the target and adjusts the voltages, and the loop repeats. Firmware is written in the Arduino IDE and the algorithms in Python with NumPy and PyTorch. The hardware list covers the sensor, converter, Arduino Uno, 3D-printed holders, LEDs, wires, breadboard and cable.

Workflow of the closed-loop platform

Figure 2 of the paper: the system workflow. arXiv:2604.13139, CC BY 4.0; changed here: shown as a picture on a page.

Three ways to find the right voltages

  1. Traversal. A brute-force search through a tree of candidate voltages. A coarse 0.1 V step is quick but only partly matches the target; a finer 0.05 V step matches better and takes longer.
  2. Bayesian optimization. A probabilistic model of the voltage-to-spectrum relation, with confidence intervals, sharpens as data arrive. After 400 iterations predicted and measured spectra were nearly indistinguishable.
  3. Deep learning. A convolutional neural network trained on a synthetic dataset of about 100,000 voltage–spectrum pairs, made by summing the measured response of each LED at random voltages. It predicts the voltages directly from a target spectrum. Two sizes were tested, with filters 32–64–128 and 64–128–256; the larger matched the target more closely.

Traversal search through voltage space and its spectra at two step sizes

Figure 3 of the paper: traversal. arXiv:2604.13139, CC BY 4.0; changed here: shown as a picture on a page.

Bayesian optimization at the start, after 10 iterations and after 400

Figure 4 of the paper: Bayesian optimization. arXiv:2604.13139, CC BY 4.0; changed here: shown as a picture on a page.

Dataset construction and preprocessing for the neural network

Figure 5 of the paper: building the training data. arXiv:2604.13139, CC BY 4.0; changed here: shown as a picture on a page.

The convolutional neural network and its results for two filter configurations

Figure 6 of the paper: the neural-network controller. arXiv:2604.13139, CC BY 4.0; changed here: shown as a picture on a page.

How they compare

Time per spectrum, in seconds, as listed in the paper (for the neural network, the first figure is training time):

MethodSettingOptimization or trainingPrediction
Traversal0.1 V step397.8–
Traversal0.05 V step2861.5–
Bayesian10 iterations27.1–
Bayesian400 iterations1119.4–
Neural network32, 64, 128 filters8696.62539
Neural network64, 128, 256 filters2760.998

The paper's takeaways:

  • Traversal is simple and cheap to compute, but slow to converge and sensitive to its starting point and to noise. It is a useful baseline.
  • Bayesian handles noise well and quantifies uncertainty, but needs more complex computation and careful calibration of priors.
  • Deep learning captures nonlinear relationships best and infers quickly once trained, but needs training data and computing power.

The authors suggest choosing by need: traversal for quick deployment with few resources, Bayesian where uncertainty matters, deep learning for high accuracy with plenty of data.

Limits

The sensor's resolution and dynamic range restrict accuracy compared with high-end spectrometers, and LED drift and stray light can affect reproducibility. The authors propose better detectors, active calibration and hybrid controllers. A lab guide, code, firmware and datasets are published openly on Zenodo and GitHub.

Sources

IdiomasEnglish

Licencia: CC BY 4.0 · Adaptado de arxiv.org

Puntos de vista

Comentarios

Spinner Logo
Versión: 2CC0 1.0 (dominio público)
The runaway star that left the Tarantula Nebula
Versión: 2CC0 1.0 (dominio público)
The Eagle Nebula, seen in the infrared
Versión: 2CC0 1.0 (dominio público)
The Cosmic Cliffs are not cliffs
Versión: 2CC0 1.0 (dominio público)
The recommended targets are real, but the largest health gain is between doing nothing and doing a little. That is the part worth knowing if you are starting from nothing.
Versión: 2CC0 1.0 (dominio público)
Sleep is not one state but a cycle through several, each doing different work. Most sleep disorders are a failure to complete that cycle rather than a shortage of hours.
Versión: 2CC0 1.0 (dominio público)
Four nebulae that revealed the shape of our galaxy