Thread: RGB LED Lights
View Single Post
  #2   Spotlight this post!  
Unread 22-12-2016, 09:14
bobbysq bobbysq is offline
Registered User
FRC #4646 (Team ASAP)
Team Role: Leadership
 
Join Date: Apr 2016
Rookie Year: 2015
Location: Des Moines, IA
Posts: 250
bobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud of
Re: RGB LED Lights

Quote:
Originally Posted by ABreyen View Post
I've heard that using a co-processor like a rPi or Arduino is illegal. If this isn't possible, how do teams use LEDs on their robot?
Who told you that? Please tell them to read the manual.

Use of these is fully legal, as long as you don't plug them into motor controllers. For these LEDs, I would recommend using a relay with an Arduino to turn them on and off. Since they're by channel instead of individually addressable, you'll turn on a channel by turning one of the relays on.

As for getting the alliance color, WPILib provides a DriverStation API that can tell you what alliance you're currently on. You can then pass this on through I2C, serial, or SPI to the Arduino.
Reply With Quote