
GenPIC First Code Release
I have had hardware for a while now, it is about time I release some firmware that actually runs it.

The first GenPIC code revision is a test and demonstration release. It contains support for one serial port, an LCD character display, user input including the encoder and pushbuttons, the indicator LED’s, timer generation, analog input including onboard temperature readout.
Also included is a serial command interpreter implementing a serial interface usable with any serial terminal. There is also a user interface system with a state setup that provides multiple input screens. This should handle a wide array of basic control capabilities, either using the serial port or through using the LCD screen and the encoder.
The code allows you to exercise many of the basic functions of the hardware and provide a framework on which a real application can be built.
It works, it runs, it looks fairly good. Now time to make something useful with it…
| First code release 11Feb2017 |
Code Rev0.1 |
There will be additional code releases as this project continues, as always check the GenPIC main post for the latest!
Venus Becomes a Crescent
Even when Venus is high in the sky and well placed for observation I will seldom take the effort of turning a telescope towards the planet. Why? Because Venus is pretty boring to look at. Perpetually cloud covered it has all the detail of a cue ball. It is a white disk with nothing of note to be seen. Yeah, pretty boring. Now turn the telescope to Jupiter.

This begins as the planet passes maximum eastern elongation, about two months before inferior conjunction. At this point the planet is seen from the side with respect to the sunlight, the planet will be about half illuminated. In the weeks after maximum elongation the planet will appear ever more crescent.


It is possible to enjoy this sight in the daytime, while the planet is high in the sky, the seeing can be better and the view sharper. Of course this also occurs when the planet is near the Sun, thus extreme caution should be practiced at the telescope to avoid any direct sunlight and possible eye damage.

While the the evidence challenged prevailing ideas of the time, some astronomers attempted to explain the phases of Venus by any other means to preserve their Earth centered universe, which led to rather tortured models of planetary motion. But it was clear to most that Galileo was right, the simple and elegant answer was that the Sun lay at the center. The orbits of Mercury and Venus, the phases, along with other observations like the moons of Jupiter, were hard evidence that few could ignore.
In 2017, eastern elongation occurred on January 12th. By now Venus has begun to show a substantial crescent, about 30% illuminated if you look today, Feb 12th. Over the next few weeks as the planet sinks into the sunset, the crescent aspect will thin dramatically.
By the end of February the planet will be only 17% illuminated, another week after that it becomes only 11%, by which time the planet will be difficult to spot in the sunset. Inferior conjunction will occur on March 25th. A couple weeks later and it will be possible to spot the planet in the dawn and observe the now thickening crescent.
Venus Events for 2017 |
||||
|---|---|---|---|---|
| Date UT | Separation | Mag | ||
| Maximum Elongation | Jan 12 | 47.1°E | -4.4 | |
| Inferior Conjunction | Mar 25 | |||
| Maximum Elongation | Jun 3 | 45.9°W | -4.3 | |
| Source: NASA Sky Calendar | ||||
Pakoda
To Play in the Snow
There are days when it seems like the entire island population comes to Mauna Kea. This is certainly the case on a snow day, the first day the road is open after a fresh snowfall will see a crowd of folks ascending to the summit to play in the snow.

One local tradition is the hauling of snow from the summit to the beach. On some days dozens of pickup trucks can be found on the summit, or filled with snow making their way down the mountain road. The snow will be the basis of parties and games on the beach or in green tropical lawns. Online you can find photos of snowmen under palm trees or snowball fights and smiling keiki on Hilo yards.
Full Moon

With this full Moon a penumbral lunar eclipse will also occur, visible across Europe and Africa, and partially visible from North America. None of this eclipse will be visible from the mid-Pacific including Hawaiʻi. For the islands the next good lunar eclipse will occur Jan 31, 2018.
TMT Opponent’s Alternative Facts
A number of other commentators are noting the use of alternative facts by telescope opponents. While I have commented a few times here on DV about the issue, it is heartening to note that I am not alone in this.

Many of the witnesses have testified on cultural and religious issues, no problems here, these are personal matters where there is no objective truth. But over and over we have seen witnesses make very specific physical and scientific claims that are simply wrong. It will be interesting to see how these inaccuracies are addressed in the findings of the hearing officer.
No, Mrs. Townsend, there are no glaciers on Mauna Kea. There used to be, about ten thousand years ago, but they are gone now.
ATM Gallery
Hammered
Taming a Rotary Encoder
The rotary encoder is a popular input device for many microcontroller devices. A knob that can be used to increase or decrease a setting with a nice tactile click for each increment. You can even get an integral pushbutton, just rotate for the setting then press the same knob to enter. With some clever programming you can create a one device user interface using only the encoder.

I have integrated a rotary encoder in the GenPIC utility board. With the combination of an LCD display and the rotary encoder you have all the ingredients for a functional user interface arranged neatly for a panel mount unit.
In the past I have simply set an interrupt to fire on the edge of one channel, then sampled the opposite channel to detect the direction. With the addition of a small delay to debounce the result. This worked well in previous devices, but this time I encountered trouble, the direction sampling was erratic, the value going up when it should have gone down and vice-versa.
Breaking out my logic analyser I found out why, this particular encoder proved to be somewhat noisier than I had seen in the past, with notable periods of bouncing signals.











































