Projects / Magnifier ring light

Magnifier ring light

Beginner1 hGuided buildReviewed

Build it step by step

0 of 6 done
  1. NANO13.9 mA

    Wire the ring

    Add the capacitor first, then the data resistor.

  2. NANO

    Test the colours

    Upload and check the three modes.

  3. NANO

    Add the dimmer

    Wire the potentiometer and check the brightness range.

  4. NANO13.9 mA

    Mount the ring

    Fix it around the lens with a card spacer and a diffuser.

  5. NANO

    Add the arm

    Mount it on a flexible gooseneck or a clamp.

  6. NANO

    Check your joints

    Use it to inspect a solder joint.

In short

How do you build a magnifier ring light?

A ring of white LEDs around a magnifier with a dimmer for inspecting solder joints. You need WS2812B ring 16 LEDs, Arduino Nano, Potentiometer 10 kΩ, Tactile push button 6 mm, 5 V 2 A USB adapter, Resistor 330 Ω and Electrolytic capacitor 1000 µF. It takes 6 steps and about 60 minutes.

Level
Beginner
Time
About 60 min
Parts
7

Parts list

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
5 V USB adapter +LED ring 5V, Nano 5V pin and capacitor +Power
5 V USB adapter -LED ring GND, Nano GND and capacitor -Common ground
1000 µF capacitorAcross 5V and GNDSmooths power
Nano D6330 Ω resistor then LED ring DINData
Potentiometer outer pinsNano 5V and GNDBrightness control
Potentiometer wiperNano A0Reads the knob
ButtonNano D2 and GNDCycles white, warm and cool

Code

Arduino IDE, board "Arduino Nano" (processor ATmega328P, or ATmega328P (Old Bootloader) for clones). Install "Adafruit NeoPixel". At full brightness 16 LEDs can draw close to 1 A, so use a 5 V adapter of at least 2 A and keep the capacitor and the data resistor in place. Look at the light through a diffuser (a ring of tracing paper works) rather than directly, since close LEDs are very bright.

Runs on a virtual Arduino Nano in your browser, with sliders for the sensors. Happy with it? Verify and upload to your real board from the same page (Chrome or Edge on a computer).

#include <Adafruit_NeoPixel.h>

Adafruit_NeoPixel ring(16, 6, NEO_GRB + NEO_KHZ800);
const byte BTN = 2, POT = A0;
byte mode = 0;                                   // 0 neutral white, 1 warm, 2 cool
const byte COLOURS[3][3] = { {255, 244, 229}, {255, 190, 110}, {200, 220, 255} };

void setup() {
  pinMode(BTN, INPUT_PULLUP);
  ring.begin();
}

void loop() {
  if (digitalRead(BTN) == LOW) { mode = (mode + 1) % 3; delay(300); }
  int knob = analogRead(POT);
  byte level = map(knob, 0, 1023, 8, 255);       // never fully off so it stays visible
  ring.setBrightness(level);
  for (byte i = 0; i < 16; i++) ring.setPixelColor(i, ring.Color(COLOURS[mode][0], COLOURS[mode][1], COLOURS[mode][2]));
  ring.show();
  delay(20);
}

Test checklist

What you should see at each check. If a reading is far off, stop and use the troubleshooting list.

CheckExpected
Power onNeutral white at the knob's level
Turn the knobBrightness changes smoothly
Press the buttonCycles warm, cool and neutral
Full brightnessAdapter does not get hot

If it does not work

Random colours

Common ground or data resistor missing.

Flicker at full brightness

Adapter is too small or the capacitor is missing.

No light

Check DIN is the input pad on the ring.

Colour looks off

Edit the three colour triplets to taste.

Still stuck? Find the fault step by step with your multimeter →

Ask Lark AI

Common questions

What parts do I need for the magnifier ring light?

WS2812B ring 16 LEDs, Arduino Nano, Potentiometer 10 kΩ, Tactile push button 6 mm, 5 V 2 A USB adapter, Resistor 330 Ω and Electrolytic capacitor 1000 µF.

How long does the magnifier ring light take to build?

About 60 minutes for a beginner maker, in 6 steps.

How do I know the magnifier ring light works?

Power on: Neutral white at the knob's level. Turn the knob: Brightness changes smoothly. Press the button: Cycles warm, cool and neutral.

Random colours: what should I check?

Common ground or data resistor missing.

Flicker at full brightness: what should I check?

Adapter is too small or the capacitor is missing.

No light: what should I check?

Check DIN is the input pad on the ring.

Colour looks off: what should I check?

Edit the three colour triplets to taste.