I am quite new to all of this and the fastLED library has helped so much. But, but but! I have built a sphere with ws2812b strips inside. I am trying to figure out how to have the top row and bottom row meet in the middle of the sphere.
My thought is something like, take top row LEDS i.e. 10,11,30,31,50,51, etc. take bottom LEDS i.e. 1,20,21,40,41, etc. send to the middle 2 LED’s? i.e. for strip 1… 6 for top, 5 for bottom. I haven’t a clue how to program this, but that’s the visualization i have.
I am incredibly new to this and would appreciate help a ton!
I am using a Mega2650, inside my sphere is 15 strips with 10 LEDS each. My data pin is 6 for the whole thing.
I have it wired (bottom right of sphere)1-10 – 11-20 – 21-30 – etc. always going left with LED 150 ending at the top of the sphere next to strip 1 (w/1-10).
I’m not totally sure I understand what you want to do, but it sort of sounds like you’re wanting to do what’s called mapping (or remapping) of your pixel layout.
Here’s two links you can check out related to mapping.
https://macetech.github.io/FastLED-XY-Map-Generator/
If you make a 10x10 matrix (and for your wiring/layout also check on Serpentine, Vertical, V-Flip and H-Flip) it will have your layout as you’ve described. Then you need to edit the XYTable code to the new pixel order you would like.
Can you give us a bit more info about what you’re going for? Have some photos?
@marmil excellent links! Thank you. Starting to wrap my head around it.
I think I just have to figure out exactly how to implement that.
I would like to just use the FastLED library for effects, but custom map it I guess to the sphere’s attributes? I think once I have it recognize the kind of matrix, I hope it will work.
I’m trying to upload a picture of it.
What I am hoping to do is use already made effects/animations on the sphere. It’s just a visual piece, no audio in or anything like that. Just wanting it to cycle through many animations on loop.
I have found SmartMatrix via pixl matix that uses FastLED. I see this is all for the teensy though. Has anyone used a Mega 2560 with it? Trying to figure out it I can marry the two.
@Sven_Eric_Nielsen thanks! I am still so new that I am not sure how to use the fastLED serpentine matrix with an existing library. My code keeps coming up with an error and I have been trying to figure it out.
Alright, will do. I am having slight success, just figured out how to take github code and use it via library but many won’t compile for my mega2560.
Do you know of any thing that exists for visually programming a matrix? I’ve found Glediator and a few others but haven’t been able to get them to work.
@marmil amazing, I am just working on this right now! I am trying to figure this out and trying to get my Mega2560 board to work with no success so far.
What board would you suggest to run 6 matrices, total LEDs=1350. All signs point to a teensy as my Mega won’t even compute.
Thanks again for the help! Every link so far and code you have sent has helped immensely.
@marmil I got the RGB shades mapped to my sphere… all i can say is WOW! Thanks again for the direction and links. I am starting to really get a handle on it after the last two days.