Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By ketan
#46299
Barnabybear wrote:Hi, I believe 50uA, but have never tested it. If you connect a 10k between 3.3V and a GPIO set as an input - if 50uA is correct then you should see about 0.4V dropped across the 10K.



Are you sure?? because even with 1k resistor to 3.3v, the input doesn't trigger..


Thank you
User avatar
By ketan
#46379
martinayotte wrote:Yes, the specs is saying 50uA as "IIL Input Leakage Current".

So, probably you have a problem elsewhere, or your hardware is damage.



Thanks for reply. I am using esp 12 E , with and without a breakout board running nodemcu.
I have wrote a very simple code to which shows the problem.

Code: Select allgpio.mode(6, gpio.OUTPUT)
gpio.mode(9, gpio.INPUT)
gpio.write(9, gpio.LOW)




tmr.alarm(1, 100, 1, function()

if (gpio.read(9)==1) then
        gpio.write(6,gpio.HIGH)
    else
        gpio.write(6,gpio.LOW)
    end

end
)


The gpio 6 goes high when I give vcc to gpio 6...even if i use 100 ohm resistor to input, the gpio 6 wont go high.

Kindly help

Thank You
User avatar
By Barnabybear
#46381 Hi, GPIOs 6 and 9 are not the best ones to be starting out with as the by default have other uses (SPI flash). Try with 4 and 5, you should get better results. The table about halfway down this page shows the possable functions, off hand Function 0 is the default after boot.