thanks for the help :simple_smile:
Best posts made by amongstmyselves
Latest posts made by amongstmyselves
Gateway SD card logging of Node data
I want to have the Gateway save the node data to a SD card. I don't want to run a computer 24/7 as we live off grid and that power luxury is not available. I have the SD card code working on the ESP8266 but I want to capture the data that is usually sent to the Controller to the SD card. How do I get access to that real time data coming from the nodes ?
RE: ESP8266 Gateway and I2C RTC
@Yveaux Thanks for the quick reply.
Ah yes I did forget the pull ups. Not use to using them. Anyhow, it made the stand alone RTCLib example work mostly which was just a simple clock program but the Gateway still not working. Not getting the correct date and time from the RTC. I say mostly because the code doesn't seem to report the module not connected from the function rtc.begin() ?
ESP8266 Gateway and I2C RTC
First time post. Have been slowly learning the basics of this wonderful library.
I have an ESP8266 NodeMCU as my gateway. It has a nRF24.. radio for communication to the nodes. I've also placed a SD card module on the gateway which appears to be working. This setup appears to be communicating fine with my first node. The SD card module is there for logging as I would like a record of all the goings on in my planned array of nodes.
Just to try my luck I also want to place a RTC module on the gateway mostly so I could also log the date and time an event occurred. I have a DS3231 module that works on my test Nano.
So I've tried it on the ESP8266 with no problems using the same test code as the Nano which is the DS3132 sketch from the RTClib written by Adafruit. But when I incorporate this code into the Gateway code the clock no longer functions giving me an incorrect date and time.
I've just rechecked and it appears the RTC code doesn't work on the ESP8266 in either situation. So I suppose my question now changes to - Does I2C work on the ESP8266 ? I am using D1 for SCL and D2 for SDA as I read.
Any leads would be greatly appreciated.