How to change rgb led color with a switch (without micro-controller)?

Status
Not open for further replies.

farhang_760

Newbie level 6
Joined
Mar 8, 2015
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
107
Hi
I want to find a way, to controll rgb led color (specific color for example 5 or ten specified color) with a tact switch and without micro-controller. on the other hand want to use simple and cheap material.
thanks for your help
 

Cheapest solution will be the microcontroller. Simplest will be the logic like counter IC. Just make it count and attach driver to output.
 

Cheapest solution will be the microcontroller. Simplest will be the logic like counter IC. Just make it count and attach driver to output.

with microcontroller whats your suggestion (low cost)? do you have any sample schematic?
thanks
 

Assuming that red is the MSB, green the middle bit, and blue is the LSB, any 3 bit binary counter would provide the following sequence:

RGB
000 black
001 blue
010 green
011 cyan
100 red
101 magenta
110 yellow
111 white
repeat....

You could use one half of a 74C393.
The switch would have to be debounced. Google switch debouncing.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…