You are currently browsing the source tag archives.

Chronodot Library Update

Posted 2011.12.01 17.40 in Computers/Internet/Technology

Arduino has just released their 1.0 software update. This is a Big Deal, but it does break some prior content. Changes to the basic libraries and the Wire library have resulted in my simple Chronodot library no longer functioning.

Fortunately it was a quick and simple fix which I’ve attached below.

One of these days I’ll learn how to use Git and do a real repository thing…


Chronodot Library Update

Note – this library is backwards compatible to older Arduino IDEs as well.

Chronodot Library for Arduino

Posted 2011.04.09 22.44 in Computers/Internet/Technology

When I was working on my Thermostat project, I came across the Chronodot RTC (real time clock) and decided it would be the perfect choice. Not just because it’s incredibly accurate, but because it provided both time and temperature readings in a single package. I could have used another RTC such as the DS1307 which is less expensive, but then I would have had to use something else for reading the temperature.

The only thing about using the Chronodot to get temperature readings was that there wasn’t an Arduino library that could get me that information. The Chronodot communicates using the i2c protocol, and as I hadn’t used it before I was hoping to find some examples and a usable library. Fortunately it’s compatible with the DS1307, but of course that library has no reference to temperature as the ‘1307 doesn’t read the temp.

So using the ‘1307 library as a starting point, I expanded it by adding two new readings to it: temperature, in both farenheit and celcius.

The library includes an example sketch. If you’re familiar with using the DS1307 with an Arduino then the Chronodot library will be an easy drop-in replacement. The time features are unchanged, I’ve just added the two temperature readings so they’re available within your sketch.

Click here to download the library: