&ot Journeys' End

Journeys' End

We walk many paths, many roads
Till death halts our steps.
Every day a new adventure,
A new journey of self discovery.

20080708

Evolution of a circuit layout

Half way mark to a 4 channel motion controller. Version 3 of the layout seems to work well and was relatively easy to duplicate by eye. In fact I hardly used the schematic at all.

The new lead free solder (1mm) I am using is much too thick for my liking, I ended up using more solder than I normally would, and made some unintentional bridges which caused problems. That and one of the diodes were wired in reverse.

I really need to find some sub millimeter lead free solder - no one seems to stock them here in Australia :-|

Cheers,
Steve

Labels:

20080119

Programming 16F84As with piklab-prog and JDM programmer

Finally got around to using piklab-prog to program my surplus 16F84As. The command line options are a little confusing, so here is what I used:

piklab-prog -d 16F84A -t /dev/ttyS0 -p direct -h 'JDM classic' -c program led_test.hex

For some reason there is a hardware option which doesn't work for me and is not documented in the man page. piklab-prog seems to magically detect that I am using a JDM classic programmer, so all is well :-)


Cheers,
Steve

Labels: , , ,

20070510

Log clock

Got my log clock running. It is not entirely accurate, loses a second every 7hr or so. However its nature is such I doubt it will really matter.Thanks to the JAL interval library routines, it is very accurate. I originally thought the next interval routine returns after the 1 second delay I setup, only that is not the case. It returns when the internal clock ticks over to the next second. So as long as all the logic is done with in a second, and it is, each loop takes exactly 1 second.

The design is very simple. Using a 16F84A (yeah yeah, its obselete blah bah) with a 4Mhz crystal, lots of wires, and a 12 segment bar display. The button is used to advance the clock to the next interval. This method of setting the time is very crude - but then it doesn't have to be sophisticated. Software was written in JAL.

The loss of a second every ~7hr is due to the fact its basically a loop which has a delay of 1 second, and does some logic to handle display and button presses. The logic skews the overall delay per loop because each branch and such takes up cycles. There are several things I can do to improve this:

  • Pad out each branch with NOP so they all take the same time, then compensate for this in the loop delay accordingly.
  • Have a secondary circuit to output a pulse every second, so the logic and such won't skew the clock. This would also allow me to check for button presses more often.
  • Write my own interrupt routines to handle TMR0 interrupts and handle logic in the main routine.

The button is debounced in hardware implicitly, since there is a 1 second delay between each polling of button state. As the 16F84A only has 8bit registers, the intervals in seconds are not stored but rather the time in seconds between intervals is stored. This allows me to avoid multi-register arithmatics. The clock can also represent 13 states despite having only 12 LEDs - the 13th state is all LED off, which I have reserved for midnight.

I will report on how accurate it is eventually. I will check the log clock when I wake up, against real time, to see if the right interval is correctly illuminated.

Update 10/5/07 - Woke up, clock was right. Every 30minutes or so I check it and its been right so I declare it a success :-)


Cheers,
Steve

Labels:

20070509

Webcam astrophotography

After seeing what can be done with a webcam, I decided to try it. I asked my cousin for her webcam which she bought a while back - some generic Chinese product, with no identifying brands. macam reported it as Generic ZC031P Webcam.

So anyway I dis-assembled it (with permission of course), which wasn't too hard. Then I mounted the imaging unit on a piece of wood using a few screws (salvaged from dismantlement of the webcam casing) and hot glue. Then I used a film canisters which tapers towards the bottom slightly as an adapter - it fits snugly into a 1.25" eyepiece holder. Luckily its black. Some more hotglue and electrical tape later, I had a home made webcam adapted for prime focus use.

Unfortunately I did not have the presence of mind to take pictures while I was making it... so you will have to make do with these.

Naturally after I built this, the clouds moved in. I tried "spying" on some near by highrises to test it, but found my telescope didn't have enough in focus (back focus? Basically, I can't retract the focuser enough to focus). Maybe things will be better with a target at infinity - i.e. a planet. I will post an update when I get a clear sky.


Cheers,
Steve

Labels: ,

20070429

PIC-PG2C

PIC-PG2C is a simple JDM serial FLASH programmer. It runs directly off the serial port, requiring no external power source. There is some concern it will not work with low power serial ports, such as those found on laptops. I am happy to report however that it works on an IBM Thinkpad T20.


Cheers,
Steve

Labels: