lafontas:
Hey Jack, I appreciate the dialogue. I'm relatively new to the Arduino having only used them for a couple of years. I have however spent my career as a technologist/manager (I have the grey hair to prove it :). I built a somewhat large Arduino network on my farm and like many others I included RTCs in the design. I had a very poor result with these inexpensive clocks and in the end despite my best efforts I had to abandon them in favor of a using a network time model. I take your point about the RTCs in PCs, however I would point out that most of these devices are regularly adjusted by network time servers which in effect recognizes their shortcomings and, I have had to allocate valuable resources to replace batteries in hundreds of PCs at a substantial cost.
In ordering various RTCs I received a number of units with dead batteries and so I had the further aggravation of ordering LIR2032 cells at $6 - $10 per battery. Arguing the status quo for example how PCs are built, doesn't mean they got it right despite the products success. Again, thank you for the dialogue, I appreciate your passion. Cheers. Steve
Hi Steve,
Sounds like we may have somewhat similar backgrounds. I have a fair amount of experience with several RTCs, from Maxim Integrated and from Microchip, and all have performed exactly as advertised by their datasheets. So I'd have to ask where the disappointing units came from. There have been a lot of threads on the forum here about problems with inexpensive RTC modules, usually from eBay or other sketchy sellers. These are not representative, there is some real junk out there. Batteries that are DOA are a sure sign of a disreputable seller and I'd definitely cross them off my list. I only use components from top-shelf distributors like Mouser and Digi-Key. I offer an RTC module on Tindie.com and have sold a fair number of them with only good reviews. I've had several repeat customers including an order for over a dozen that I believe wound up in another product.
Maxim DS1307 is my least favorite, it's low on features and as @liudr points out, its accuracy is determined strictly by the crystal, typically ±20ppm, which in my book is marginal accuracy. Maxim's DS3231/32 are much better due to a built in temperature-compensated crystal. These can and do deliver ±2ppm.
The Microchip MCP79411/12 which I sell on Tindie are interesting RTCs. Loads of features, one of which is a calibration register. Even though these also use a ±20ppm crystal (I don't use the metal cylinder type, but rather a SMT crystal from Citizen), they can be calibrated very closely. I had one running for nearly a year (at fairly constant household temperatures) that was off by less than 0.5ppm.
As for Lithium coin cells, I am definitely in the wrong business
I use CR2016s in my RTCs. A package of two will go for $5-$6 at the local SprawlMart, yet I can order ten from Mouser (Panasonic brand) for around $0.30 each. Go figure. One of these should last 5-7 years in an RTC as standby current specs are typically given in nanoamps.
I too have an Arduino/XBee network. The data concentrator node interfaces to the web, and also syncs its clock periodically with an NTP server. The sensor nodes in turn update their clocks from the concentrator. Some nodes have RTC chips and some just rely on the MCU's system clock, for which I usually use a ±20ppm or ±30ppm crystal.
So that's the view from here. As long as expectations are aligned with the specs in the datasheets (including the crystal's datasheet), then if there's still a disconnect, I would not look to the RTC first, but rather to circuit design, counterfeit parts, etc.
I too appreciate the dialog, hope to see you around the forum! Best regards ... jc
PS: Well we have totally hijacked the OP's thread at this point, apologies for that. OP, if you're still out there, give us an update, let us know what's going on.