ESP8266 RTC vs HTTP request - Battery Consumption

0 votes
Let’s say, I used deep sleep and once awake, the wireless has to set up to send some data to my cloud storage, but it needs to happen just before I get the time with the NTPClient library. Then again, I might just save some battery if I use a RTC. So, is using NTPClient library and making an HTTP request to get the time more efficient or is it using a RTC and reading the time from it. TIA!
Jan 23, 2019 in IoT (Internet of Things) by Bharani
• 4,660 points
908 views

1 answer to this question.

0 votes
A project I work on uses both RTC and NTP running on battery and using deep sleep and RTC seems to be the better option for battery saving and reliability.

I’m using RTC with i2c protocol and a clear advantage is that you’ll get the time you need, tens of ms as compared to using NTP that requires at least 1 or 2 seconds depending on the library being used. Also, issues like connection problems or such seem impossible when using the RTC Module. While wifi/internet/ntp connection fails at times, the RTC module has never once failed during my tests. Conveniently, you even can program the RTC module offline and mount in the circuit after that as it includes a back-up battery, which claims a guarantee duration of a couple of years. I use the date and time coming from the RTC module, which I calibrate using the NTP protocol only once a week.

However, many IoT cloud platforms only accept data that use the timestamp of the receiving stream rather than the one provided by the device.
answered Jan 23, 2019 by DataKing99
• 8,250 points

Related Questions In IoT (Internet of Things)

0 votes
1 answer

NodeMCU HTTP : How to use HTTPS post request?

Your firmware might not have SSL/TLS enabled. ...READ MORE

answered Feb 11, 2019 in IoT (Internet of Things) by Shubham
• 13,490 points
3,689 views
0 votes
1 answer

Faster communication between two ESP8266 in client-server setup

Try following. Server loop void loop() { // ...READ MORE

answered Jul 13, 2018 in IoT (Internet of Things) by anonymous2
• 4,240 points
6,860 views
0 votes
1 answer

IoT request response protocol

Based on your requirement of a light ...READ MORE

answered Jul 13, 2018 in IoT (Internet of Things) by anonymous2
• 4,240 points
1,864 views
0 votes
1 answer

MQTT pubish is slow to send with ESP8266 & NodeMCU

I think you're almost correct and on ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
3,317 views
0 votes
1 answer
0 votes
1 answer

Send CoAP requests using Python

You can use a library like CoAPython ...READ MORE

answered Oct 16, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,883 views
0 votes
1 answer

Intel Galileo Vs. Intel Edison?

Intel Galileo Key Features: Type: Single-Board Computer CPU: Intel Quark ...READ MORE

answered Aug 20, 2018 in IoT (Internet of Things) by DataKing99
• 8,250 points
2,179 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP