ESP8266 Developer Zone The Official ESP8266 Forum 2015-08-01T02:13:20+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=787 2015-08-01T02:13:20+08:00 2015-08-01T02:13:20+08:00 https://bbs.espressif.com:443/viewtopic.php?t=787&p=2986#p2986 <![CDATA[Re: ESP8266 communication with ds3231 RTC on i2c]]> Statistics: Posted by eriksl — Sat Aug 01, 2015 2:13 am


]]>
2015-07-28T16:19:48+08:00 2015-07-28T16:19:48+08:00 https://bbs.espressif.com:443/viewtopic.php?t=787&p=2898#p2898 <![CDATA[Re: ESP8266 communication with ds3231 RTC on i2c]]> Make sure there is an external pull-up resister or set a pull-up register inside.

Statistics: Posted by costaud — Tue Jul 28, 2015 4:19 pm


]]>
2015-07-22T10:22:51+08:00 2015-07-22T10:22:51+08:00 https://bbs.espressif.com:443/viewtopic.php?t=787&p=2780#p2780 <![CDATA[ESP8266 communication with ds3231 RTC on i2c]]> Most of the learning is by way of copy pasting others' code shamelessly.
For last three days, I am trying to get ds3231 talk to esp8266.
I am coding on OsX 10.9, gcc toolchain, espressif SDK 1.2.0.
Using Richard Burton's exquisite driver for ds3231 and espressif's i2c_master driver, I initialised i2c_master_gpio_init in my user_init.
I am using gpio4 (SCL) and gpio5 (SDA) on esp-07, considering silk-mask on module has swapped 4<->5 (confirmed by lua code).
The output I get from getTime (hh:mm:ss, dd-mm-yy) is strange..-> command 6 - RTC

-> command 6 - RTC
-> Time: 37:165:93, 165-24-265
-> command 6 - RTC
-> Time: 37:165:93, 165-24-265
-> command 6 - RTC
-> Time: 37:165:93, 165-24-265
-> command 6 - RTC
-> Time: 37:165:105, 165-24-265
-> command 6 - RTC
-> Time: 37:165:43, 165-24-265
-> command 6 - RTC
-> Time: 37:165:41, 165-24-265

I have confirmed time setting and getting in lua code using same pins on the module-it works like charm.

Can anyone help me in solving the problem.

Statistics: Posted by mojhggn — Wed Jul 22, 2015 10:22 am


]]>