Browse article archive

Building a magnetic desk lamp

Read the Chinese original

I liked the warm light of camping lanterns and needed a desk lamp, so I built one.

Electronics

Four warm-white 1206 LEDs provide the light. An 18650 cell powers the board, a TP4056 manages charging, and USB-C supplies power and charges the battery. The schematic was no longer available when I wrote this; the board layout and assembled board are below.

Desk lamp circuit board layout

Circuit board after surface-mount assembly

Housing

I put grooves like a concave Fresnel lens in the top and long sides to spread the light. The housing was printed in three materials. The clear top was left unpolished to give it a frosted finish.

Finished desk lamp

Diagram of a concave Fresnel lens