Archive for the ‘AVR’ Category

Postscript for Encoder Wheels

Thursday, May 17th, 2007

From ranchbots

%! Postscript utility for printing an encoder wheel
%
/inch {72 mul} def % #points/inch (don't change me)
/size 0.5 inch def % radius of encoder wheel
/segments 16 def % number of segments (black and white)
/angle 360 segments div def
/wedge
{ /radius exch def
/angle_s exch def
/angle_e exch def
newpath 0 0 moveto
0 0 radius angle_s angle_e arc
closepath
} def

gsave
1.0 inch 1.0 inch translate
0 1 segments {
360 segments div rotate
angle 0 size wedge
2 mod 0 eq {1} {0} ifelse
setgray fill
} for
grestore

showpage

New Project: usbServo

Wednesday, May 9th, 2007

Flush with the success of my scantool project I have started the usbServo project. There are already plenty of projects out there like this, as well as commercial units, but what is the fun in that? 🙂

USB for AVR ATTiny

Friday, April 20th, 2007

I ran across this page that details how to make an ATTiny USB device. Pretty cool!

USB Stepper Motor Controller

Tuesday, January 9th, 2007

This weekend I started work on a prototype for a USB stepper motor controller. This is the first step towards implementing some aircraft instruments for my flight sim panel project. I think I’ll try an airspeed indicator first, that is pretty straightforward.

There is a wealth of information at Mike’s Flight Deck and in his book Building Simulated Aircraft Instrumentation. (It was on my list, will have to talk with Santa)

Links: