Author Topic: WiFi Esp8266 ESP 12 Board - How to use the pins ?  (Read 8541 times)

0 Members and 1 Guest are viewing this topic.

Offline tytowerTopic starter

  • Contributor
  • Posts: 44
WiFi Esp8266 ESP 12 Board - How to use the pins ?
« on: May 14, 2015, 10:01:37 am »
 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...........edit......now Pin2 in sketch and DHT running properly on it.
GPIO 5...........edir......Pin5 and SDA
GPIO 4...........edit......Pin4 and SCL
GPIO 13
GPIO 12
GPIO 14
GPIO 16.........edit......XPD---| |----RST for DeepSleep
ADC...............edit......the only Analog pin available

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.

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? SDA and SCL but which pins.

So are the GPIO pins analog or digital ? Perhaps I have to set them up
Is there a diagram of these ?
All help appreciated-
« Last Edit: May 26, 2015, 11:26:28 am by tytower »
 

Offline TJ232

  • Frequent Contributor
  • **
  • Posts: 331
  • Country: 00
  • www.esp8266-projects.org
    • ESP8266 Projects
Re: WiFi Esp8266 ESP 12 Board - How to use the pins ?
« Reply #1 on: May 14, 2015, 06:28:24 pm »
Hi,

Please find attached my wall-hanging GPIO pinout and NodeMCU New I/O TABLE ( Build 20141219 and later)
Also, take a look on esp8266-projects.com, esp8266.com, you will find a lot of informations that can help you to start with esp8266.
ESP8266 Projects - www.esp8266-projects.org
MPDMv4 Dimmer Board available on Tindie: https://www.tindie.com/stores/next_evo1/
 

Offline tytowerTopic starter

  • Contributor
  • Posts: 44
Re: WiFi Esp8266 ESP 12 Board - How to use the pins ?
« Reply #2 on: May 15, 2015, 10:14:07 am »
Hi,

Please find attached my wall-hanging GPIO pinout and NodeMCU New I/O TABLE ( Build 20141219 and later)
Also, take a look on esp8266-projects.com, esp8266.com, you will find a lot of informations that can help you to start with esp8266.

That was the one I needed thanks
I suspect however that this may only relate to Arduino IDE releases 1.6.1 and prior .
Downloading IDE 1.6.4 there is a different system of getting the ESP8266 library through preferences and it is also stored in a "packages" directory if you want to find the cpp and h files.

I notice most importantly that GPIO2 is addressed as pin 2 in my sketch and this is working for me at present. GPIO4 and 5 are now addressed as pins 4 and 5 and I have used them for I2C  . I have not checked the other pins yet but I think this release has fixed them to board numbers.XPD connected to RST through a small capacitor does a great job of putting it into and out of deep sleep.
« Last Edit: May 26, 2015, 11:22:41 am by tytower »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf