![]() Here is a tutorial with good explanation and code to mess with (how to learn best, mess with the code!), One or more of your team could check this out and bring the rest up. I look at your code with calls to delay salted throughout and see that the code between those calls will run in less than 1000 cycles and then it hits the next delay(wait) with typical wait = 50ms.ĭo you know how many clock cycles every millisecond of delay() WASTES? Yes, nothing else runs during delay(), 16000 cycles that could be changing leds is thrown away for every 1 ms of delay, 50ms is 800,000 cycles.īut perhaps you don't know there is a way around this that will boost the skill of anyone who learns it, and it is a lesson that is not so big but does require thinking about what code should be doing, a different approach. You are trying to manipulate 50 addressable led strings as fast as possible, no? Yes, we are probably using 4 PINs as we have got 4 rows out of 12 to 13 LED strips.ġst get rid of the delay() calls. We have planned to use cables, with a cross-section of 1.5mm², solid ones. Yes this would be me, but I don't think I understand programming enough to find how this function is creasted. We are will connect it to a wifi shield, but thats another story. We are using a MEGA 2560 so RAM shouldn't be a problem. Either way, if you are on an UNO, Nano or Pro-Mini, you'll need a different board (MEGA or ESP-based) and for ESP-based boards using Makuna-Neopixelbus will be a great solution, though you then probably want to use just 1 pin. Switching to FastLED, i can't help you any further (i just don't want to support the library) but other probably still will. The second argument is something to consider, the length of a data-wire is limited as a result of the capacitance of the cable causing the signal to be disturbed (thinner wire is better !, solid is better than multi-strand) There is no real benefit for using multiple pins other than 'if you chain breaks you lose less of the whole' and 'like that i can run shorter wires' The method you suggested using Adafruit_neopixel will work just fine, but no built-in function for doing a swipe on multiple strips is available, though if you are doing a project like this with a few people, someone should have enough time to look and see how this function is created within the library and set that up so that it can. The point about the Power-supply is valid ! What board are you using ? this is the first question to ask, 750 LED's at 3 bytes (or 4 bytes if they are RGBW) each is 2250 bytes, so a small sized board will run out of RAM. ![]() You can generate patterns once your code is faster than human eye (about 40ms between changes looks like movement, it is 25 FPS) and you have cycles for it. You can connect SD to Arduino and read stored patterns off that. Void colorWipe(uint32_t c, uint8_t wait) Īdafruit_NeoPixel strip // I only bet this is possible knowing how C++ works, try it with just 2 strips to test.įor ( byte i = 0 i = ledStrips ) doStrip = 0 // so it runs through all the strips over and over.Īnd last, you can store patterns in the chip flash that has plenty of room and not waste RAM. ![]() But I dont really know if the commands would still work as the programm see would see the 12 strips as on strip.Ģ.So is there are way to run a effect like colorWipe on 12 strips simultaneously, if the sketch thinks its just one big strip?Īdafruit_NeoPixel strip1 = Adafruit_NeoPixel(15, PIN1, NEO_GRB + NEO_KHZ800) Īdafruit_NeoPixel strip2 = Adafruit_NeoPixel(15, PIN2, NEO_GRB + NEO_KHZ800) So I need a comman/way to say: colorWipe(strip 1 to 50.Color(255, 0, 0), 50) instead of as seen in the sketch.Īnd can I use this command also here: Adafruit_NeoPixel strip1 = Adafruit_NeoPixel(15, PIN1, NEO_GRB + NEO_KHZ800) ī)Or if this is a better option we want to connect one bar of LED strips(would be 12 strips) with one wire. There are two options for wiring the data cable:Ī)We are planning to have a single data wire to each of the LED strips.ġ.As you can see in the skecht below, we want to run for example a color Wipe on all the strips the same time. We are building a LED "sky" out of 50 LED strips, 750 single LEDs. I've attached some photos as wall as circuit diagramms so you can understand it better. I am part of a team, we are currently working on a rather big project. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |