Go to Post Life has its Ups and Downs, you can stay down or push yourself. - Mike Schroeder [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 15-03-2015, 00:01
AlexanderTheOK AlexanderTheOK is offline
Guy
no team
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Los Angeles
Posts: 147
AlexanderTheOK is just really niceAlexanderTheOK is just really niceAlexanderTheOK is just really niceAlexanderTheOK is just really nice
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.
  #2   Spotlight this post!  
Unread 15-03-2015, 13:22
NathanCJohnson's Avatar
NathanCJohnson NathanCJohnson is offline
Registered User
FRC #5517 (District 5517 The Engineers on Fire)
Team Role: Driver
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Burton, MI (USA)
Posts: 15
NathanCJohnson is an unknown quantity at this point
Re: How does this robot have addressable LEDs still running when disabled?

Thanks everyone!

Quote:
Originally Posted by pribusin View Post
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.
That's what I was kind of thinking, just wasn't really sure and didn't know the roboRIO's digital I/O works when disabled.

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?
__________________
Team 5517 - The Engineers on Fire "Catching The Fire Of FIRST."
Facebook | Twitter | YouTube
  #3   Spotlight this post!  
Unread 15-03-2015, 13:31
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: How does this robot have addressable LEDs still running when disabled?

Quote:
Originally Posted by NathanCJohnson View Post
This year we just have a single-colored 12v LED strip plugged into the PCM (so we can toggle it).
Are you powering the LED strip through the PCM? 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.
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
  #4   Spotlight this post!  
Unread 15-03-2015, 14:15
Foster Foster is offline
Engineering Program Management
VRC #8081 (STEMRobotics)
Team Role: Mentor
 
Join Date: Jul 2007
Rookie Year: 2005
Location: Delaware
Posts: 1,393
Foster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond repute
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.
__________________
Foster - VEX Delaware - 17 teams -- Chief Roboteer STEMRobotics.org
2010 - Mentor of the Year - VEX Clean Sweep World Championship
2006-2016, a decade of doing VEX, time really flies while having fun
Downingtown Area Robotics Web site and VEXMen Team Site come see what we can do for you.
  #5   Spotlight this post!  
Unread 15-03-2015, 20:27
NathanCJohnson's Avatar
NathanCJohnson NathanCJohnson is offline
Registered User
FRC #5517 (District 5517 The Engineers on Fire)
Team Role: Driver
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Burton, MI (USA)
Posts: 15
NathanCJohnson is an unknown quantity at this point
Re: How does this robot have addressable LEDs still running when disabled?

Quote:
Originally Posted by lopsided98 View Post
Are you powering the LED strip through the PCM? 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.
Hmm, well it's been working okay for us. 500mA seems to be good enough for our LED strip (we bought a 16ft roll but aren't using all of it). Somebody else suggested it on another thread.

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.
__________________
Team 5517 - The Engineers on Fire "Catching The Fire Of FIRST."
Facebook | Twitter | YouTube
  #6   Spotlight this post!  
Unread 15-03-2015, 21:08
CronusWorks CronusWorks is offline
Electronics Mentor
AKA: Chris
FRC #1076 (Pi Hi Samurai)
Team Role: Mentor
 
Join Date: Oct 2014
Rookie Year: 2014
Location: Michigan
Posts: 3
CronusWorks is just really niceCronusWorks is just really niceCronusWorks is just really niceCronusWorks is just really niceCronusWorks is just really nice
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.
  #7   Spotlight this post!  
Unread 23-03-2015, 04:37
Frank Neuperger Frank Neuperger is offline
Registered User
FRC #0842
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Gilbert, AZ
Posts: 90
Frank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to behold
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.
__________________
======================
FRC 842
FTC 4314
Team 0x27 (NURC, Sparkfun AVC)
Formerly with FRC 39 (now in cryosleep).
  #8   Spotlight this post!  
Unread 23-03-2015, 08:28
Team118Joseph's Avatar
Team118Joseph Team118Joseph is offline
The guy that did the lighting
AKA: Joseph Foster
FRC #0118 (Robonauts)
Team Role: Alumni
 
Join Date: Jan 2014
Rookie Year: 2013
Location: League City
Posts: 61
Team118Joseph will become famous soon enoughTeam118Joseph will become famous soon enough
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.
__________________
FRC Countdown Website: http://frccountdown.hosthorde.net/
FRC Countdowns App: https://play.google.com/store/apps/d...h.frccountdown
  #9   Spotlight this post!  
Unread 23-03-2015, 10:36
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,835
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: How does this robot have addressable LEDs still running when disabled?

Quote:
Originally Posted by Frank Neuperger View Post
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.
That's what our robot uses.
Just remember to design your custom circuit for 3.3v from the DIO signal.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #10   Spotlight this post!  
Unread 23-03-2015, 08:45
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,933
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: How does this robot have addressable LEDs still running when disabled?

Quote:
Originally Posted by NathanCJohnson View Post
...
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.
Realize the inspectors have varying backgrounds. Some are more versed on electronics than others. The main function of the inspectors is to make sure your robot is relatively safe and meets the rules.

Quote:
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.
That would be a custom circuit. As long as it meets the rules for custom circuits, it is legal.
__________________
If you don't know what you should hook up then you should read a data sheet
  #11   Spotlight this post!  
Unread 23-03-2015, 10:01
Mschmeh144's Avatar
Mschmeh144 Mschmeh144 is offline
Impatient maniac
AKA: Matthew
FRC #0144 (R.O.C.K)
Team Role: Driver
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Ohio
Posts: 88
Mschmeh144 is an unknown quantity at this point
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.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:20.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi