Peter Todd wrote: > On Wed, Nov 14, 2007 at 11:46:23PM -0500, Rolf wrote: >> Did you see Olin's message a little bit ago. He pointed to this project >> of his: >> >> http://www.embedinc.com/pic/knli/index.htm > > That thing is really cool! I've actually got plans to make myself a nice > rugged caving headlamp with a Stenlight-like design. The mechanical > aspects of the project will likely be the most difficult actually, but > having a good switcher example is still very cool. > > FWIW I'm very impressed by how clean and well documented the whole thing > is. Definetely a standard to aspire too. A very good read! I hadn't seen it before. Some points worth repeating: - Tupperware/Rubbermaid-type containers make good watertight enclosures for one-off projects - I like 'em too (cf. ). - Just as wire coat hangers are a handy source of stiff metal, plastic ones are a handy source of robust plastic rod! - An interesting solution to the same power switch problem I was studying with this project: (also a 2xAA switcher for a portable device). Olin's solution uses less weird hardware and cleverer firmware. I think I was obsessing about having "no" current flowing while off; he's settled for "negligible" and made a much more elegant solution in the process - fewer parts, more flexibility in what's required for power-on. I like it. - Nice sleep/watchdog reset/jump back technique for low-power waiting in the WAIT_WDT macro. Typo in comment "N must not be from 1 to 255" twice I think. Thanks for pointing out the project. -- Timothy J. Weber http://timothyweber.org -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist