Go to Post We want to win, but we would prefer to do so with a great partner team, not just a great partner robot. - Zach Purser [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 22-12-2016, 09:01
ABreyen's Avatar
ABreyen ABreyen is offline
Marketing Head and Team Management
FRC #2232 (Deus Ex Machina)
Team Role: Marketing
 
Join Date: Dec 2014
Rookie Year: 2013
Location: Anoka HS
Posts: 34
ABreyen is a glorious beacon of lightABreyen is a glorious beacon of lightABreyen is a glorious beacon of lightABreyen is a glorious beacon of lightABreyen is a glorious beacon of light
RGB LED Lights

Hey CD! Our team bought these RGB LED Light Strips from AndyMark. Has anyone worked with something like a Raspberry Pi or Arduino to control them? I'm guessing the GPIO Pins on the rPi would work somehow? We might have to convert the 12V LEDs to 5V or something?

Also, is it possible to use the RoboRio to display the Alliance Color if we used these on the robot? I've heard that using a co-processor like a rPi or Arduino is illegal. If this isn't possible, how do teams use LEDs on their robot?

We were possibly thinking of somehow using our DriverStation to provide 5V Power on our control board. Would this be possible if we used a 5V -> 12V converter? On the board is where we probably would use a Raspberry Pi or Arduino.

Thank you!!
__________________
Andrew Breyen
andrewbreyen.github.io

AHS FRC 2232
Marketing Team Head and Team Management
2232frc.github.io
Reply With Quote
  #2   Spotlight this post!  
Unread 22-12-2016, 09:14
bobbysq bobbysq is offline
Registered User
FRC #4646 (Team ASAP)
Team Role: Leadership
 
Join Date: Apr 2016
Rookie Year: 2015
Location: Des Moines, IA
Posts: 263
bobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud of
Re: RGB LED Lights

Quote:
Originally Posted by ABreyen View Post
I've heard that using a co-processor like a rPi or Arduino is illegal. If this isn't possible, how do teams use LEDs on their robot?
Who told you that? Please tell them to read the manual.

Use of these is fully legal, as long as you don't plug them into motor controllers. For these LEDs, I would recommend using a relay with an Arduino to turn them on and off. Since they're by channel instead of individually addressable, you'll turn on a channel by turning one of the relays on.

As for getting the alliance color, WPILib provides a DriverStation API that can tell you what alliance you're currently on. You can then pass this on through I2C, serial, or SPI to the Arduino.
Reply With Quote
  #3   Spotlight this post!  
Unread 22-12-2016, 09:19
ABreyen's Avatar
ABreyen ABreyen is offline
Marketing Head and Team Management
FRC #2232 (Deus Ex Machina)
Team Role: Marketing
 
Join Date: Dec 2014
Rookie Year: 2013
Location: Anoka HS
Posts: 34
ABreyen is a glorious beacon of lightABreyen is a glorious beacon of lightABreyen is a glorious beacon of lightABreyen is a glorious beacon of lightABreyen is a glorious beacon of light
Re: RGB LED Lights

My bad... Yup in section 4.10, R56, it is legal
Quote:
There are no rules that prohibit co-processors, provided commands originate from the roboRIO to configure, enable, and specify all operating points for all power regulating devices. This includes motor controllers legally wired to the CAN-bus.
So do most people use an Arduino? What kind, and does anyone have code to do this?

On the robot, can we use the 12V from the battery?
__________________
Andrew Breyen
andrewbreyen.github.io

AHS FRC 2232
Marketing Team Head and Team Management
2232frc.github.io
Reply With Quote
  #4   Spotlight this post!  
Unread 22-12-2016, 09:44
jweston's Avatar
jweston jweston is offline
Registered User
FRC #1124 (The Überbots)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2015
Location: Avon, CT
Posts: 71
jweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to beholdjweston is a splendid one to behold
Re: RGB LED Lights

We've used FastLED in the past with success. Power comes through the Arduino so your power source whatever is powering that. We powered ours by plugging it into the RoboRIO's USB although our comm was done over I2C with the built-in Wire Library.

One thing to watch out for if you're doing comm and light updates semi-concurrently is how to wait correctly. If you need to hold a light pattern, don't use millis(). It interferes with retrieving comm data. Use elapsedMillis instead.
Reply With Quote
  #5   Spotlight this post!  
Unread 22-12-2016, 09:54
Billfred's Avatar
Billfred Billfred is offline
...and you can't! teach! that!
FRC #5402 (Iron Kings); no team (AndyMark)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: The Land of the Kokomese, IN
Posts: 8,475
Billfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond repute
Re: RGB LED Lights

Quote:
Originally Posted by ABreyen View Post
Hey CD! Our team bought these RGB LED Light Strips from AndyMark. Has anyone worked with something like a Raspberry Pi or Arduino to control them? I'm guessing the GPIO Pins on the rPi would work somehow? We might have to convert the 12V LEDs to 5V or something?

Also, is it possible to use the RoboRio to display the Alliance Color if we used these on the robot? I've heard that using a co-processor like a rPi or Arduino is illegal. If this isn't possible, how do teams use LEDs on their robot?

We were possibly thinking of somehow using our DriverStation to provide 5V Power on our control board. Would this be possible if we used a 5V -> 12V converter? On the board is where we probably would use a Raspberry Pi or Arduino.

Thank you!!
Hi, Billfred from AndyMark. Let's tackle a few things in no particular order:
  • The prohibitions on Raspberry Pi or Arduino boards is in FIRST Tech Challenge, not the FIRST Robotics Competition. We brought these LEDs to market in particular because you could just hook up 12V and go.
  • These LEDs aren't individually addressable--they all show the same color, based on the voltages applied.
  • You could try to convert 5V to 12V, but I would highly recommend using a separate battery pack for driver station lights. Any unnecessary electrical loads on the Driver Station, to me as a mentor and coach, is tempting fate.
  • If you just want red, green, or blue, it's just a matter of grounding that channel by wiring them straight in the PDP. Purple? Ground red and blue. White? Ground all three. For more precise mixing, you'd need a controller or a bunch of resistors. Speed controllers would work, or one of the thousands of off-the-shelf LED controllers if it met (or was made to meet) the no-wireless-communication rule.
  • As always, read the electrical rules and the custom circuit rules in particular next year to make sure your application is compliant.
__________________
William "Billfred" Leverette - Gamecock/Jessica Boucher victim/Marketing & Sales Specialist at AndyMark

2004-2006: FRC 1293 (D5 Robotics) - Student, Mentor, Coach
2007-2009: FRC 1618 (Capital Robotics) - Mentor, Coach
2009-2013: FRC 2815 (Los Pollos Locos) - Mentor, Coach - Palmetto '09, Peachtree '11, Palmetto '11, Palmetto '12
2010: FRC 1398 (Keenan Robo-Raiders) - Mentor - Palmetto '10
2014-2016: FRC 4901 (Garnet Squadron) - Co-Founder and Head Bot Coach - Orlando '14, SCRIW '16
2017-: FRC 5402 (Iron Kings) - Mentor

93 events (more than will fit in a ChiefDelphi signature), 13 seasons, over 60,000 miles, and still on a mission from Bob.

Rule #1: Do not die. Rule #2: Be respectful. Rule #3: Be safe. Rule #4: Follow the handbook.
Reply With Quote
  #6   Spotlight this post!  
Unread 22-12-2016, 10:04
GeeTwo's Avatar
GeeTwo GeeTwo is online now
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,528
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: RGB LED Lights

We used a similar string of LEDs to show alliance colors in 2015, using spike relays controlled directly from the RIO. See this post for the details.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
  #7   Spotlight this post!  
Unread 22-12-2016, 10:13
arichman1257's Avatar
arichman1257 arichman1257 is offline
VP, Control Systems Captain, Coach
AKA: Alan Richman
FRC #1257 (Parallel Universe)
Team Role: Electrical
 
Join Date: Dec 2014
Rookie Year: 2014
Location: Fanwood
Posts: 21
arichman1257 is on a distinguished road
Re: RGB LED Lights

In 2016 we used those on our bot. We used the FastLED library on an arduino to send them the signals. But we also sent the arduino PWM signals to tell the arduino what color to display. The driver station has a way to get your alliance color and we sent that to the arduino for that purpose. But mainly we had a rainbow animation on them which is this video. If you want to know more DM me and I'll put you in contact with the person who wrote the code and developed the system for it.
__________________
Volunteer Roles:
Soon to be!

Team Roles:
1257 Parallel Universe: 2014 - 2017 Seasons
2017: Vice President, Control Systems Captain, Drive Coach
2016: Control Systems Captain, Operator, Dean's List Semi-Finalist
2015: Control Systems, Operator
2014: Programming/Electronics Apprentice



Reply With Quote
  #8   Spotlight this post!  
Unread 22-12-2016, 11:03
GreyingJay GreyingJay is offline
Robonut
AKA: Mr. Lam
FRC #2706 (Merge Robotics)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2015
Location: Ottawa, Canada
Posts: 737
GreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond repute
Re: RGB LED Lights

Quote:
Originally Posted by ABreyen View Post
On the robot, can we use the 12V from the battery?
Yes, you could pull a run directly from a PDP breaker, or wire something off the VRM (and you can add a second VRM if needed for this purpose), or you could even use a solenoid relay from the PCM assuming you're using 12 volt pneumatics and not 24 volt.

Last year on our robot our green LED ring light for autonomous vision processing was powered from the PCM, since our VRM outputs were used by other devices (we had a webcam, and a Raspberry Pi running the webcam and vision processing software, and a D-Link gigabit network switch on board since the OpenMesh radio only has two available ports). This also lets you turn it on and off in software, whereas the VRM output is always on.

As a cheap and easy way to set up LED lights (non addressable, non controllable) we were looking at IKEA DIODER light strips. We would have run these off a PCM relay output or VRM output.
__________________
"If I'm going to mentor someone, I'm going to be involved in their life as a positive force." -Mechvet
Reply With Quote
  #9   Spotlight this post!  
Unread 22-12-2016, 18:31
BenBernard BenBernard is offline
Registered User
FRC #5687 (The Outliers)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Portland, ME
Posts: 39
BenBernard is an unknown quantity at this point
Re: RGB LED Lights

We run our RGB strips, ringlight, and targetting flashlight off of the roborio using PWM and a mosfet circuit based on a sample from adafruit. Very clean and simple.

Here's the adafruit link: https://learn.adafruit.com/rgb-led-strips/usage

Here's the rough circuit design. The green blocks are terminals.

Last edited by BenBernard : 22-12-2016 at 19:31.
Reply With Quote
  #10   Spotlight this post!  
Unread 29-12-2016, 23:19
jlindquist74's Avatar
jlindquist74 jlindquist74 is online now
WOPR Software Integration Lead
FRC #1622
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 1337
Location: Poway, CA
Posts: 41
jlindquist74 has a brilliant futurejlindquist74 has a brilliant futurejlindquist74 has a brilliant futurejlindquist74 has a brilliant futurejlindquist74 has a brilliant futurejlindquist74 has a brilliant futurejlindquist74 has a brilliant futurejlindquist74 has a brilliant futurejlindquist74 has a brilliant futurejlindquist74 has a brilliant futurejlindquist74 has a brilliant future
Re: RGB LED Lights

In 2015 we had common-anode LED strips on the forklift verticals, and drove them through MOSFETs connected to the RoboRIO PWM ports. (We switched to CAN bus Talon SRXes, so our PWMs were totally unused.)

We were reminded (the hard way) that the PWM ports are shut off as part of the safety interlock when the robot is disabled. The plan in 2016 was to use the Adafruit I2C PWM driver instead, assuming the I2C port isn't shut off when disabled.
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 03: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