1
\$\begingroup\$

My desire is to have a simple setup with a dial device (ideal would be a 3 click dial with 3 distinct settings but an analog dial would also be appropriate) whereby position 1 would display a color (yellow, for example) and position 2 would display red and positoin 3 would display blue. The only programming involved would need to set the colors to each position.

I have managed to do this with a very, very pooly crafted arduino but it feels like this is overkill for a simple project. I also think that it can be made fairly inexpensively with a little knowledge. I have tried to look up RGB drivers and this seems to be the way to go but there are a lot of choices. I also looked up a 555 IC timer, which looks like it would be fun to play with but probably not the right choice for this.

If anyone has a direction for my reading, experience, or other pearls of information I would very much appreciate any help.

\$\endgroup\$
2
  • \$\begingroup\$ What kind of LEDs are you driving? 4-pin RGB leds (R,G,B,cathode), or programmable ones with integrated controller (e.g. WS2811)? \$\endgroup\$ – Tim Apr 30 '13 at 22:57
  • \$\begingroup\$ I cleaned up the "hello ... than you " etc. here you say thank you by upvoting replies. \$\endgroup\$ – placeholder Apr 30 '13 at 23:06
1
\$\begingroup\$

If I'm understanding your question right, you can accomplish this with a simple (and I mean simple!) circuit. Assuming your "dial device" operates like a switch, here is a circuit which assumes you just have a 2 state dial. Adding more LEDs is very simple; just add another LED to a different output of the dial switch.

If this isn't what you were describing, give me a little more detail in a comment and I can help you resolve it.

\$\endgroup\$
4
  • \$\begingroup\$ Thank you for your reply. I should have specified that I wanted to use a single 4 lead RGB LED and have the light change based on switch setting and not power a separate LED with each one. \$\endgroup\$ – user1525635 May 1 '13 at 21:55
  • \$\begingroup\$ You can apply this same concept to each pin on the 4 lead LED. A 4 pin LED is basically 4 LEDs combined into a single package. You can also put a single resistor on the common ground pin rather than a resistor before each anode. \$\endgroup\$ – Jay Greco May 2 '13 at 1:18
  • \$\begingroup\$ @Radrider33 a 4 pin led is normally 3 diodes (R/G/B) and Common Anode or Cathode pin, not 4. \$\endgroup\$ – Passerby May 2 '13 at 2:40
  • \$\begingroup\$ Ah! Foolish mistake. I was thinking RGB, but then wrote 4 LEDs for some reason. Good catch. \$\endgroup\$ – Jay Greco May 2 '13 at 4:06
0
\$\begingroup\$

An official/commercial Arduino would be overkill for this. So you can go with a smaller, bare bones Arduino clone. Some are as simple as a ATMega and a few component parts. The other option is using an Attiny with arduino code, essentially the same thing, but with a smaller MCU. A msp430 could just as easily do the same.

Honestly, any microcontroller could do simple RGB led displays and general input.

\$\endgroup\$
1
  • \$\begingroup\$ Thank you for the reply. I have just started to look into the more simple microcontrollers and will look at all of these. Because I agree, the arduino is much overkill. W \$\endgroup\$ – user1525635 May 1 '13 at 21:57
0
\$\begingroup\$

The most expensive part will be the switch. What switch/dial do you already have?

It may be that a $0.50 potentiometer, and a $2 Attiny85, will actually be cheaper than an actual three-way mechanical rotary switch! The Attiny85 (and friends) can run Arduino sketches if you have a USB programmer, and it has an analog input for the pot, and several digital outs for the light.

\$\endgroup\$
1
  • \$\begingroup\$ THank you as well. I am looking for all my pieces and haven't got a formal switch/dial yet. I used the one that came with my sparkfun kit up to this point. There are so many different parts out there its hard to know what to choose. Also, I can't upvote you for your answer because I don't have enough EE cred yet. Which is fair. \$\endgroup\$ – user1525635 May 1 '13 at 21:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.