Currently the code with a working wifi connection, but the ws2812 does strange things with its color… This wasn’t the problem when the interrupt was ON…
https://pastebin.com/YUVRmWLP
Thanks, its working!
@Robin_Gerritsen did you change library?
Yeah, I replaced the original… Now it works! Only is there a way to only change the library for this sketch so I can still use the original for the rest?
@Robin_Gerritsen this is the FastLED library only all the rest will work the same
Result… I need to figure out how to reconnect wifi when disconnected with esp32. And I will make an user interface as webserver to change color and alarm timers.
missing/deleted image from Google+
@Robin_Gerritsen Great stuff !!!
@Yves_BAZIN please can you help me set up the library for 12-way parallel output to pins?
21, 22, 12, 17, 4, 16, 2, 18, 19, 23, 5, 13
I’m not quite sure about the PortMask.
I can easily change the data pins if necessary…
Thanks
@Jeremy_Spencer
#define PORT_MASK 0b111011110011000000110100
#NB_STRIPS 12
To create the mask you create a binary that represent each pin but the order of the pins are not configurable so your first strip will be on pin 2 and the last one on pin 23
@Yves_BAZIN Thank you
I was hoping to get away without a level shifter, but it looks like I need one. I’ll put one together over the next couple of days…
@Yves_BAZIN I have some very strange flickering / random colours on pin 13, how do I change the binary to replace pin 13 with pin14?
I still don’t understand how to build it, sorry… Could you give me some guidance, then I won’t have to keep bothering you
@Jeremy_Spencer the portmask is working this way. You represent each pin as a bit. The lowest bit represent the state of pin 0 the most significative is pin 32. Each time you want to select a pin you put a 1.
For instance if you want to select two pins 3 and 2 :
Portmask=0b1100 (pin3=1,pin2=1,pin1=0,pin0=0)
Let’s say you want to use pin 10,pin 12,pin 5
Portmask=0b1010000100000 (pin12=1,pin11=0,pin10=1,pin9=0,pin8=0,pin7=0,pin6=0,pin5=1,pin4=0,pin3=0,pin2=0,pin1=0,pin0=0)
So to change pin 13 in pin14 you put 0 at the 14thposition and 1 at the 15th (because we start at 0)
I hope it’s clearer now
@Yves_BAZIN Thank you
@Yves_BAZIN Pin14 is good, no idea what was wrong with pin13!
I have 12 way parallel output working :)))
I’ve still got a tiny amount of flickering, I’m going to reduce the data line resistors from 100k to 50k. I’m pretty sure that will tidy it up.
@Jeremy_Spencer great happy that it works !!! I am personally using pin 13 without any issues
@Yves_BAZIN are you using resistors in your data lines?
@Yves_BAZIN I’m using a different board, a MINI 32 V2… obviously something to do with the board.
@Jeremy_Spencer yes 100ohms before the line and again next to the strip. Are you using the fastled.show on the second core ?
How long are your wires ? I have noticed that they can pick up static quite fast
I’m on core 0
my data lines are only 200mm long!
It will be a starfish configuration in a patio umbrella.
It’s only the first leds that are flickering, the data voltage is almost certainly too low.
I’m using WS2811 pixels, always slightly different to strips
@Jeremy_Spencer the first led of each strip is flickering I did not find the way to stop that … yet … that is why in my board I have ‘dead’ leds.