Go Down

Topic: WiFi Esp8266 ESP 12 Board - How to use the pins ? (Read 28801 times) previous topic - next topic

b-james

May 14, 2015, 07:37 am Last Edit: May 14, 2015, 07:40 am by b-james
 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.

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?
I assume the other needed wires for SPI have to be connected somehow too . This would have been done on the Arduino boards through the Ethernet shield .The idea here is to get rid of the Ethernet board.

So are the GPIO pins analog or digital ? Perhaps I have to set them up
Is there a diagram of these ?
All help appreciated.

evildave_666

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.

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?
I assume the other needed wires for SPI have to be connected somehow too . This would have been done on the Arduino boards through the Ethernet shield .The idea here is to get rid of the Ethernet board.

So are the GPIO pins analog or digital ? Perhaps I have to set them up
Is there a diagram of these ?
All help appreciated.
You can use any GPIO for the DHT
Similarly you can use any for I2C (the device doesn't have a hardware I2C), don't forget your pullups.
I don't understand your SPI references, neither of the devices you asked about are SPI.

b-james

#2
May 14, 2015, 12:06 pm Last Edit: May 14, 2015, 01:44 pm by b-james
The BMP180 uses SPI I thought but maybe thats just the ethernet board and I am confused as you can see . BMP180 has 2 data pins which I presume are the IC2 you refer to .

I used pin GPIO13 for the DHT and 14 and 16 for the BMP180
Neither worked for me yet and I have not bothered with any pullups at this stage
I tried with pins 2 4 and 5 with no success I must be missing something here

evildave_666

#3
May 15, 2015, 02:46 am Last Edit: May 15, 2015, 02:46 am by evildave_666
Neither of those devices will work without pullups unless you've got a breakout module with them built in.

b-james

#4
May 16, 2015, 03:23 am Last Edit: May 27, 2015, 08:54 am by b-james
Neither of those devices will work without pullups unless you've got a breakout module with them built in.
Didn't think you were right at first . Mine work fine on an arduino board but I cant see into the DHT22 and I have a resistor on its data line  and the BMP180 is a sparkfun breakout, so maybe you are !

Anyway what was causing the problem is that you don't use the pin numbers on the board . You use the number allocated in the pic below if I can get it on-doesn't look like I can get it to show up
(Thats how it was but not now)


b-james

#5
May 27, 2015, 08:44 am Last Edit: May 27, 2015, 08:51 am by b-james
A bit wiser now . The Arduino IDE 1.6.1 had some funny stuff with the pin allocations it seems . Now in 1.6.4 the GPIO pins follow the normal pin numbers. GPIO 2 is pin 2 in your sketch. GPIO 4 and 5 are pins 4 & 5 and are SDA and SCL. XPD = GPIO16 connects to reset via a cap for deep sleep awakening and there seems to be a problem with I2C which they are working on right now .

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

ShivangAtul

can anyone help me !!!!!!!!

i have purchased Esp 8266 12E chip which has specification described in below link ....

http://www.amazon.in/Transceiver-ESP8266-ESP-12E-Serial-Wireless/dp/B00RJJHWLA?ie=UTF8&psc=1&redirect=true&ref_=oh_aui_detailpage_o01_s00#detail_bullets_id

i do not know how to wire it up with arduino uno board to use this chip as web server & receive data from web server to arduino uno board ......

also give me the guidance about pins of chip how & when should use that pins i know basic circuit of esp8266 as mention in  below link

http://www.amazon.in/ESP8266-Serial-Wireless-Transceiver-Receive/dp/B00YUOAUPC?tag=googinhydr18418-21&tag=googinkenshoo-21&ascsubtag=12be54d8-28d4-42af-85bc-1a325b801ad5

so will my new chip esp8266 12E work different form this

TStef

can anyone help me !!!!!!!!

i have purchased Esp 8266 12E chip which has specification described in below link ....

http://www.amazon.in/Transceiver-ESP8266-ESP-12E-Serial-Wireless/dp/B00RJJHWLA?ie=UTF8&psc=1&redirect=true&ref_=oh_aui_detailpage_o01_s00#detail_bullets_id

i do not know how to wire it up with arduino uno board to use this chip as web server & receive data from web server to arduino uno board ......

also give me the guidance about pins of chip how & when should use that pins i know basic circuit of esp8266 as mention in  below link

http://www.amazon.in/ESP8266-Serial-Wireless-Transceiver-Receive/dp/B00YUOAUPC?tag=googinhydr18418-21&tag=googinkenshoo-21&ascsubtag=12be54d8-28d4-42af-85bc-1a325b801ad5

so will my new chip esp8266 12E work different form this
Follow my instructable and you'll be able to communicate with the ESP through your Arduino: ESP-12E and Arduino UNO: Getting connected

Go Up