-->
Page 1 of 1

ESP-12S I2C Pins

PostPosted: Tue Jun 09, 2020 6:20 am
by jonny772
Hi All, got myself confused. Hoping someone can clear up the IC2 pin out for a ESP-12S.

I have built a board which was prototyped using a WEMOS D1, I had it pick and place soldered and swapped out the WEMOS for a built in ESP-12S.

I have been working on the assumption that the IC2 pins were:
GPIO 5 -> SCL
GPIO 4 -> SDA

As it now cant find the accelerometer i'm guessing I have screwed up, googling I found a data sheet suggesting that the ESP-12s has:
IO 14 -> SCL
IO 2 -> SDA
https://www.elecrow.com/download/ESP-12 ... Manual.pdf

Anyone help clarify for me? If i messed up which ESP module should i have used?

Cheers!

Re: ESP-12S I2C Pins

PostPosted: Tue Jun 09, 2020 4:49 pm
by Bonzo
I am using GPIO4 and 5 on my project.

Have you tried some software to check the device can be found?

Re: ESP-12S I2C Pins

PostPosted: Tue Jun 09, 2020 7:52 pm
by davydnorris
The I2C pins can be any generic GPIO pins you have free as it's completely done in software. I use 4 and 5 but the default for a lot of Arduino is 2 and 14.

You can change what pins are used in the software - for Arduino it's done by passing in the pin numbers in the Wire.begin() function, in the NonOS SDK it's a define in the i2c_master.h file