I connected one to 3V VCC, GND and D3 (GPIO0) directly.
The LED ring ist connected to 5V, GND and D4.
In the settings, I chose “touch” as button and put 3 favorites to “button actions” of button 0.
Set up like this, the D1 won’t even boot correctly. There are two LEDs glowing as a status indicator and the D1 won’t connect to the Wifi or boot up correctly.
If I unplug the data connection of the touch button and reconnect the D1 to power, it boots up correctly.
If I then put back the data connection to D3, the button somehow works but the LEDs won’t behave like supposed - see “favorites”.
If I choose “Push inverted” for the kind of button, it totally works as intended. Every press (long, short, double) results in the correct favorite.
BUT: Resetting the D1 or dis- and reconnecting it to power still results in NOT powering up. I always have to do the thing with unplugging and replugging the data cable of the touch button.
I suppose it’s something with high and low of the button but could you please help me find a solution?
Many thanks and best regards
Muhackl
Why not just use esp32 instead? The esp32 boards have up to 10 pins that have capacitive touch baked in. No need for resistors or separate touch buttons, just run a wire to a metal washer or foil on the back of a pieces off glass.
I love the D1 mini, because I can fit them totally everywhere. I already have plenty of them so…
Same with those touch buttons.
So the question stays the same: what am I doing wrong with this pull-up-resistor?
The touch button you are using outputs a TTL level signal, so don’t configure it as a touch button, but a normal button. You also don’t need any pullup or pull down resistors.
Also, have you set the A & B links of the button?
If not, the switch output without detecting a touch will be low and on the model of Wemos D1 that you are using, holding GPIO0 low at power up could be putting it into flash mode. Hence why it does not boot with the switch connected.
Try setting the A & B links on the switch to change the polarity so that it is high without detecting a touch.