DEV Community

MiroRi
MiroRi

Posted on

Setting the brightness of the LED switch

I discovered an interesting switch on the market with an LED light in the lever. I have four LED colors, red, green, blue and white. According to the manufacturer, it is designed for 12V DC, i.e. direct current. However, the indicator light shines with a very strong brightness, it is unpleasantly dazzling when working indoors.

On Off switch with LED indicator

Wiring:

Connection example

What about that? Simply put a resistor in the path before the GND terminal, e.g. 1k2 and it's done. WARNING! This point will no longer be ground (GND) for the device but only for the LED switch. We calculate
the resistance R according to the formula R=U/I.

For more info, see hobbyport.electronics...
The website contains a translator

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay