Has anyone tried to make police lights for an electric toy car with 2 Neopixel 4x4 matrix tiles and an Aruino nano every. Iv searched the internet and dont seem to find any projects using multiple tiles as independent outputs.
Please advise.
Has anyone tried to make police lights for an electric toy car with 2 Neopixel 4x4 matrix tiles and an Aruino nano every. Iv searched the internet and dont seem to find any projects using multiple tiles as independent outputs.
Please advise.
Welcome to the forum
This sounds very simple. Where are you stuck ?
Do you know how to control one Neopixel matrix ? Have you tried adding a second one ? Why do the two tiles have to be independant when you could connect them together and control each part of the longer strip independently ?
Yes.
Imagine this wig as your toy car lights...
So Im new to trying out Neopixel matrix tiles. Iv tried to use the Adafruit Neopixel library example to learn to use the tile. I changed it to accomodate 4x4 tiles which my electronic shop only had but iv failed to make it follow emergency light strobbing. On another project Iv successfuly made 10 Led lights function with the nano every . The sketch had 5 different pins outputs... Now I wish to make the lights more active and use the 2 x 4x4 tiles combined and one unit and thrn have a similar unit as the second unit.
What exactly do you want to display on each tile ?
The "wigwag" of the emergency vehicle... white (headlights) or blue (emergency).
@7vypr4 -Show a wiring diagram of the devices you have, and your sketch that you are having trouble with.
Yes correct. The wig wag of police lights... red blue....red blue... blue blue... red red... white white ...

The simulation...
Thats exactly what I was looking for. Thanx a million xfpd. I really appreciate you courtesy and patience. I hope Id be able to return the favour in the future.
Are you interested in how to make your own? How are you at writing and understanding coding?
Ask me anything.
So Im basically understanding the syntax to be used. I understand the addressable nature of the leds ... I also understand the void and loop functions, the defining of the pin on the controller The including of libraries etc are good to know but i do have a difficulty understanding how the matrices are able to be grouped as a set using the same input source for all
The abilities of the library (FastLED.h) can be found online. I use this library for simplicity.
Your 4x4 WS28xx is actually a series of LEDs. You can see how I wrote to their buffer "from index ZERO to index NUMBER_OF_LEDS" then displayed the biffer.
You should experiment with the simulation. You can not break it. You can also create your own account and store your simulations.
In this case, I grouped them by dividing them in half....
NUM_PIX / 2
... then coloring either the bottom half or the top half.
bottomHalf = 0 to NUM_PIX/2
topHalf = NUM_PIX/2 to NUM_PIX
@7vypr4 - I've updated the "wigwag" by strobing the white routine. You can adjust the speed of the strobe by changing the "strobe" variable to any value from 1 to 255. You can also adjust the speed of the color changes by adjusting "wait" from 1 to 255.
Thats interesting . Apologies for delayed response... had a death in family but im settling once again into Arduino norm. I will definitely try the variations.
I will see if i can get the strobe to double flicker before swithing over to the other Led set and vice versa.
Thanx a million xfpd
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.