-->
Page 1 of 1

Pullup Resistors for pushbutton

PostPosted: Thu Sep 22, 2016 6:12 am
by Matys
Hello there,
Im new with ESP8266 developing, and i started to use ESP12-F with some arduino experience.

First sketch i tried to is pushbutton - assigned GPIO16 as input , wired 1k pullup resistor from VCC to GPIO16 and pushbutton from the ground to GPIO16 - but it seems that there is no reaction at all when i press the button.

Is there something im doing wrong here ?

Re: Pullup Resistors for pushbutton

PostPosted: Thu Sep 22, 2016 11:24 am
by rudy
Maybe if you paste the code you are using. Have you tried any other inputs?

I'm not aware of any reason for it to not work.

Re: Pullup Resistors for pushbutton

PostPosted: Thu Sep 22, 2016 12:01 pm
by Matys
Simple digital read and serial print to check current value.

Is is possible to use internal pullups to skip resistor? Like INPUT_PULLUP ?

Re: Pullup Resistors for pushbutton

PostPosted: Fri Sep 23, 2016 7:29 am
by martinayotte
It is possible to use internal weak pullups, but the switch need to be nearby.
On long wire length to the switch, or in harsh environment, you will get noise into GPIO producing false reading, in such case use strong external pullups.