-->
Page 1 of 1

ESP-12E Pin Numbers

PostPosted: Wed Jan 04, 2017 3:43 pm
by ptribbey
This may be obvious to some, but I know others will appreciate.
For the 12E module, the pin out for i2C is the gpio number, not the module pin number.

Also, the 1 wire interface is hard coded to gpio2, (pin17) for example: temp(#). where the # is the nth device.
I've only tried temp(0), and it works well.

i2c.setup(0,2) for example, wires the sda to gpio0 or pin 18, and sdc to gpio2 or pin 17.
I tried most of the available combinations, and was successful on all but gpio16(pin4). not sure why.
Paul

Re: ESP-12E Pin Numbers

PostPosted: Wed Jan 04, 2017 5:17 pm
by martinayotte
Did you add external PullUps ?
GPIO16 doesn't have internal pullup, it has pulldown instead, so you need to add external one.

BTW, even if Wire library enable internal pullups, it is recommended to use external ones for better signal integrity.

Re: ESP-12E Pin Numbers

PostPosted: Wed Jan 04, 2017 11:20 pm
by ptribbey
I had 1k pullups, which is conservative, but even a 390 won't make pin 16 work. It really doesn't matter to me, I just wanted to prevent un needed frustration with someone trying to use that pin for I2C.

Re: ESP-12E Pin Numbers

PostPosted: Thu Jan 05, 2017 10:26 am
by martinayotte
I've personally never tried I2C on GPIO16, so I thought it was only PullUp issue.
Maybe it is only related to ESPBasic, due to some other usage.
I will try in native ESPArduino when I get chance.