0

RGB pushbutton for PC
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

RGB pushbutton for PC

by SisU on Thu Feb 14, 2019 10:07 am

Hi

I am looking for a power button with rgb for my pc. I found this https://www.adafruit.com/product/3350 on here.

Now I'm wondering if/how I can wire this to my motherboard and how do I control the color?

Thanks in advance.

SisU

SisU
 
Posts: 2
Joined: Thu Feb 14, 2019 10:05 am

Re: RGB pushbutton for PC

by adafruit_support_mike on Sat Feb 16, 2019 12:49 am

The wiring to your computer will depend on the hardware.

If you have an ATX power supply, one line (usually green) is the power-on signal. Connecting that line to GND tells the power supply to turn on. There's usually a secondary connection to GND controlled by the motherboard so the supply can turn off automatically when the OS is done with its shutdown procedure.

Check the hardware documentation for your own computer to see how the power control works though.

The LEDs built into the switch all share a common connection to positive voltage. You can connect that to one of the computer's 5V lines. Each LED has its own connection to GND, and will light up when you close that connection.

If you only want to display red, green, or blue, you can make the connections directly to GND. LEDs of different colors operate at different voltages though.. around 1.7V for red LEDs, 2.1V for green LEDs, and 3V for blue LEDs. If you connect the red LED directly to GND, the blue and green LEDs can't light up. The green LED will choke out the blue one, but not the red one.

If you want to mix colors, you can add resistors between the LEDs and GND so each one can operate at its preferred voltage. A 150-Ohm resistor between the green LED and GND, and a 220-Ohm resistor between the red LED and GND should work.

adafruit_support_mike
 
Posts: 57056
Joined: Thu Feb 11, 2010 2:51 pm

Re: RGB pushbutton for PC

by SisU on Sun Feb 17, 2019 8:31 am

Thanks for the answer. Don't know much about resistors but I will look in to that.
Thanks again.

SisU
 
Posts: 2
Joined: Thu Feb 14, 2019 10:05 am

Please be positive and constructive with your questions and comments.