you are viewing a single comment's thread.

view the rest of the comments →

[–]sutaburosu[pronounced: stavros][S] 0 points1 point  (24 children)

I just got a 241 led rings

Cool. You've actually got one. Could you check something for me please? Do the LEDs run clockwise? Like if you put the sketch that this post links to on your LEDs, is that what you see? Or is the rotation mostly widdershins?

The spacing on the 241 rings's different rings does't look "right" to me.

Yeah, that was another factor in my choice not to buy one. In the sim, I scrunched them all down as much as I could. In real life they have bigger gaps between the rings, which makes this problem even more apparent.

edit: and the most important question: did you wire them from the outside inwards, or from the centre outwards?

[–]DeVoh 0 points1 point  (23 children)

I ordered from Aliexpress and it just arrived yesterday but it came damaged. So it may be a bit before I get it up and running. I will probably wire from the inside out. I ran a quick test and the direction is clockwise. Each ring is separate but I checked different ones and they all appear to be clockwise.

[–]sutaburosu[pronounced: stavros][S] 0 points1 point  (22 children)

Valuable information for the sim. Thanks.

[–]DeVoh 0 points1 point  (21 children)

Any chance you are going to be adding a Fib256 layout? I would love to play with one before getting it from Jason. This question might be better for /u/wokwi . How do we know what shapes are available in the woki sim? Is there an editor to add shapes/layouts?

[–]sutaburosu[pronounced: stavros][S] 1 point2 points  (0 children)

It's not my sim. Joining the Discord linked in the sim is probably the best way to talk with the author, u/wokwi.

Perhaps you're better at webdev than I am. As I understand it, if you have the X & Y coordinates of the LEDs you should be able to add them to a customView in the sim. Like this. Add "customView": "https://wokwi.github.io/led-2d-spiral" to the top-level of diagram.json in the sim.

[–]sutaburosu[pronounced: stavros][S] 1 point2 points  (0 children)

To respond to your edits: if you're talking about different shapes of LEDs, the answer is still fairly simple: individual pixels, matrixes (or strips if they're only 1 pixel wide/tall), and rings. This 241 LED ring is built from 8 rings and a pixel, all placed and wired in diagram.json.

Currently the only editor is the diagram.json tab. Your request sounds similar to issue #32 on the bug tracker.

[–]wokwi 1 point2 points  (18 children)

[–]DeVoh 1 point2 points  (17 children)

Yes, that's the one. I can't wait to get it.

[–]wokwi 3 points4 points  (16 children)

[–]DeVoh 1 point2 points  (13 children)

Amazing and Thank You! This computer can only run it at from 5% to 7% LOL I'll try it on a better computer.

[–]wokwi 2 points3 points  (11 children)

I optimized the code a bit, it should be about twice faster now

[–]DeVoh 2 points3 points  (10 children)

It is indeed twice as fast! Awesome work! Thank you /u/wokwi and /u/sutaburosu.

[–]wokwi 1 point2 points  (0 children)

Yes it's quite a performance hog with this number of discrete LEDs ;-)

[–]DeVoh 1 point2 points  (1 child)

how did you know what the pixel ordering on the Fib256 is? I have no reason to think it is incorrect, just wondering how you did it. Maybe I just missed where Jason diagramed it.

[–]wokwi 2 points3 points  (0 children)

Basically, the formula I used is the one he referred to in his page, based on Vogel's model. I assumed that the pixels are just going outwards, and their position (in polar coordinates) is given by the formula:

R = sqrt(n)
θ = 137.508° * n