Started writing some code for a physics based particle system today — in preparation

fastled-showtell
gplus
(James Carruthers) #1

Started writing some code for a physics based particle system today — in preparation before my long strips arrive. The code takes in the distance between the LEDs and then you can fire off particles at m/s with a set velocity and acceleration.

Video shows the particles all spinning in the same direction with the same velocity and negative acceleration — then they come to a stop and go off in random directions at different velocity and acceleration — and repeat etc

(James Carruthers) #2

Oh yeah — plus the particles have tails and then a blur added on top for some extra spice.

(Mike Eden) #3

I’d love to see your code for this!

(James Carruthers) #4

@Mike_Eden it’s dead simple stuff that I’m putting in to a library — I’ve not written a class for Arduino before so I am learning the ropes — I’ll publish it when I have something a bit more substantial — plus, I’ve never published my code before so it’s a bit daunting!

(Corbin Dunn) #5

OOOOH I like it! If you want to share, I wouldn’t mind poking around with the code as-is. Feel free to email it to me if you are willing. corbin @ corbinstreehouse dot com.

(Mike Eden) #6

me too ! eden.mike@gmail.com

(Robert Atkins) #7

Nice! I was going to have a poke at something like this soon.

(Brian Isenstein) #8

Hi James, did you ever post this code anywhere? I’ve made a LED crown for Halloween and would love to add your particles to my array of animations.

(Gustavo K) #9

James could you Share the code in order to experiment with IT ? , thankyou