Go to Post Teach 'em young, and they will go far. - Vashts6583 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-06-2015, 20:47
Phred7's Avatar
Phred7 Phred7 is offline
Team President
AKA: Walker Ward
FRC #2906 (Sentinel Prime)
Team Role: Electrical
 
Join Date: Oct 2014
Rookie Year: 2009
Location: Spanaway, WA
Posts: 21
Phred7 is an unknown quantity at this point
LEDs with Ethernet Microcontroller for FRC Competition Robot

My team and I have been searching for sometime now trying to program our Andymark Ethernet Micro-controller for some leds we bought from them. Unfortunately we realy do not know where to start. We have bought the "bundle" (found here: http://www.andymark.com/product-p/am-3010.htm) from Andymark. So far we are not sure how to program it to run our leds, what language to use (We have downloaded Arduino), what drivers to install, how to hook it up to our robot (if you do), power it and basically everything else. If you have anyhelp please let us know. Thank you.
__________________
Spanaway Lake High School
-FTC 5328 (14-18)
-FRC 2906 (15-18)
-2015-17 Team President
  #2   Spotlight this post!  
Unread 09-06-2015, 21:03
GeeTwo's Avatar
GeeTwo GeeTwo is offline
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,679
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: LEDs with Ethernet Microcontroller for FRC Competition Robot

I'm not familiar with this specific kit, but looking on the AM page, I found this sentence (note the html link to GitHub for code):

Quote:
Originally Posted by am3010 page
Default code for our last kit (am-2640) can be found at our GitHub page, we are currently working on updating this with the new chipset. You can use the code posted to do this yourself.
Edit:
I have looked at addressable LEDs before, and will be doing so again this week as a part of our air cannon lighting. The basic idea is that you send a signal down the line that's roughly equivalent to "Set LED #40 to be on/off/off [red]". Then, the first LED sends "turn on LED #39 to 'on/off/off [red]", and so on down the line until an LED finally gets the "turn on LED #0 to be on/off/off [red]", and it becomes red. As I recall, an arduino is up to sending these signals to a small number of LED strips in a reasonable time frame, if you are happy with fairly simple colors (basic 8, red green blue black white cyan magenta yellow or basic 27, which includes violet, orange, gray, and a few others as well as the basic 8). If you want to control a large number of strips (or a photo frame), or have a rich color palette, you will need a beefier processor or (even better) a graphics card designed to drive these sorts of LED arrays.
__________________

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.

Last edited by GeeTwo : 09-06-2015 at 21:13.
  #3   Spotlight this post!  
Unread 09-06-2015, 21:38
Chris Mounts's Avatar
Chris Mounts Chris Mounts is offline
Registered User
FRC #1188 (Oaktown Crewz)
Team Role: Coach
 
Join Date: Apr 2013
Rookie Year: 2010
Location: Royal Oak, MI
Posts: 36
Chris Mounts is an unknown quantity at this point
Re: LEDs with Ethernet Microcontroller for FRC Competition Robot

What you've bought is just an Arduino with a set of RGB LEDs. There is not much robot specific about this kit. I'd start by completing some simple testing without connecting it to your robot.

There is some decent documentation on the AndyMark GitHub page but I think the tutorial on Adafruit is better to get you going:

https://learn.adafruit.com/digital-led-strip

The wiring for these is pretty common. Basically you just need to get 5v power to the Arduino and LED strip. Note that the LED strip can not be powered from the Arduino it self.

Once you have it wired up there is sample code for this kit directly from AndyMark:

http://files.andymark.com/PDFs/am-3010+ExampleCode.pdf

Once you have it working off your robot and your comfortable with the code you could go ahead and just wire it into your robots 5v supply and leave it at that. If you want to have the LEDs react to something on your robot search the CD forums. It's very doable but it can get complicated.

Here is a simple setup I happen to be working on. The unplugged bit is a 5v 2amp wall plug.
  #4   Spotlight this post!  
Unread 10-06-2015, 10:01
Phred7's Avatar
Phred7 Phred7 is offline
Team President
AKA: Walker Ward
FRC #2906 (Sentinel Prime)
Team Role: Electrical
 
Join Date: Oct 2014
Rookie Year: 2009
Location: Spanaway, WA
Posts: 21
Phred7 is an unknown quantity at this point
Re: LEDs with Ethernet Microcontroller for FRC Competition Robot

Thank you of course this was very helpful, but our LEDs only have one data/clock wire (not sure which, probably data) so we are not sure if we should attempt to modify the example or see what else we can find.
__________________
Spanaway Lake High School
-FTC 5328 (14-18)
-FRC 2906 (15-18)
-2015-17 Team President
  #5   Spotlight this post!  
Unread 10-06-2015, 10:32
billbo911's Avatar
billbo911 billbo911 is online now
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,381
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: LEDs with Ethernet Microcontroller for FRC Competition Robot

Quote:
Originally Posted by Phred7 View Post
Thank you of course this was very helpful, but our LEDs only have one data/clock wire (not sure which, probably data) so we are not sure if we should attempt to modify the example or see what else we can find.
If these are WS2812B LED's, as the AM site suggests that they are, they will only have three signal wires: +5vdc, Gnd, Signal (or sometimes called Data).

The Adafruit libraries and examples, mentioned by Chris, can teach you what you need to get started.
I would suggest opening one of the examples and then running it to see if it works. If not, figure out where the problem is. Once running, "Save-as" to a new location. Then use the saved version to start tinkering.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #6   Spotlight this post!  
Unread 11-06-2015, 01:15
Phred7's Avatar
Phred7 Phred7 is offline
Team President
AKA: Walker Ward
FRC #2906 (Sentinel Prime)
Team Role: Electrical
 
Join Date: Oct 2014
Rookie Year: 2009
Location: Spanaway, WA
Posts: 21
Phred7 is an unknown quantity at this point
Re: LEDs with Ethernet Microcontroller for FRC Competition Robot

Thank you for all the help! After reading almost all the documentation you provided us with I finally foung the FastLED.h library and we are now experimenting with the example programs and creating our own! Thanks again.

FRC team 2906
__________________
Spanaway Lake High School
-FTC 5328 (14-18)
-FRC 2906 (15-18)
-2015-17 Team President
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 21:17.

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