|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: How does this robot have addressable LEDs still running when disabled?
Digital output channels can still be controlled in disabled. I believe serial interfaces are as well. They could also have a coprocessor (arduino) controlling the strip...
So lots of possibilities. |
|
#2
|
||||
|
||||
|
Re: How does this robot have addressable LEDs still running when disabled?
They're running off a dedicated LED processor. RoboRIO only gives 'commands' via digital I/O. We do the same thing on our robot. We use an arduino, not sure what they use tho.
|
|
#3
|
||||
|
||||
|
Re: How does this robot have addressable LEDs still running when disabled?
You also have these
http://www.adafruit.com/products/2238 which operate on the SPI communication channel, which has no data limits. |
|
#4
|
||||
|
||||
|
Re: How does this robot have addressable LEDs still running when disabled?
Quote:
We are looking to do the latter and have some questions about transferring the information from the roboRIO to the arduino. |
|
#5
|
|||
|
|||
|
Re: How does this robot have addressable LEDs still running when disabled?
the wpi libraries give nice functions for i2c communication as well as Serial (usb) communications.The arduino can also communicate using both of these methods. The only caveat is of course that you will likely have to write the code on both sides to properly interpret messages.
Theres also the fact that i2c and serial dont work very well on the roborio. Last I remember the i2c port on the actual roborio doesnt work and you need to use the mxp i2c pins. |
|
#6
|
||||
|
||||
|
Re: How does this robot have addressable LEDs still running when disabled?
Thanks everyone!
Quote:
This year we just have a single-colored 12v LED strip plugged into the PCM (so we can toggle it). Next year we want to do RGB LEDs. If we use an Arduino and talk to the Arduino via roboRIO's digital I/O, does it just tell the Arduino which sequence to do (and then the Arduino has the actual code for the LEDs) or does the roboRIO have to send other data? |
|
#7
|
|||
|
|||
|
Re: How does this robot have addressable LEDs still running when disabled?
Quote:
This is not a good idea since the PCM can only output a maximum of 500 mA total on the solenoid channels. You would be much better off running it off a spike. |
|
#8
|
|||
|
|||
|
Re: How does this robot have addressable LEDs still running when disabled?
I'm guessing there isn't an "MATCH OVER" state to allow teams to fold up / display "TEAM 1640" on their LED lights.
|
|
#9
|
||||
|
||||
|
Re: How does this robot have addressable LEDs still running when disabled?
Quote:
We don't have any spikes but might get one if it really isn't good to power LEDs through the PCM. The inspector didn't say anything about it though. |
|
#10
|
|||
|
|||
|
Re: How does this robot have addressable LEDs still running when disabled?
1076 electrical mentor here.
The LEDs are driven by a Pololu A-Star 32U4 (more or less an Arduino Leonardo). This is connected to the serial output on the RoboRIO's MXP. When powered on, it runs the idle animation and waits for serial data. Once it receives data, it does a boot-up animation and then the main one (stripes that move back and forth with the motors they're next to). If no data is received for 750 milliseconds, it does a shutdown animation and then back to the idle. The RoboRIO sends a single byte every time it runs through the control loop during autonomous and teleop to tell it which motors are moving which direction. We aren't actually telling it to run the idle animation, it just falls back to it when there's no data. If anyone's curious, we're powering the LEDs with one of these http://www.mini-box.com/DCDC-USB. We initially bought it for our Jetson TK1, but that didn't end up making it onto the robot this year. |
|
#11
|
|||
|
|||
|
Re: How does this robot have addressable LEDs still running when disabled?
Is it legal just to use an NPN transistor to drive the LED strip? drive the transistor from the DIO on the roborio. power form a fused output on PDB.
I don't see anything in rule 44 forbidding this. Wires would have to be the appropriate gauge for the fuse on power distribution board. |
|
#12
|
||||
|
||||
|
Re: How does this robot have addressable LEDs still running when disabled?
The SPI bus on the Roborio can still run while disabled. This can be helpful for debugging issues on the robot while disabled on the field, providing feedback about connection issues and calibration details using the LEDs.
|
|
#13
|
|||||
|
|||||
|
Re: How does this robot have addressable LEDs still running when disabled?
Quote:
Just remember to design your custom circuit for 3.3v from the DIO signal. |
|
#14
|
||||
|
||||
|
Re: How does this robot have addressable LEDs still running when disabled?
Quote:
Quote:
|
|
#15
|
||||
|
||||
|
Re: How does this robot have addressable LEDs still running when disabled?
Team 144 uses pololu strips and a arduino uno ( sunfounder uno to be exact), the arduino will continue adressing the strips even if there is no input from the roboRio. The arduino will default to the last used command or color I believe once the robot is disabled. Our robot does this too, but it doesn't do the "rainbow" unless the elevator is at the top when it's disabled, otherwise it just locks in at the solid color it was at ( our lights color code to the height of our elevator, and change accordingly )
Edit: I'm currently working on a project like this, but for the older 2014 bot. Last edited by Mschmeh144 : 23-03-2015 at 10:05. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|