Go to Post (Funding will be plentiful...) Where is this magical land? We can move our team there! - Tungrus [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 11 votes, 5.00 average. Display Modes
  #46   Spotlight this post!  
Unread 15-01-2014, 16:01
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,602
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: LED Lights for the Robot (what do you use??!?!)

Quote:
Originally Posted by Ghost_Pack View Post
Has anyone tried using the NeoPixel LEDs from Adafruit?
http://www.adafruit.com/products/1376

They are supposed to be simpler to wire and cheaper than the old 32 LED kind, but I haven't seen anyone using them.
It would not be possible to control them with the cRIO due to the timing requirements. You would have to use an Arduino with their code, so I'm not sure it would be easier to wire.
Reply With Quote
  #47   Spotlight this post!  
Unread 15-01-2014, 16:13
thursam's Avatar
thursam thursam is offline
Registered User
AKA: Sam
FRC #3336 (Zimanators)
 
Join Date: Feb 2013
Rookie Year: 2013
Location: United States
Posts: 57
thursam is just really nicethursam is just really nicethursam is just really nicethursam is just really nicethursam is just really nice
Re: LED Lights for the Robot (what do you use??!?!)

Team 118 used lights on their bot, Apex, last year. I don't know if they were LEDs, but they did have multiple colored strings/arrangements. It should be fine.
__________________
"If you want your children to be intelligent, read them fairy tales." - Albert Einstein
Reply With Quote
  #48   Spotlight this post!  
Unread 12-02-2014, 11:31
ShadathChow's Avatar
ShadathChow ShadathChow is offline
Registered User
AKA: Shadath Chowdhury
FRC #3175 (Knight Vision)
Team Role: Alumni
 
Join Date: Feb 2014
Rookie Year: 2011
Location: Grosse Pointe Woods, Michigan
Posts: 21
ShadathChow is an unknown quantity at this point
Re: LED Lights for the Robot (what do you use??!?!)

Is it legal to hardwire LED lights on to the Power Distribution Board?
Reply With Quote
  #49   Spotlight this post!  
Unread 12-02-2014, 11:44
Lightfoot26's Avatar
Lightfoot26 Lightfoot26 is offline
Just Out For A Rip, Bud...
AKA: Seth Lightfoot
FRC #1625 (Winnovation)
Team Role: Mentor
 
Join Date: Dec 2009
Rookie Year: 2010
Location: Winnebago, IL
Posts: 120
Lightfoot26 is just really niceLightfoot26 is just really niceLightfoot26 is just really niceLightfoot26 is just really niceLightfoot26 is just really nice
Re: LED Lights for the Robot (what do you use??!?!)

We use these bad boys on a spike!
__________________
Winnovation Team 1625 (2010-??)
  • Electrical/Programming Captain (2011-2013)
  • Auxiliary Driver (2012-2013)
  • Team Captain (2013)
  • Alumni (Graduated May 2013)
  • Electrical and Programming Mentor (2014-??)
Reply With Quote
  #50   Spotlight this post!  
Unread 12-02-2014, 11:47
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: LED Lights for the Robot (what do you use??!?!)

Quote:
Originally Posted by ShadathChow View Post
Is it legal to hardwire LED lights on to the Power Distribution Board?
I can't think of any rule that would prohibit it. As long as they don't violate any other rules (e.g. disrupting other robots' vision sensing), it should be fine.
Reply With Quote
  #51   Spotlight this post!  
Unread 12-02-2014, 12:05
ShadathChow's Avatar
ShadathChow ShadathChow is offline
Registered User
AKA: Shadath Chowdhury
FRC #3175 (Knight Vision)
Team Role: Alumni
 
Join Date: Feb 2014
Rookie Year: 2011
Location: Grosse Pointe Woods, Michigan
Posts: 21
ShadathChow is an unknown quantity at this point
Re: LED Lights for the Robot (what do you use??!?!)

Thank Alan.
Reply With Quote
  #52   Spotlight this post!  
Unread 12-02-2014, 12:46
MichelB's Avatar
MichelB MichelB is offline
Jack Of All Trades
FRC #3941 (Absolute Zero Electricity)
Team Role: Electrical
 
Join Date: Nov 2013
Rookie Year: 2012
Location: Havre De Grace, MD
Posts: 51
MichelB is an unknown quantity at this point
Re: LED Lights for the Robot (what do you use??!?!)

My team bought them from AndyMark here: http://www.andymark.com/product-p/am-2645.htm

You can buy them as a kit or seperate, but it does require an Arduino (comes with the kit)
Reply With Quote
  #53   Spotlight this post!  
Unread 20-03-2014, 03:23
MikeD MikeD is offline
Registered User
no team
 
Join Date: Mar 2014
Location: Canada
Posts: 2
MikeD is an unknown quantity at this point
Re: LED Lights for the Robot (what do you use??!?!)

I got the strips directly from a Chinese factory, GREELED, which always keeping in developing new interesting products. Such as their newest developed 60 LED/M LPD8806 RGB Strip and 96 LED/M WS2812B Digital Strip. They also supply technique help in warm hearted.
Reply With Quote
  #54   Spotlight this post!  
Unread 20-03-2014, 09:00
ILAMtitan ILAMtitan is offline
Texas Instruments
AKA: Bart Basile
FRC #3005 (RoboChargers)
Team Role: Mentor
 
Join Date: Nov 2013
Rookie Year: 2013
Location: Dallas
Posts: 73
ILAMtitan will become famous soon enoughILAMtitan will become famous soon enough
Re: LED Lights for the Robot (what do you use??!?!)

We used these on our robot and driver station panel: http://www.amazon.com/LEMONBEST-SMD-...ords=led+strip

You can see a little bit of them working in our reveal video: https://www.youtube.com/watch?v=U4ALN_3AoyU

It's been brought up that these cheep LED strands use IR, so the are hard to control via the Rio, but we ended up taking the control box and manually wiring in three PWM lines directly to the FETs inside. This lets us use the 5V PWM output to control the intensity of each color individually, and the 12V line just comes from the PDB. I'm working on a write up that I hope to post soon on how to do this, and our team will probably make a custom PCB in the future for it that we'll share with the community.
Reply With Quote
  #55   Spotlight this post!  
Unread 08-08-2014, 21:36
Bonzabonz Bonzabonz is offline
Registered User
FRC #5052 (RoboLobos)
Team Role: Alumni
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Cedar Park Texas
Posts: 13
Bonzabonz is an unknown quantity at this point
Re: LED Lights for the Robot (what do you use??!?!)

Quote:
Originally Posted by ILAMtitan View Post
It's been brought up that these cheep LED strands use IR, so the are hard to control via the Rio, but we ended up taking the control box and manually wiring in three PWM lines directly to the FETs inside. This lets us use the 5V PWM output to control the intensity of each color individually, and the 12V line just comes from the PDB. I'm working on a write up that I hope to post soon on how to do this, and our team will probably make a custom PCB in the future for it that we'll share with the community.
We bought the same LED strip and built a simple control board using a couple of MOSFETS. You can control the brightness of each color by switching the MOSFETS on and off using PWM. The only problem with getting it to work off of the cRIO's PWM ports are that the PWM frequency is too slow (causing the strip to blink quickly instead of appear to be dimming). I read that the max frequency that the cRIO pwm runs at is 200Hz. Does anyone know of a workaround or a way to get the PWM to work at a higher frequency?
Reply With Quote
  #56   Spotlight this post!  
Unread 09-08-2014, 00:23
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,602
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: LED Lights for the Robot (what do you use??!?!)

Quote:
Originally Posted by Bonzabonz View Post
I read that the max frequency that the cRIO pwm runs at is 200Hz. Does anyone know of a workaround or a way to get the PWM to work at a higher frequency?
Speed controllers and servos use Servo PWM which is really a short pulse sent at a defined rate. That is what has a 200hz limit. It is not what you want you would want to use for controlling your LEDs.

Rather, the digital outputs support true PWM, and let you define the frequency and duty cycle. Look at the digital outputs API.
Reply With Quote
  #57   Spotlight this post!  
Unread 09-08-2014, 08:00
Michael Hill's Avatar
Michael Hill Michael Hill is offline
Registered User
FRC #3138 (Innovators Robotics)
Team Role: Mentor
 
Join Date: Jul 2004
Rookie Year: 2003
Location: Dayton, OH
Posts: 1,580
Michael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond repute
Re: LED Lights for the Robot (what do you use??!?!)

Quote:
Originally Posted by Joe Ross View Post
It would not be possible to control them with the cRIO due to the timing requirements. You would have to use an Arduino with their code, so I'm not sure it would be easier to wire.
I wouldn't think it would be that bad. The arduino can in reality take up to a 20V input, so accepting an unregulated battery shouldn't be too much of an issue. Just preprogram the Arduino with certain states to control the neopixels, then let the cRio/roboRio tell the Arduino which state to be in.

Last edited by Michael Hill : 09-08-2014 at 08:02.
Reply With Quote
  #58   Spotlight this post!  
Unread 09-08-2014, 11:06
Bonzabonz Bonzabonz is offline
Registered User
FRC #5052 (RoboLobos)
Team Role: Alumni
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Cedar Park Texas
Posts: 13
Bonzabonz is an unknown quantity at this point
Re: LED Lights for the Robot (what do you use??!?!)

Quote:
Originally Posted by Joe Ross View Post
Rather, the digital outputs support true PWM, and let you define the frequency and duty cycle. Look at the digital outputs API.
I didn't realize that it was possible to get more customized PWM out of the DIO pins as well. Thank you very much, that should solve our problem.
Reply With Quote
  #59   Spotlight this post!  
Unread 11-08-2014, 12:46
evanperryg's Avatar
evanperryg evanperryg is offline
IT'S THE BUMP N' DUMP
AKA: Evan Grove
FRC #4536 (The Minutebots)
Team Role: Mentor
 
Join Date: Apr 2013
Rookie Year: 2011
Location: Minneapolis, MN
Posts: 657
evanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond repute
Re: LED Lights for the Robot (what do you use??!?!)

For the last 2 years, we have used those 12v single-color LED strips you can order on Amazon. Simple, but effective. This coming year, we hope to use individually-addressable RGBLED strips that we purchased from andymark recently. We have developed a basic little custom circuit that we use for the lights on the robot. All it is is a terminal block connected to the PDB through a switch. This way, we can turn off all the lights if needed, and their connections don't take up valuable space on the PDB.

(protip: those adhesive backs on the light strips don't work, packing tape works great though )
__________________
FRCDesigns Contributor | "There is only one corner of the universe you can be certain of improving, and that's your own self." -Aldous Huxley
2012-2016 | FRC Team 2338: Gear it Forward
2013
Wisconsin Regional Winner 2014 Midwest Regional Finalist 2015 Midwest Regional Chairman's Award, Finalist, Archimedes Division Champion, IRI Semifinalist 2016 Midwest Regional Chairman's Award, Finalist, Archimedes Division Gracious Professionalism Award, R2OC Winner
2015 | FTC Team 10266: Mach Speed
2015
Highland Park Qualifier Winner, Motivate Award
2017-???? | FRC Team 4536: The Minutebots

Thanks to the alliances and friends I've made along the way: 33 74 107 111 167 171 234 548 1023 1089 1323 1625 1675 1732 1756 2064 2077 2122 2202 2358 2451 2512 2826 3936 3996 4039 4085 4241 5006 5401 5568 5847 5934
Reply With Quote
  #60   Spotlight this post!  
Unread 11-08-2014, 18:53
VeqIR's Avatar
VeqIR VeqIR is offline
Registered User
AKA: Dave
FRC #4488 (ShockWave)
Team Role: Mentor
 
Join Date: Mar 2014
Rookie Year: 2005
Location: Hillsboro, OR
Posts: 29
VeqIR is on a distinguished road
Re: LED Lights for the Robot (what do you use??!?!)

Similar to other teams, our robot this year we used the Sparkfun addressable RGBs (uses WS2812 LED drivers internally to the strip).

https://www.sparkfun.com/products/12026

You only have to plug in 5V, GND and the 1-wire interface which we drove using an Arduino and the Adafruit WS2812 libraries (details in the Sparkfun hookup guide). The power was supplied by a 5V/10A regulator very similar to the one supplied for the router (no 5V source on the robot is capable of supplying this much current). Additionally, we used an LED diffuser film to spread out the light source. This helped us give the effect that the arms were filled with light, where there was only a strip of RGB LEDs running through the top side of each arm.

https://www.inventables.com/technolo...diffuser-films

The Arduino allowed us to program light patterns that were triggered by the cRIO's digital outputs when the robot performed various actions (e.g. feeding, shooting, cocking the catapult). For instance, when the feeder motor was running, the robot would pull a zero on a cRIO digital output which fed into a digital input on the Arduino. Every 10ms, the Arduino firmware checked the digital inputs for changes and would modify the light pattern accordingly.

This may get a bit detailed for those not familiar with embedded programming, but the key to making these animations work fluidly and seamlessly (and respond to asynchronous input) was to program the Arduino an interrupt-driven model. The simplest way to get patterns to display is to shift in the colors to each LED (24 in our case) and then to delay() for the number of milliseconds until the next color pattern needed to be shifted. In Arduino speak, these delay() statements literally force the processor to sit and wait for a number of milliseconds and not do anything (this is an eternity for a processor).

In the interrupt-driven model, these delay() statements are replaced by conditional checks on variables (sometimes called flags) which are set by interrupts based on events (in our case, a 10ms timer interrupt since there weren't enough IRQ-capable pins). Every 10ms, the timer would interrupt the processor, check all of the inputs for any updates from the cRIO and it would increment a timer variable that counted the number of 10ms interrupts that passed. This variable could be checked by the main program to determine how many seconds had elapsed and whether or not it was time for the next pattern to be pushed to the LEDs.

In our reveal video, we hadn't yet finished coding all of the patterns, but you can see what the diffuser material looks like up close:

http://www.youtube.com/watch?v=tEhQnKbRz-0

You can see the patterns when we drive/load/shoot pretty well in this video:

http://www.youtube.com/watch?v=iOK7eQOLqag#t=300
Reply With Quote
Reply


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 15:48.

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