These are chat archives for Makuna/NeoPixelBus

8th
Jun 2018
Georg Lukas
@ge0rg
Jun 08 2018 19:05
Hi! When I was doing a KITT style effect with color.Darken() I realized that the WS2812 LED internal PWM is linear and not corrected for brightness perception. Would it be possible to add a https://en.wikipedia.org/wiki/CIE_1931_color_space mapping on transmission, so that Darken and co work in a perception-linear fashion?
The according mapping would take 256 bytes of ROM and one lookup per color channel, you can generate the map with https://github.com/ge0rg/WiFI-RGBWW-module/blob/esp01ws2812/H801_MQTT_firmware/cie1931.py (change int to char)
Debaucus
@debaucus_twitter
Jun 08 2018 19:10
Hey guys
Anyone around who could help a noob out? Getting irregular colours on the LEDS
Debaucus
@debaucus_twitter
Jun 08 2018 19:20
Ash
@ashthespy
Jun 08 2018 19:23
@debaucus_twitter check the wiki for the usual suspects (level shifting, loose wiring etc)
Debaucus
@debaucus_twitter
Jun 08 2018 19:24
Im running a script to change red-green every second. Sometimes works, sometimes splashes of random colours. Only 10 LEDs
Debaucus
@debaucus_twitter
Jun 08 2018 19:27
I'm using external power, not off the board.
Ash
@ashthespy
Jun 08 2018 19:27
Cool - but which board - is it a 5v or 3.3v ?
Debaucus
@debaucus_twitter
Jun 08 2018 19:28
sec
Uno 5v
Ash
@ashthespy
Jun 08 2018 19:30
Okay, I'd then suggest you get the simple test script (https://github.com/Makuna/NeoPixelBus/blob/master/examples/NeoPixelTest/NeoPixelTest.ino) working
that should help you isolate hardware vs software issues!
Debaucus
@debaucus_twitter
Jun 08 2018 19:32
In the case of the correct pin, I'm using 6
Ash
@ashthespy
Jun 08 2018 19:35
Sure - the right pin is important for other micros (like the ESPxxxx)
Debaucus
@debaucus_twitter
Jun 08 2018 19:38
Where would I see the printouts
Because my colours arn't matching
Ash
@ashthespy
Jun 08 2018 19:39
you mean the Serial.print ?
Arduino IDE ---> Ctrl Shift M
Debaucus
@debaucus_twitter
Jun 08 2018 19:41
I have it up, not getting colours that match all
Turning off doesn't turn them off either
https://www.twitch.tv/debaucus live stream of my mess
Ash
@ashthespy
Jun 08 2018 19:42
Then you have some connection issues..
There is a good started guide on the adafruit website - check it out
long shot - but if you have a scope you can check the signal..
Debaucus
@debaucus_twitter
Jun 08 2018 19:52
I dont get a red pixel, again no turn off, tested on 2 ardinos
Sp probably connection
Ash
@ashthespy
Jun 08 2018 19:56
What pixels are you running?
You might want to look at the features on the wiki
Debaucus
@debaucus_twitter
Jun 08 2018 20:10
It was me not plugging ground into the controller
Ash
@ashthespy
Jun 08 2018 20:11
Ah - read the docs - it saves you a lot of time! ;-)
Debaucus
@debaucus_twitter
Jun 08 2018 22:01
Thats the truth right there :D