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

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

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