FRC Teams, Does your robot have a Talon SRX with a spare feedback port? Find out how to quickly add LED Strip Control to your robot using Talon SRX at our booth (St Louis FRC World Championship).
Anyone get there to ask about this? I had planned on it, but was too busy watching matches and cannot find anything about it on their site or in their example code (but ask my wife, I have been known to not see things right in front of me on more than one occasion).
Then in HERO you can call something similar to …
aTalon.SetOutputPin(pinIndex, dutyCycleMs, periodMs)
… and therefore control a common-anode LED-strip.
Same routine will be available for the FRC languages; we are in the middle of redesigning our HERO/FRC library build system, so it hasn’t been released yet.
So if you want to add an LED strip to your robot and there is a Talon on your bus with no sensor, you can install this inexpensive low-side driver module, and then in software control color and brightness.
The Talon’s motor output is unaffected. So it can be in follow mode, or PercentVoltage, or VoltageComp, or similar.
The LED strip is common-anode. So +12V goes to the LED strip’s anode, and the R,G, and B cathode-ends go to the driver module, which switches low side.
I don’t believe there are any rules this season requiring turning off LEDs in disabled mode that would have prevented this use.
You can do this now with other submodules like Arduino in both disabled and enabled loops (please correct me if I’m wrong).
So likewise there isn’t anything in the Talon firmware that would prevent updating your LED strip.