![]() ![]() |
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 |
|
|
|
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.
|
|
|
|
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.
|
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 7th September 2010 - 01:00 PM |