A-WIT Forums

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Different LED Color Based on Polarity
Tom_Tom
post Mar 9 2010, 08:56 AM
Post #1


Member
**

Group: Members
Posts: 19
Joined: 23-September 07
From: Hollister, California
Member No.: 886



Hello all,

Is there a way to implement a circuit so a bi-color LED can be connected to a reed switch and it will light up "Color A" when one polarity of the magnet is given and "Color B" when another polarity is given.

Any help would be greatly appreciated.

TOM


--------------------
To Do List:

1: Surf
2: Code
3: Repeat
Go to the top of the page
 
+Quote Post
Orlando Hernande...
post Mar 9 2010, 06:03 PM
Post #2


Advanced Member
***

Group: Administrators
Posts: 1,000
Joined: 22-October 06
From: Williamstown, NJ
Member No.: 5



You need a single pole, double trow switch. The common will be connected to the power supply, say 5V, and then each throw to supply each of the LEDs in the bi-color LED. See this type of usage with part CS511000 in page 51 of the CS310XXX (µC 101) Reference Guide Manual. These parts are the double LEDs that you will see in the schematic, but instead of connecting, say to pins 1 and 2 of the C Stamp, you will connected to the throw contacts of the switch.
Go to the top of the page
 
+Quote Post
hbran
post Mar 10 2010, 09:47 AM
Post #3


Advanced Member
***

Group: Members
Posts: 134
Joined: 16-September 07
Member No.: 793



If the switch is not needed for the project...couldn't ya just attach the led to 2 pins of stamp and use interrupts for trigger with the magnet? Would be less components and wiring.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 7th September 2010 - 01:00 PM