<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#">
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/"/>

<title>Jeff Epler's blog</title>
<modified>2020-07-17T21:37:17Z</modified>
<tagline>Photos, electronics, cnc, and more</tagline>
<author><name>Jeff Epler</name><email>jepler@unpythonic.net</email></author>
<entry>
<title>Minimal Time-Zone Handling for CircuitPython</title>
<issued>2020-07-17T21:37:17Z</issued>
<modified>2020-07-17T21:37:17Z</modified>
<id>https://gamma.unpythonic.net/01595021837</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01595021837"/>
<content type="text/html" mode="escaped">
&lt;img src=&quot;https://media.unpythonic.net/emergent-files/01595021837/zones960.png&quot;&gt;

&lt;p&gt;For my clock, I want automatic handling of Daylight Saving Time.  However,
CircuitPython doesn't build in any distinction between local and UTC time, and
fitting in the entire Python3 datetime module or an Olson time zone database is
simply not going to happen.  What can we do that is simple enough to fit, but
can represent the reality of timezones where I live?</content>
</entry>
<entry>
<title>Calibrating the DS3231 and PCF8523 RTCs</title>
<issued>2020-07-16T18:22:35Z</issued>
<modified>2020-07-16T18:22:35Z</modified>
<id>https://gamma.unpythonic.net/01594923755</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01594923755"/>
<content type="text/html" mode="escaped">
&lt;img src=&quot;https://media.unpythonic.net/emergent-files/01594923755/frequency.jpg&quot;&gt;

&lt;p&gt;The &lt;a href=&quot;https://www.adafruit.com/product/3028&quot;&gt;DS3231&lt;/a&gt; and &lt;a href=&quot;https://www.adafruit.com/product/2922&quot;&gt;PCF8523&lt;/a&gt; real time clocks (RTCs) can
both be calibrated by writing various register values.  To follow the
calibration procedures you'll need a frequency counter you trust, with at least
6 digits to calibrate the PCF8523 and 7 digits to calibrate the DS3231.  (It
also has to operate at the comparatively low frequency of 32.768kHz; a common
inexpensive 8-digit frequency counter such as the &amp;quot;SANJIAN STUDIO&amp;quot; has a
minimum of 100kHz so it's not usable for this purpose)  I use an old HP 5315B
universal counter that has been calibrated against GPS time.</content>
</entry>
<entry>
<title>Helpful Scripts for CircuitPython & Real Time Clocks (RTCs)</title>
<issued>2020-07-16T15:12:26Z</issued>
<modified>2020-07-16T15:12:26Z</modified>
<id>https://gamma.unpythonic.net/01594912346</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01594912346"/>
<content type="text/html" mode="escaped">
&lt;img src=&quot;https://media.unpythonic.net/emergent-files/01594912346/rtcboards.jpg&quot;&gt;

&lt;p&gt;I have used two different RTCs in the Feather form factor.  One has
the &lt;a href=&quot;https://www.adafruit.com/product/2922&quot;&gt;PCF8523&lt;/a&gt;, and the other
has the &lt;a href=&quot;https://www.adafruit.com/product/3028&quot;&gt;DS3231&lt;/a&gt;.  The former has an SD card slot while the latter has higher precision including a temperature-compensated crystal oscillator.</content>
</entry>
<entry>
<title>Time to finish that languishing clock project!</title>
<issued>2012-01-05T23:12:41Z</issued>
<modified>2012-01-05T23:12:41Z</modified>
<id>https://gamma.unpythonic.net/01325805161</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01325805161"/>
<content type="text/html" mode="escaped">A leap second has been announced at the end of June 2012.</content>
</entry>
<entry>
<title>Side track: wwvb links</title>
<issued>2011-06-23T21:38:59Z</issued>
<modified>2011-06-23T21:38:59Z</modified>
<id>https://gamma.unpythonic.net/01308865139</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01308865139"/>
<content type="text/html" mode="escaped">
&lt;a href=&quot;http://timeguy.com&quot;&gt;Chris&lt;/a&gt; asks what advantage GPS has over &lt;a href=&quot;https://secure.wikimedia.org/wikipedia/en/wiki/WWVB&quot;&gt;WWVB&lt;/a&gt; for my clock
project.  I don't have a good answer for that (except that having enough
controls to select one of 4 mainland US timezones and whether to apply DST
is undesirable).  However, this did prompt me to do some googling about WWVB.
I found some interesting links about generating WWVB signals at home.</content>
</entry>
</feed>
