Go to Post Breath in. Breath out. We still love you - its ok! :^) - KenWittlief [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, 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.
  #2   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).
  #3   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
  #4   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
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