Jump to content

I just finished adding individually addressable leds to my quad


G+_610GARAGE
 Share

Recommended Posts

Produce_3.m2ts.gif

I just finished adding individually addressable leds to my quad. Not only can I have cool lighting effects, but I can choose the effects using a 3 way switch on my remote.

 

It works by using an arduino mini to monitor the servo signal coming out of my reciever. Every 10 loops, the arduino weights for a high pulse, then counts until the high pulse ends. The number that the arduino counts determines what position the switch is at. If the switch is at position 0, the lights are on. position 1, the lights are off, and a transition from position 1 to position 2 changes the effect. After the counting loop, the arduino plays the effect on the lights. I used Adafruit’s neopixel library to drive the leds.

 

To convert the battery voltage to the 5 volts necessary for the leds, I used the guts of a usb car charger. I originally thought I could pull power from the escs, but the lights pull to much power for that. The car charger can handle 6 amps and up to 18v, so it will work on a 3s and 4s battery.

 

Fr. Robert Ballecer, SJ Maybe this would make a good Know How segment, or mabey coding 101, or both.

 

If you want to do this yourself, my code is here: https://github.com/610bob/Quad_Light , but be warned, I just threw the code together. It could use a bit of polish.

 

and here is the parts list:

 

lights: http://www.ebay.com/itm/251764321432?_trksid=p2060353.m2749.l2649&var=550690340674&ssPageName=STRK%3AMEBIDX%3AIT

 

light connectors: http://www.ebay.com/itm/221517542212?_trksid=p2060353.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

 

car charger, note it was a pain to take apart, maybe you should choose another one:

http://www.amazon.com/gp/product/B00VDRCHIW/ref=oh_aui_detailpage_o01_s00?ie=UTF8&psc=1

Link to comment
Share on other sites

  • 3 weeks later...
 Share

×
×
  • Create New...