Here are a few of the hardware projects I've been working on in my spare time:
3 June 2006, 15:25 UTC1MHz+ Quadrature Divider for attiny13
Like the 400kHz triple divider, this program uses a state table generated by "mkstate.py", and is GPL software.
For real-world use, external pull-ups should probably be added to the board's input side, according to the directions of the encoder manufacturer.
2 June 2006, 18:02 UTC400kHz Triple quadrature divider for atmega8 and quadrature state table generator
I promised a single, 800kHz quadrature divider for the attiny13.
Well, I haven't done that yet (I don't have any attiny13s to test on anyway),
but I have something else instead. Update, 2007/01/04: Want true high-resolution PWM
and multi-MHz quadrature counting with emc2, for under $100? Try this!
31 May 2006, 16:57 UTCCreating a Quadrature Divider: What Won't Work
Because emc2's encoder module poops out somewhere around 20 microsecond polling intervals, an external divider is the only way to get accurate feedback from a fast servo motor with a high-resolution encoder. Division by 16 lets the PC see a 25kHz quadrature signal instead of a 400kHz one. For Chris's lathe retrofit, the target speed is actually around 125kHz (1250 mm/min, 1mm/rev leadscrew, 3:1 pulley, 500 line/rev encoder), but to keep it from being too easy, he's going to do 3 such decoders on a single 16MHz atmega.
Many people seem to hit on the idea of using an up/down counter to process a quadrature input. Chris and I managed to convince a couple of bright guys on the #emc channel that this would work to create a quadrature divider circuit. Well, it doesn't.
22 May 2006, 13:13 UTCTwo-axis servo schematic and board
14 March 2006, 14:50 UTCParallel-port Two-axis PWM servo controller for Etch CNC
7 March 2006, 3:33 UTCET-ARM Stamp
I recently got an ET-ARM Stamp (a very wide
DIP-format board with an ARM microcontroller on board). I haven't done
anything exciting with it yet, but I will as soon as I can think of something!
Some notes about the thing:
17 December 2005, 15:53 UTCSOIC-8 to DIP adapter board
The board very cleanly milled. Two areas needing just a bit of additional cleanup are visible at the bottom, and that was solved with nothing more than the tip of the fingernail. To give a sense of scale, the board is about .4x.75 inches overall (10x19mm), with the holes being .1" (2.54mm) apart.
I took the photo with my new macro lens. I used a combination of back-lighting and the camera's built-in flash. The photo is hand-held with an exposure time of 1/125s (ISO 100, f/8.0), and postprocessed with gimp's perspective tool.
Files currently attached to this page:
| soic8-to-dip.brd | 6.9kB |
15 October 2005, 19:11 UTC4-axis half-stepping translator in AVR
Chris started with a MAXNC 10 open-loop machine. The included driver
boxes (which we came to understand were complete crap) use one pin per winding.
This requires two parallel ports for 4 axes. So, a year or so ago, before he
switched to L297/8-based boards,
I helped Chris design an avr-based translator
from step+direction pulses to the individual winding activation signals. Today
I'm posting the program, which I compiled with avr-gcc. In the future I might
post the board, which was a double sided design created in eagle.
26 May 2005, 0:36 UTCXY display update
New CRT, new board, same software...
3 April 2005, 20:19 UTCRegulated LED flashlight -- update
It was a bust. The button cell I selected just can't supply the required current. When I hooked up a pair of AA batteries, it worked well.
Later, when I tried to substitute a 1F capacitor (thinking "tiny *rechargable* regulated LED flashlight) I screwed up and either damaged the tiny SMD button or bridged some pads under it, because now it is stuck "on". Oh, and it doesn't run long from the capacitor anyway.
I still like the idea, but I need a different power source. Oh well.
29 March 2005, 23:57 UTCTI serial-interface DAC
25 March 2005, 15:23 UTCRegulated LED flashlight
19 March 2005, 17:55 UTCAnother constant-current circuit
Stippler: Glowing displays from digital images
Etch CNC: Computer-controlled etch-a-sketch





