|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Custom LED Help
I was wondering what multi-color LEDs teams like 118 use on their robot, and how they control them. We have access to an Arduino, but we are unsure as to how to wire it. Also some tips and tricks for custom 5v LEDs running off PWMs would be appreciated.
Thank you very much, Alex |
|
#2
|
||||
|
||||
|
Re: Custom LED Help
Quote:
One Thing I'm Unsure of though, Is on how they programmed/controlled their LEDs to Go In an Certain Motion |
|
#3
|
||||
|
||||
|
Re: Custom LED Help
Quote:
Access to an SPI bus can be obtained by a standard arduino or a C-RIO, WPILib has modules for this. SPI can be tricky though, clock speed, data rate, which register to write too, etc. However, this link goes to a library available to the arduino and makes the communication between the arduino and the LEDs, simple and fast. The library also gives a couple example test code projects. If you wanted, this does the same thing but is very expensive but simple, and you can achieve the same effect using an Arduino. Last edited by MDAWG25 : 10-04-2013 at 20:41. |
|
#4
|
||||
|
||||
|
Re: Custom LED Help
Quote:
|
|
#5
|
||||
|
||||
|
Re: Custom LED Help
If you need some help with this, I could help you get started, that is where I was hung up the most figuring out how it was done.
![]() |
|
#6
|
||||
|
||||
|
Re: Custom LED Help
Quote:
![]() |
|
#7
|
|||
|
|||
|
Re: Custom LED Help
Thanks for the quick responses, what I am most unsure about is the wiring, we have LPD8806 LED strips, and there appear to be 5 wires coming out of it. From what I can tell, there are 2 power cables, and a PWM. I'm not sure how to wire that to the Arduino, I have a few links to images of what we have.
https://www.dropbox.com/s/oryc62y4i2...2020.39.44.jpg https://www.dropbox.com/s/3lvl0q6j2r...2020.39.23.jpg Thanks again. |
|
#8
|
||||
|
||||
|
Re: Custom LED Help
Quote:
The other picture seems to have two wires on the GND (Ground) solder pad... You may need to peel off that hot glue to get a good look at it, but there are only 4 wires needed, not 5. Which revision of Arduino do you have? This is needed because only certain pins on the Arduino support the SPI bus. Last edited by MDAWG25 : 10-04-2013 at 20:55. |
|
#9
|
|||
|
|||
|
Re: Custom LED Help
We have an Arduino Uno. Upon closer examination of the LED strip, both of the two black wires are connected to the ground on the strip, the thicker of the two red wires is to 5V. The thinner red wire is to Data In, and the white wire is connected to clock. Where would the strip get 5V from on the robot?
|
|
#10
|
||||
|
||||
|
Re: Custom LED Help
What about lights that use 12v inputs? We supply the ground, and then each of the colors has an appropriate 12v lead. Would we have to use bulky motor controllers? Someone tell me there is a simpler solution. I realize we can develop a lot of colors and effects because of that, but it might not be the nicest thing to use.. Even then, how would a motor controller work? The same ground for all three? might be a little sketch and destroy some stuff...
Quote:
Last edited by jbsmithtx : 10-04-2013 at 21:06. Reason: Answering Questions |
|
#11
|
|||
|
|||
|
Re: Custom LED Help
Okay, thanks. My main concern was how to power the LEDs so they are FRC legal, thanks for your help.
|
|
#12
|
||||
|
||||
|
Re: Custom LED Help
Quote:
As far as connecting the DI and CL pins to your arduino, Connect the Clock wire to digital Pin 3 and Connect the Green Data wire to digital Pin 2. Since you are using the LPD8806's, the original linked library does not support this type. Adafruit, on the other hand, has a great tutorial on the code and a link to their library which fully supports the LPD8806's. http://learn.adafruit.com/digital-led-strip/code Quote:
Last edited by MDAWG25 : 10-04-2013 at 21:56. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|