Neopixel lightsaber project

Hi,

I want to make a "simple" lightsaber concept with neopixel. I allready searched and found many projects, but as I am a Noob with programming I find it very difficult to understand how the (large) programs are programmed and how to re-program or take out loops that I can use for my project...

I don't think my project is very hard to do but I just don't know where to start...

My project should be capable of these functions:

  • Slow rise of intensity of the neopixel leds in 1 color, moving from the first pixel to the last (13 in total) So at the start, first pixel lights green, 10% intensity, then the first pixel shifts to the second with 10% intensity and the first will change to 20% intensity. This effect then should continue to a maximum of 75% intensity for all the 13 pixels and stop there.

  • After all 13 pixels are lit at 75%, Random groups or single pixels should vary from intensity, imitating the glow of the plasma ray.

  • 2 buttons, 1 to toggle the lightsaber on and off. 1 button to change colour from green to red.

Can anyone tell me how to start with this or how to do it?? I would really apreciate it :wink:

Bazeman

Can anyone tell me how to start with this

Start off with a very simple example of lighting up LEDs from the examples.Then you understand what the examples do. You change it just one bit at a time, you predict in your mind what the changes will do. You try the changes and see if it matches your expectation. If it does not you find out why, possibly even by asking here if you have run into a brick wall with your research.

Build things up one step at a time, do not try and do too much at once. In that way you will learn to code.