Ic For Fun |
Posted: 16 May 2012 08:04 PM PDT An antique timepiece for the digital age Build time: 20 weeks (over 2 years)
<update 12/11/10> A big thank you to people who continue to send me emails asking for design files or yelling at me to get a move on etc. Your enthusiasm is noted! However, I am right in the middle of my post-doctoral appointment and spare time is rare and precious – I don’t want this project to become a second job! I can, however, confirm the following features for the next version: <update 14/7/10> V2.0 is underway and will have its own page soon. The big delay at the moment is the lack of suitable modern pocket watch cases to house the new movement. The manufacturer I’d had lined up has disappeared… If you know of a source of quality, stylish 52mm pocket watch cases, feel free to drop me a line and let me know! <update 16/11/09> 1. “Can I buy it off you?” 2. “Where can I get one? Are you making a kit?” 3. “Can I get source code/design files?” 4. “Have you considered using induction charging to charge the battery?” The project The pocketwatch I selected was an Elgin hunter-style case (with opening cover), and appeared to be the most complete and in the best condition of those available. It’s movement inside was stamped “Pat. 1925″. It was also one of the largest to choose from, providing room for batteries and components inside. I resolved that no modifications or damage should be done to the pocketwatch case, or its movement. Case and Disassembly
The stem operation on this case was smooth, and a light press pops the cover open easily each time. Unfortunately, the case didn’t come with a bezel or crystal. I managed to scavenge a replacement bezel from another case, but I had to specially order a replacement plastic ‘glass’ to fit in it. Disassembly is very easy. The back outer cover opens with the aid of a small thumb tab. The inside cover opens with the careful application of a thin blade. Similarly, a thin notch allows for the front bezel to be popped free. The mechanical movement itself is held in place by three small screws behind the back cover. Another tiny set-screw holds the stem in place. When all screws are removed, the stem pulls out and the entire spring, workings and dial face assembly drops free. Clock Face and Circuit To reduce the pin count, each set of 60 LEDs is divided up into six banks of ten, selected by a mosfet. Long circular tracks run around the outside of the board, connecting one LED from each bank to a drive pin. Each hour pin is controlled invidually. Everything is controlled by a PIC 16F946 – an 8-bit micro with plenty of IO pins. The spiralling via pattern this produces is quite aesthetically pleasing.
The clock face itself includes hour marks and Roman numerals for reading the time, as well as pin number markers on the centre IC. The outer-most LED ring is red for seconds, the middle is blue for minutes and the inner-most is blue for hours – this is in line with the standard relative lengths of clock hands. Underneath the chip is stenciled a tiger eye (a subtle reference to my grandfather’s long-time association with the Freemasons). The watch is watching you! On the reverse side is room for all the power regulation, charging, programing, precision timing and IO hardware. The watch runs off a single-cell 110 mAh Lipo cell, recharged through a jack underneath the back cover. The bottom side also has pads for a Temperature Controlled Crystal Oscillator (TCXO) capable of 1 part per million timing precision, although this hasn’t been tested yet. A cell-phone vibrator is attached to the inside back cover; every second the vibrator pulses, using the cover as a sounding board to produce an audible ‘tick’. The vibrator also serves as an alarm buzzer.
User Interface and Programming The microprocessor was programmed in C using the MikroC IDE for 8-bit PIC microprocessors. Unfortunately, I only have the demo version of this software, which has a 2KB code-size limit. By far the hardest part of this project was writing my code to fit within this limitation; almost without exception, though, it made my code better, more streamlined and more elegant. I can easily say it’s made me a better coder. Most of the time, the watch will be in standby mode, with the LEDs turned off to save power. When the crown is pressed to open the case the stem switch is also depressed, bringing the watch out of standby and into display mode. The LEDs will progress each second, and when a minute or hour is incremented, a the LEDs will light through 360 degrees to advance to the next position, producing a decorative swirl. After 15 seconds of display, the LEDs will turn off and the watch will go back into standby mode. To set the time, the stem is depressed and held in for 3 seconds to enter programming mode. The second hand will then stop incrementing and be set to the 12 o’clock position. Twisting the crown will cause the minute and hour hands to increment or decrement. Pressing the button for another second will exit programming mode. The pocketwatch also has an alarm function. The alarm is set by holding depressing the stem for 1.5 seconds, whereupon the LEDs will begin to blink. Setting the alarm is handled identically to setting the time. Entering alarm mode sets the alarm on; it will stay on until programming mode is entered, or until the alarm rings. When the alarm goes off, the vibrator inside will pulse in time with flashing LEDs displaying the time.
The LEDs are very bright at night – so much so that they can be dazzling when you turn the watch on. To avoid this, an optical sensor was placed on the front dial. In display mode, the sensor reads the ambient light level and dims the lights if it’s too dark, or brightens them if it’s light. This way, the display is comfortably readable even in complete darkness or direct sunlight. Status and Diagnostics
Future Work From eng.yale.edu No related posts. |
You are subscribed to email updates from WORLD OF ELECTRO To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |