85Views12Replies

Author Options:

Help with a simple led circuit? Answered

Hi all,

id id like to help my son with a simple school project. He wants to mod a mouse by replacing the cover with a clear cover and adding an rgb led that he can switch with a push switch, powered from the 5v usb. 

So I need a little circuit to turn on, and switch colours on an rgb led via push switch, powered by 5v. 

I just want want a simple but complete circuit, not to use an ardino or anything like that as space will be tight. 

Id id really appreciate your help. 

Thanks

Jon



Discussions

0
None
Jon_uk

3 years ago

Thanks everyone for your help. Much appreciated!

0
None
-max-

3 years ago

If you want to use a USB interface to change the color of the LED, you will have to use some sort of microcontroller like arduino. That would either involve programing something like arduino and a program on the computer or possibly hack an already existing solution like those backlit keyboards. Doing that from scratch with a microcontroller would be a challenge for someone not familiar with programming, and hacking another device to make this may not allow you the flexibility in design you probably need.

0
None
-max-iceng

Answer 3 years ago

I explicitly said in my comment "if you want a USB" interface. OP is looking for an LED that can change color on demand.

0
None
iceng-max-

Answer 3 years ago

You certainly did explicify and I do not contradict you, but you should know there is an LED that changes color by the applied voltage (I tested one) so color involves shorting different series resistors with push buttons and no uP or Cmos gate needed....

Anyway this OP just registered, is vague ( hope he's reading us ) and this is a learning opportunity site..

So I am showing him what is available.

Space is tight so a 27 ohm 1/8W resistor and a 5mm LED in series is a small fit into any space a Father can find.

0
None
-max-iceng

Answer 3 years ago

Oh, OK then, I've never heard of a LED that changes color like that. Only LEDs I have seen change color are those pale lime green ones that turn yellow and orange when overvolted. (and fail shortly afterwards lol :) )

0
None
iceng-max-

Answer 3 years ago

Your an honest man...

0
None
steveastrouk-max-

Answer 3 years ago

Well yes, but he says

"So I need a little circuit to turn on, and switch colours on an rgb led via push switch, powered by 5v." That can be done with a CMOS gate

0
None
Downunder35m

3 years ago

Just take a RGB led with build in circuit like used on most garden lights.
Select a suitable resistor for the 5V supply and a switch, jobs done.