View Single Post
  #12   Spotlight this post!  
Unread 17-07-2013, 16:13
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Legality of Arduino Programming

Quote:
Originally Posted by jwallace15 View Post
However, the UNO may work for you. 33 has an uno controlling their LED's.
The LED's are Shift Brite's from SparkFun.

They are essentially 32-bit shift registers with 10-bit per color 3 color PWM controls (and 2 extra bits). So we chain them together and use 3 Arduino pins for all of the LED's. We have the software setup for a 4x32bit chain, and there are 8 LED's, so the second half of the string is a 1-cycle old mirror of the first half of the string.

The cRio uses 3x digital lines (relay 6,7,8 forward channel) to send a 3-bit command word to the Arduino. The lines are driven via a shift register in the DSC, and are high side driven, so we have pulldown resistors added also. I believe the arduino uses the 6v power supply on the digital sidecar but I could be wrong.

The cRio runs a state machine to get the command word (0-7) and outputs it on the 3 bit output. The Ardiuno turns the command word back into a number. The color of each of the 4 LEDs is defined for each mode, there is no further logic in the arduino now, although mode 0 used to fade between colors during disabled mode.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
Reply With Quote