Using a DS1307 with Lolin NodeMCU
Posted: Sat May 13, 2017 1:25 pm
Anyone had any success getting a DS1307 RTC to work on I2C, with a Lolin NodeMCU ? (With Arduino IDE)
I got it wired up, configured D2 & D3 for SDL & SCL, and ran I2C scanner. I could see 3x device, although only the Tiny RTC connected. None were correctly addressed.
When I tried the examples, I got weird values.
I then tried the same code and same Tiny RTC on my Uno. All worked fine.
Any help or guidance much appreciated
UPDATE........
I got it working. Had to remove R2 & R3 from the Tiny RTD board (They tie SDA & SCL to 5V!!!), and use the "Wire.begin(x.y)" instruction - where x&y are the GPIO numbers (Not the NodeMCU pin numbers)
I got it wired up, configured D2 & D3 for SDL & SCL, and ran I2C scanner. I could see 3x device, although only the Tiny RTC connected. None were correctly addressed.
When I tried the examples, I got weird values.
I then tried the same code and same Tiny RTC on my Uno. All worked fine.
Any help or guidance much appreciated
UPDATE........
I got it working. Had to remove R2 & R3 from the Tiny RTD board (They tie SDA & SCL to 5V!!!), and use the "Wire.begin(x.y)" instruction - where x&y are the GPIO numbers (Not the NodeMCU pin numbers)