G+_610GARAGE Posted May 15, 2015 Share Posted May 15, 2015 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 More sharing options...
G+_Nick Whitworth Posted May 15, 2015 Share Posted May 15, 2015 Wow, that's really cool. I know that Cleanflight can drive those LED strips, but you end up losing one of your soft serial ports. You also don't get as much control. I may have to do this. Link to comment Share on other sites More sharing options...
G+_610GARAGE Posted May 15, 2015 Author Share Posted May 15, 2015 Thanks, I'm glad you guys liked it. Wayne Hobbins My real name is Josh, but I prefer 610bob online. Link to comment Share on other sites More sharing options...
G+_Fr. Robert Ballecer, SJ Posted June 2, 2015 Share Posted June 2, 2015 Hey 610bob ... watch tomorrow's pre-recording of "Know How" after AAA :) Link to comment Share on other sites More sharing options...
G+_610GARAGE Posted June 2, 2015 Author Share Posted June 2, 2015 Ok. Is that Tuseday, 8:45 pst ish? Link to comment Share on other sites More sharing options...
G+_Fr. Robert Ballecer, SJ Posted June 2, 2015 Share Posted June 2, 2015 Oops....Thursday after TN2 Link to comment Share on other sites More sharing options...
G+_610GARAGE Posted June 3, 2015 Author Share Posted June 3, 2015 Ok, thanks. I put it in my calendar so I don't forget. :) Link to comment Share on other sites More sharing options...
G+_610GARAGE Posted June 5, 2015 Author Share Posted June 5, 2015 Fr. Robert Ballecer, SJ Thanks, I'm honored. I do have to say, my video looked a lot better after you guys redited it. :) I'll have to rewatch it and take notes. Link to comment Share on other sites More sharing options...
Recommended Posts