3 Position LED Control


my brother , new arduino, have played with changing colours of leds that's it. have 3 position switch want able use select different 'modes' leds along middle off position. have no idea start this. leds have 3-pin rgb leds strips radioshack designed arduino. power requirements 12v @ 1amp, individually addressable. have arduino uno.

any appreciated. thinking sort setup switch connected power , 2 different pins, on pin when active activate on piece of code changing leds accordingly, , vis versa.

thanks guys!

hi mistermimobot, , welcome.

your plan sounds me.
except part plan connect switch call 'power'.
i guess mean 5 volts that.
you that, recommend connect center pin of switch gnd.
then can enable internal pull of input pin.
now, if have switch @ center position, bot inputs high.
and if flip switch 1 side, pin on other side of switch pulled towards low.
you can read that.
that simplest way this.
there ways 1 input pin, starters better keep things simple.

of course understand it's cool play nice colors , have instant results.
but still i'd suggest find examples in ide , play those.
so first have @ example does, change bit , see whether expected or not.
that's lot of fun , you'll learn lot.
and doing you'll meet different ways use leds, switches , buzzers.
you'll learn how use timers in correct way (blink without delay hot item on here).

lots of success, , not least lots of fun !


Arduino Forum > Using Arduino > LEDs and Multiplexing > 3 Position LED Control


arduino

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support