Powering WS2812B-B through PNP Switch?
Posted: Fri Oct 30, 2020 10:34 pm
Hopefull someone can help me with this. I have 5 pixel LEDs (WS2812B-B) on a custom PBC with the ESP32 WROOM 32D and want to use a PNP Switch to completely cut off the pixels when in deep sleep. Schematic and PCB layout below. Currently my tester code looks like this:
When I give this a shot, nothing works. I've popped voltmeter on it and I'm getting 3.3V off the end of the switch and have even flipped it on and off to make sure it works. But the pixels are not doing anything. I even took the resistor and MOSFET off and bridged with a 0ohm and then the Pixels worked.
I'm using the S8550 (https://datasheet.lcsc.com/szlcsc/18091 ... _C2147.pdf) and a 100K resistor. maybe this is too much? Any help would be very much appreciated!
Code: Select all
void setup()
{
pinMode(32, OUTPUT);
digitalWrite(32, LOW);
delay(5000);
mimir.initPixels();
mimir.testPixels();
}
void loop()
{
mimir.testPixels(5, 1000);
delay(3000);
};
I'm using the S8550 (https://datasheet.lcsc.com/szlcsc/18091 ... _C2147.pdf) and a 100K resistor. maybe this is too much? Any help would be very much appreciated!