Hacker News new | ask | show | jobs
by M95D 803 days ago
RTC module for Raspberry is ~ $1.
2 comments

Right, it's only $1.

Plus the time to learn a few modprobe commands. Perhaps run a few commands echoing numbers to random sysfs files. Perhaps learn WTF a 'Device Tree Overlay' is - a concept that's completely absent on x86 systems. You see, this is an 'I2C' device, so it doesn't plug and play like USB and PCIe devices do. It is much simpler, and hence for some reason more difficult. Perhaps your device tree overlay needs to be complied? Or maybe not. Perhaps you'll edit your modules file and your kernel command line. Of course that won't involve update-grub, why would you think that?

Don't forget to periodically check on your settings, just in case an OS update or something has disabled one of those settings.

Oh and of course you won't be able to fully test this over SSH, if the network is up NTP will have set your clock whether the RTC is set up right or not. As we've learned from the article, if you run into clock problems you might not be able to connect remotely.

Then simply invent a time machine so you can do all of this in the past, before the pi SD card fails and it drops off the network.

If the user has issues with all of that, then RPi is not the rigth tool for them.
Ah yes the Raspberry Pi, a charitable project intended to get young kids into coding, which comes with kid-friendly projects, brightly coloured beginners' guide books, and pre-installed with Scratch, is truly only a tool for experienced professionals.

/s

Yes, if he/she was using it for that (kid projects, Scratch, etc.) it would have been the right tool. Maybe it's because she skipped all those steps in his/her IT education is the reason he/she is having troubles now.

I learned about the devicetree on a RPi too, but I didn't complain about it in a blog. When I bought my first RPi I expected to encounter problems and learn a lot from solving them. In fact, I expected it to be much much worse - so much worse that I even bought the RTC module even before the RPi arrived in the mail. Why didn't he/she think of that? It's because he/she is lacking the basics, the kid project with gpio leds and i2c sensors.

and you certaintly get what you pay for, DS3231s fry almost as easily as MAX3232s,

(And you can do the same thing were you write the time to the RTC before you have the correct time)

I have used these in product designs before with zero failures. Where exactly did you buy your samples?

We found they drift less than 28s a year in standalone mode. Also, were repeatable within +-18ms when using a NTP client.

Microchip RTCs are harder to setup, but also seem to work just as well (ignoring the goofy epoch).

Chip shortage caused people to do unspeakable things.... ;-)

You could buy an rtc and put up with that kind of clock drift, or.... for the same money or less you could be a GPS and have none of that drift.
(a bit more money for the GPS to be fair) not even mentioning the fact that you should have clear-ish access to the sky, the time taken for you to receive the time data, and the possibility of jamming. I could go on but the two methods have differing modes of operation and failure despite ultimately being capable of fulfilling the need for a reasonably synchronized clock
I have a DS1307 installed ever since I bought a RPi3B+. It didn't fail and it's accurate enough until NTP updates the time.

Are you sure you connected it correctly?