and it kind of works but at every signal it it goes both ON and OFF, this id part of log
[D][binary_sensor:036]: 'potenciomet pin 1': Sending state ON
[D][binary_sensor:036]: 'potenciomet pin 1': Sending state OFF
[D][binary_sensor:036]: 'potenciomet pin 1': Sending state ON
[D][binary_sensor:036]: 'potenciomet pin 1': Sending state OFF
Sorry for this for sure dumb questions but this is my first project using D1 mini so I dont really know what I am doing
But I only need on/off I need to send the information that the ābuttonā was pressed and I need it for 9 buttons so using analog pin does not make sense
yeah, sorry I just realized and was going to write it so thats that, I am going to use 2 D1 and that should do the trick, thank you all guys for your help both projects I wanted to do are working and I really would not manage it without you, especially Justin and Stephen so thanks guys very much
yes. for example look at RX-GPIO3 - High at boot. It just needs to be high at boot so you cant attach a button to that pin and use a pull down resistor as that will pull it LOW and it wont be able to boot. As long as your not interfering with the logic level it needs to be in at boot then you can use it. A lot of people will say you canāt or dont use them because itās just easier to say that and avoid issues when they get used incorrectly.
These are pins you wouldnāt want to use if normal GPIO pins are available, they shouldnāt be your fist choice but, you can use them.
Ok so if I only connect buttons and not any pullup or pulldown resistors I should be ok, so I can connect button that has one pin to GND and other to D0 but I can not press it when its booting but after it starts I can use it with no problems
yes. the one issue you may run into though is when its booting, the state of that pin(button) does change and that may effect whatever that button is supposed to trigger in your program but, you can usually account for this by ignoring it or some other way. It very well may not cause an issue either since itās only happening during boot and it may not register as a valid button press in your program. Just try it, if you need help iām here for a few more hours.
for example here. This morning i was messing around with 2 stepper motors and a d1 mini. Iām making a pan/tilt mount for a camera so i can move it through HA. I try not to use those GPIO pins but i needed to use 1 because i have 4 control pins for each stepper and i had to use one. Iām using RX-GPIO3. As long as iām not pulling it low at boot, which doesnāt happen with me using a stepper then itās fine.
Ok I connected everything and it works, kind ofā¦ most of the times when I turn the āpotentiometerā one way it pushes both way like for example I turn what should activate potentiometer 1 pin 1 and it does but with that also activates pin 2, could there be problem in my code? also sending example from log, I pressed the button and then rotated once to one side and it did this
[D][binary_sensor:036]: 'potenciometr 2 push': Sending state OFF
[D][binary_sensor:036]: 'potenciometr 2 push': Sending state ON
[D][binary_sensor:036]: 'potenciometr 2 pin 2': Sending state OFF
[D][binary_sensor:036]: 'potenciometr 2 pin 2': Sending state ON
[D][binary_sensor:036]: 'potenciometr 2 pin 1': Sending state OFF
[D][binary_sensor:036]: 'potenciometr 2 pin 1': Sending state ON
is this the one that shouldnāt be there?
[D][binary_sensor:036]: āpotenciometr 2 pin 1ā: Sending state OFF
[D][binary_sensor:036]: āpotenciometr 2 pin 1ā: Sending state ON
ya, using it as a binary sensor isnāt really ideal, although i guess you could do something with it like that. I was going to say the reason you got that unexpected state change was because you left it floating while the other pins are pulled High.