-->
Page 1 of 3

I need help to config esp12 i2c to max6675

PostPosted: Thu Jul 20, 2017 3:10 pm
by Mihail
I wan to read i2c from boarMAX6675(GNT VCC D0 CS CLK). I use esp8266(esp 12 module)!
I am connect to GPIO00->D0 and GPIO2 -> CLK.
What's next..? :?

Re: I need help to config esp12 i2c to max6675

PostPosted: Thu Jul 20, 2017 8:23 pm
by heckler
Hi Mihail,
So have you been successful in loading espbasic on the esp12 module?
have you been able to run any basic programs?

I would start by searching the "mmiscool" section of the forum for "i2c" and "i2c read" etc. etc.

I have never read anything from an I2C module so I don't have any sample code to share.

Be sure to read through the docs and especially the section about I2C commands.

https://docs.google.com/document/d/1EiY ... 70uv9yilc8


good luck.
dwight

Re: I need help to config esp12 i2c to max6675

PostPosted: Thu Jul 20, 2017 10:39 pm
by trackerj
First check your wiring, double check allocated SDA/SCL pins, pull-up resistors if needed, Vcc, GND.
Next step, use a I2C scanner to confirm that your I2C device/s are working OK.

For a simple I2C scanner, take a look here, in the ESP Basic section:
http://esp8266-projects.com/2016/08/esp-basic-i2c-bus-scanner-example/

Re: I need help to config esp12 i2c to max6675

PostPosted: Fri Jul 21, 2017 1:08 am
by Mihail
Yes :) , I test the device and it is working normally. I start several programs and it works well !
I saw and try this tutorial for scanning i2c, but nothing is scanned when scanning!
to i2c.read() is printing 0
to i2c.end() is printing 2
I put pull-up resistors to VCC of both pins!