Chat freely about anything...

User avatar
By tytower
#17301 So I have an ESP12 board with 16 pins and it would appear the following pins are useable for my sensor input and output.

GPIO 2
GPIO 5
GPIO 4
GPIO 13
GPIO 12
GPIO 14
GPIO 16
ADC

I want to connect firstly a DHT22 sensor which has GND/VCC/DATA wires
Which pin should I choose for DATA wire and why ? It was connected to pin D2 on an arduino. EDIT Working on pin GPIO2 addressed in sketch as Pin 2

I want also to connect a BMP180 sensor and its 2 data lines were connected to pins A4 and A5 of the Arduino . Which should I choose and why?
EDIT Ther seems to be an issue with ESP8266/Arduino library in which the I2c pins chosen are not setting up properly. I am waiting to get this sensor going and will post back when working

EDIT I found info on this and edited the wiki to include it

http://www.esp8266.com/wiki/doku.php?id=esp8266_gpio_pin_allocations