View Single Post
Old 03-09-2005, 02:39 AM   #12
rubicon
Variable Bitrate
rubicon's CarPC Specs
 
rubicon's Avatar
 
Join Date: Feb 2005
Location: $240 worth of puddin'
Vehicle: 2000 Jeep Wrangler Sahara
Posts: 297
My Photos: ()
Home-grown rotary encoder circuit

Ok, so here's some info, for those of you who
  1. don't want to purchase the Phidgets encoder
  2. have a bug up your butt about doing this yourself (like me!)

Parts as listed in previous post; see attachments for pic of (probable) circuit and (rough) software to get useful info out of the parallel port.

The software is still academic - I haven't gotten my encoder, yet. But it reads the (currently bogus) data from the parport just fine, and the encoder connection should be a snap. Oh, and it polls the parallel port - not optimum, but seems to be not such the resource hog that I thought it'd be.

Note: Please don't ask me how to get this stuff to run on your machine - if I can figure it out, so can everybody else.

Note #2: This completed whatchamathingy will be included in a post about my car pc install when said install is completed. No idea when that'll be; hopefully soon!

Note #3: the encoder I'll be using is kind of pricey (~$20) for what you get; I'm sure that a more economical version would work just fine, with appropriate circuit/software modifications.
Attached Images
 
Attached Files
File Type: zip poll_parport_gh_encoder.zip (1.8 KB, 134 views)

Last edited by rubicon; 03-09-2005 at 11:12 AM. Reason: *more* silly changes to C source
rubicon is offline   Reply With Quote