Go to Post This is an engineering competition. Do some. - JVN [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
  #1   Spotlight this post!  
Unread 24-03-2013, 18:45
tuXguy15's Avatar
tuXguy15 tuXguy15 is offline
Team Mentor
AKA: Devin Kolarac
FRC #2559 (Normality Zero)
 
Join Date: Apr 2012
Rookie Year: 2012
Location: Harrisburg, PA
Posts: 127
tuXguy15 is an unknown quantity at this point
LED's For Robot

Hello. I was wondering how my team can put LED's on our robot and wire them up to be controlled by robot code. Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 24-03-2013, 19:08
theawesome1730's Avatar
theawesome1730 theawesome1730 is offline
Registered User
FRC #1730 (Team Driven)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Lee's Summit, MO
Posts: 316
theawesome1730 will become famous soon enough
Re: LED's For Robot

So there are 2 basic ways you can control via code. You can use spike relays as on or off switches. The second way is to use a solenoid breakout to connect LEDs. To use that method is the same as programming for a festo only it runs on a single channel not 2. The neat thing about using the solenoid breakout is that it takes no extra space on the robot and you only need 3 channels to run 7 colors (if you have RGB LEDs of course). Be aware that there is a limit as to how many watts you can use, but for most scenarios you should be fine.
__________________



2015 GKC Engineering Inspiration
2015 Colorado Winners
Reply With Quote
  #3   Spotlight this post!  
Unread 24-03-2013, 21:02
Ginto8's Avatar
Ginto8 Ginto8 is offline
Programming Lead
AKA: Joe Doyle
FRC #2729 (Storm)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Marlton, NJ
Posts: 174
Ginto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of light
Re: LED's For Robot

We have a strip of tri-color LEDs on our robot. One of our mentors constructed a small circuit with 3 MOSFETs, one for each color. We then control them through PWM, which allows us to have varying brightness for each color.
__________________
I code stuff.
Reply With Quote
  #4   Spotlight this post!  
Unread 24-03-2013, 21:56
tuXguy15's Avatar
tuXguy15 tuXguy15 is offline
Team Mentor
AKA: Devin Kolarac
FRC #2559 (Normality Zero)
 
Join Date: Apr 2012
Rookie Year: 2012
Location: Harrisburg, PA
Posts: 127
tuXguy15 is an unknown quantity at this point
Re: LED's For Robot

Ok thanks guys. Joe you guys did amazing today and thanks for the help today with our robot drive. My mentor wants us to do the LED thing for our robot that we use for community events. So hopefully I can get this done.
Reply With Quote
  #5   Spotlight this post!  
Unread 24-03-2013, 22:09
MrRoboSteve MrRoboSteve is offline
Mentor
AKA: Steve Peterson
FRC #3081 (Kennedy RoboEagles)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Bloomington, MN
Posts: 577
MrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond repute
Re: LED's For Robot

We use the NFLS-X3 series LED strip from SuperBrightLEDs, connected to the solenoid breakout. It's about $1 a foot. It can be cut into smaller sections. You'll also want one NFLS10-2CPTH solderless pigtail adapter per section. I can't remember whether one comes with a strip -- you'll need to check.

http://www.superbrightleds.com/morei...ht-strip/1440/
Reply With Quote
  #6   Spotlight this post!  
Unread 25-03-2013, 00:06
faust1706's Avatar
faust1706 faust1706 is offline
Registered User
FRC #1706 (Ratchet Rockers)
Team Role: College Student
 
Join Date: Apr 2012
Rookie Year: 2011
Location: St Louis
Posts: 498
faust1706 is infamous around these partsfaust1706 is infamous around these parts
Re: LED's For Robot

Here is a very cool example of what can be done with LEDs on robots. http://www.youtube.com/watch?v=06c-6VXEHrg only pay attention to the first ten seconds XD in 2011, we had the first logo flash on our robot in, if i remember correctly, 40 LEDs. One shape at a time. It really fit the game, and it taught people a simple electronics at the same time. As for power, it was using power from the distributions board.
__________________
"You're a gentleman," they used to say to him. "You shouldn't have gone murdering people with a hatchet; that's no occupation for a gentleman."
Reply With Quote
  #7   Spotlight this post!  
Unread 25-03-2013, 01:08
alex.lew alex.lew is offline
college student
FRC #1912 (Team Combustion), FRC #0558 (Elm City Robo Squad)
 
Join Date: Jan 2012
Rookie Year: 2012
Location: New Haven
Posts: 72
alex.lew will become famous soon enoughalex.lew will become famous soon enough
Re: LED's For Robot

We planned to have a strip of LEDs with an Arduino Uno board, then wire it directly to the PD board. Although we weren't able to mount it to our robot (due to weight limitations) we placed it on the robot cart. We purchased the Arduino at http://www.adafruit.com/products/50
and downloaded the library for the LPD8806 strip
http://www.adafruit.com/products/306
Reply With Quote
  #8   Spotlight this post!  
Unread 25-03-2013, 07:13
tuXguy15's Avatar
tuXguy15 tuXguy15 is offline
Team Mentor
AKA: Devin Kolarac
FRC #2559 (Normality Zero)
 
Join Date: Apr 2012
Rookie Year: 2012
Location: Harrisburg, PA
Posts: 127
tuXguy15 is an unknown quantity at this point
Re: LED Lights for the Robot (what do you use??!?!)

Ok thanks. We might do that in case we cant wire it to the crio.
Reply With Quote
  #9   Spotlight this post!  
Unread 25-03-2013, 10:01
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: LED Lights for the Robot (what do you use??!?!)

We use 8 Shift Brite's.

While it would probably be possible to use the SPI on the cRio to control them, we used an Arduino and spare Relay Out ports with external pull downs for control. We send a 3-bit command nibble to the Arduino which sets the LED states for that state. This gives us 8 possible LED combinations controllable by the cRio with 3 digital lines, but only 1 combination when disabled (relay outputs are disabled).
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
Reply With Quote
  #10   Spotlight this post!  
Unread 25-03-2013, 15:31
tuXguy15's Avatar
tuXguy15 tuXguy15 is offline
Team Mentor
AKA: Devin Kolarac
FRC #2559 (Normality Zero)
 
Join Date: Apr 2012
Rookie Year: 2012
Location: Harrisburg, PA
Posts: 127
tuXguy15 is an unknown quantity at this point
Unhappy Re: LED Lights for the Robot (what do you use??!?!)

I was looking at Strip LED's from superbrightleds and saw the Red, Green, Blue and Black wires. I'm pretty sure that the Red, Green, and Blue is the positive for the LED colors and black is the ground. I know wiring enough to wire our robot's components, but I don't know how I would hook 1 ground up to 3 spikes. I'm sure there is a way, I just dont know it.
Reply With Quote
  #11   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: 656
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
  #12   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 23:51.

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