Page 1 of 1
Ws2812!
Posted: Sat Dec 07, 2019 8:58 pm
by jgu1
Hi All!
I am playing around with the WS2812 strip led. I also managed to get it work, by adjusting color via potentiometer from the example from help in component, nice. But is it possible in FC8 to control the led something similar like this:
https://www.youtube.com/watch?v=EcMKditEVtY
by using the macro component. I have try different setting with the shift component, but no luck.
Have any here experience with this, please.
Br Jorgen
Re: Ws2812!
Posted: Sat Dec 07, 2019 9:17 pm
by mnf
Hi Jorgen,
What effect are you trying to achieve? - You are shifting a single colour strand of leds whilst keeping the last value as is (try using ShiftLEDS1d(1,0)?)
Martin
Re: Ws2812!
Posted: Sat Dec 07, 2019 9:37 pm
by jgu1
Hi Martin!
Thank´s for fast reply.
Is it possible to turn on and off single led. Let maybe two led "run forward and back again, on and off one led at the time, some fun like in the Utube

Hope it make sence.
Br jorgen.
Re: Ws2812!
Posted: Sat Dec 07, 2019 11:16 pm
by mnf
Yes,
Use setledcolour(led, r,g,b)
I'm finding the brightness setting a bit odd - I need to use setbrightness(0.1) - but I'm just playing with loading images from an eeprom chip, so really need a setcolour that doesn't use brightness. I have a scroll image in - will try post a video...
Martin
Re: Ws2812!
Posted: Sun Dec 08, 2019 8:29 am
by jgu1
Ok, Martin, But how is it possible to to let the led shift by using the setcolor? Concerning the brigthness I am agree But you can also use the other compmarco 0 - 255 you know of course.
In my opinion, we miss some of the benefits as you made in the max7219 component.

(I still use it).
Would be nice to make some fun with the WS2812 like in the video, utube.
Look forward to see your video.
Br Jorgen
Re: Ws2812!
Posted: Sun Dec 08, 2019 8:40 am
by mnf
Hi Jorgen,
https://youtu.be/n9Q56mYRpAQ
Need to add some better bitmaps ( and a way to transfer then via UART from pc to Arduino....) Wet and very windy here today so might manage something.
Martin
Re: Ws2812!
Posted: Sun Dec 08, 2019 9:16 am
by jgu1
Ok, Martin, these ws2812. I am using the strip like in the link I added.
But anyway, nice project you have.
Br Jorgen
Re: Ws2812!
Posted: Sun Dec 08, 2019 9:49 am
by mnf
The grid is just a strip really.. 256 leds in a folded form...
The one I have is just that - so the pixels go left to right then right to left....
So the principles are the same.... So to do a rainbow effect - pull the colors from the wheel macro.. (I got this from an adafruit demo!)
Re: Ws2812!
Posted: Sun Dec 08, 2019 10:42 am
by mnf
So (for example) a rainbow scroll modded to 1d...
Re: Ws2812!
Posted: Sun Dec 08, 2019 1:08 pm
by jgu1
Thank you Martin. I will play with your program
Br Jorgen
Re: Ws2812!
Posted: Mon Dec 09, 2019 11:46 pm
by mnf
Did you get it to work?
Martin
Re: Ws2812!
Posted: Tue Dec 10, 2019 7:49 pm
by jgu1
Hi Martin!
Yes I Do, Sorry for late reply. Meanwhile I am in holyday
I Africa.
Yes and it work very nice.

When I come back I Will play
Some more with your examble. What would be Nice is still
To be able to control control each led. Turning on and OFF
Just like some nigthridereffect, and running effect
Written on my Iphone.
Br Jorgen
Re: Ws2812!
Posted: Tue Dec 10, 2019 8:31 pm
by mnf
Hi,
Enjoy your break...
As for KITT - should be doable. Use SetLEDColour to work with individual LEDs.
You can also use GetLEDColour - to 'look' at the current R,G or B value of an LED - but scaling does make life more difficult.
It would be very nice if the buffer contained the 'actual' colour values and scaling was only applied as the data was written out to the LEDs (good luck - esp on Arduino

)
We'll need sound too (and some sound clips - 'Not now Michael'?)
Martin
Re: Ws2812!
Posted: Wed Dec 11, 2019 6:08 pm
by jgu1
Well, well, ok Martin, this is the way, it make sense. As soon I am home again from holyday, I will make a test, thank you very much.
Br Jorgen.
Re: Ws2812!
Posted: Fri Dec 13, 2019 5:02 pm
by MJU
Strange, I was playing with the WS2812B just last week.
I saw that there was an update for the component, and I've updated it.
Since a few days my W2812B ledstrip doesn't work anymore...
Is there a problem with the new component of is my (waterproof) ledstrip gone bad?
Re: Ws2812!
Posted: Fri Dec 13, 2019 7:33 pm
by jgu1
Hi MJU!
I have test Martin’s program 10’th Dec. and it was after update, work fine.. Remember, if you also try Mnf´s program, it is a WS2812, (without the B).
Br Jorgen
Re: Ws2812!
Posted: Thu Dec 19, 2019 9:18 pm
by jgu1
Hi Martin!
Now back from holyday. I follow your guide, and yes, as always it work. I am now able to control single led

thank´s for help.
I att. a small testprogram. I am sure that there are many other way to make a similar program.
I will try to make an "icetap" you know a white tap where it look like the water run downstairs. Difficult
Thank´s
Br Jorgen
Re: Ws2812!
Posted: Fri Dec 20, 2019 12:51 am
by mnf
Glad it works. Look forward to seeing the icetap (new to me) in action...
Re: Ws2812!
Posted: Thu Dec 26, 2019 10:25 pm
by jgu1
Well Martin, I managed to create something like a dripping icetap

I am sure you can do it better, but it is a beginning.
When first I begin to get some experience with the WS2812 I see it is possible to do many funny thing
Br Jorgen
Re: Ws2812!
Posted: Wed Jan 01, 2020 10:02 pm
by mnf
Hi Jorgen,
Hope you had a good Christmas and New Year...
Just managed to try the program - cool effect - I 'stretched' it to the full 60 led strip and made it a bit brighter and faster. For your next trick - how about 'cycling' through a colour palette for the 'chasers' (do they have a proper name?) and a programmable 'gap' (in pixels) between them?? (multiple 'drops' across a longer string of LEDs)
Martin
Re: Ws2812!
Posted: Thu Jan 02, 2020 7:48 pm
by jgu1
Hi Martin!
Yes, all well, hope the same for you.
I see your point

and later I will play with it again. Meanwhile I started up again with a new project with you very good MAX7219 component.
The first project I use a DHT22 showing temperature and humidity and some funny text. Now I try to make a project with Max7219 where I implement
Martins (medelec35) program for the DS18B20 and a DS3231. It work with both component. Now I have to make some finish

When it is end I share here.
Br Jorgen