D1 mini + WS2812B + encoder button woes

I have a project with the following setup:

  • A D1 Mini ESP8266 clone
  • A WS2812B strip
  • An encoder with integrated button and 10k pull-up resistors

Controlling the strip with the encoder turns works fine, but as soon as I wire in the button to an input the program fails to start and the strip has one green light.

I've tried different inputs for the button, and tried both 3.3v and 5v for the encoder positive connection. Does anybody have an idea of what I could try to get this to work?

Tinkercad doesn't have an encoder component so I've attempted to represent just the button portion of the circuit, also imagine a D1 mini :slight_smile:

cheers

You didn't include your sketch.
Suspecting here that you're using one of the boot pins in a way that's bunging things up.

PE --

Work it out with MS_Paint.

Here is a sketch with Fritzing, a better recommendation than MS_Paint. I have not diagrammed the 10k pull-ups because they are integrated in the rotary encoder pcb. The WS2812b is chained to 71 more.

Another detail which may be important, it is currently powered from the USB-C.

When the switch out is connected to D8 the LED strip fails to get data and there is just one green lit.

Thanks

I disagree.

"Sketch" is Arduino parlance for "your program".

As far as I know, gpio15 (d8) can't have pullups on boot.

Probably not related, but there are lot of esp boards with usb-c connector that have misbehaviours, commonly with wifi.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.