<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" >

  <title>Erik L. Arneson — Writer and Software Developer</title>
  <subtitle>Erik L. Arneson is a freelance writer and software developer with WordPress experience. He is located in Portland, Oregon.</subtitle>
  <generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator>
  <link href="https://arnesonium.com/feeds/planetary-hours.xml" rel="self" type="application/atom+xml" />
  <link href="https://arnesonium.com/" rel="alternate" type="text/html" />
  <updated>2026-06-18T15:03:10+00:00</updated>
  <id>https://arnesonium.com/feeds/planetary-hours.xml</id>
  <author>
    <name>Erik L. Arneson</name>
  </author>
      <entry>
        
        <title>Arduino Planetary Hours library</title>
        <author>
          <name>Erik L. Arneson</name>
        </author>        
        <link href="https://arnesonium.com/2017/05/arduino-planetary-hours-library/" rel="alternate" type="text/html" title="Arduino Planetary Hours library" />
        <updated>2017-05-01T18:30:35+00:00</updated>
        <id>https://arnesonium.com/2017/05/arduino-planetary-hours-library</id>
          <category term="arduino" />
        
          <category term="c" />
        
          <category term="planetary-hours" />
        
          <category term="programming" />
        <content type="html" xml:base="https://arnesonium.com/2017/05/arduino-planetary-hours-library/">&lt;p&gt;I am finally announcing my &lt;a href=&quot;https://bitbucket.org/arnesonium/planetaryhours&quot;&gt;PlanetaryHours library for the Arduino&lt;/a&gt;. This library uses the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sun_rise()&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sun_set()&lt;/code&gt; functions from the &lt;a href=&quot;http://www.nongnu.org/avr-libc/user-manual/group__avr__time.html&quot;&gt;avr-libc time.h&lt;/a&gt; library to calculate planetary hours.&lt;/p&gt;

&lt;p&gt;&lt;a class=&quot;button&quot; href=&quot;https://bitbucket.org/arnesonium/planetaryhours/get/v1.0.zip&quot;&gt;Download v1.0 Here&lt;/a&gt;
&lt;!--more--&gt;&lt;/p&gt;

&lt;p&gt;Planetary hours are an old method of figuring out which planets are “in charge” at any moment. For more information on planetary hours, check out these resources:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.renaissanceastrology.com/planetaryhoursarticle.html&quot; target=&quot;_blank&quot;&gt;http://www.renaissanceastrology.com/planetaryhoursarticle.html&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.esotericarchives.com/agrippa/agripp2c.htm#chap34&quot; target=&quot;_blank&quot;&gt;http://www.esotericarchives.com/agrippa/agripp2c.htm#chap34&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can set up a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;PlanetaryHour&lt;/code&gt; object by passing it a time zone offset in hours, a latitude, and a longitude. The following example might help.&lt;/p&gt;

&lt;div class=&quot;language-cpp highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;cp&quot;&gt;#define MYZONE -7
&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;PlanetaryHour&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;ph&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;MYZONE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;45.5&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;122.7&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Then, you can check the ruling planet of the current day and hour with an RTC or other time-keeping mechanism.&lt;/p&gt;

&lt;div class=&quot;language-cpp highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;kt&quot;&gt;time_t&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;timer&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;utc&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;unixtime&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;UNIX_OFFSET&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;kt&quot;&gt;uint8_t&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dayPlanet&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ph&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dayPlanet&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;timer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;kt&quot;&gt;uint8_t&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;hourPlanet&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ph&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hourPlanet&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;timer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The return value of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;dayPlanet()&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;hourPlanet()&lt;/code&gt; is a number from 0 to 6, corresponding to the Chaldean planetary order.&lt;/p&gt;

&lt;div class=&quot;language-cpp highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;cp&quot;&gt;#define SATURN 0
#define JUPITER 1
#define MARS 2
#define SUN 3
#define VENUS 4
#define MERCURY 5
#define MOON 6
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I’ll be posting an article on &lt;a href=&quot;http://www.arnemancy.com/&quot; target=&quot;_blank&quot;&gt;the Arnemancy blog&lt;/a&gt; outlining a project I just installed using this library and some &lt;a href=&quot;https://www.adafruit.com/category/168&quot; target=&quot;_blank&quot;&gt;NeoPixels&lt;/a&gt;. I really look forward to seeing what others end up doing with this code!&lt;/p&gt;

&lt;p&gt;&lt;a class=&quot;button&quot; href=&quot;https://bitbucket.org/arnesonium/planetaryhours/get/v1.0.zip&quot;&gt;Download v1.0 Here&lt;/a&gt;&lt;/p&gt;</content>
      </entry>
    
</feed>
