View Single Post
  #3   Spotlight this post!  
Unread 10-04-2013, 14:15
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,753
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Make Robot Glow with Alliance Colors Automatically

It's also possible to do this with a single Spike relay instead of two... Simply wire the LED's backwards of each other - for example, red gets its + wire to M+, and its - wire to M-, while blue gets its + wire to M-, and its - wire to M+. Put the spike in forward, one will light up. Put it in reverse and the other will light up. For the default/invalid state, turn it off.

This works because LED's are, above all else, a diode - they only conduct electricity (well, in an ideal world... in the real world there is some leakage) in one direction, and not the other. Thus, when powered "backwards", an LED won't light up!
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA