| Author |
Message |
Antimon

Joined: Jan 18, 2005 Posts: 3371 Location: Sweden
Audio files: 211
G2 patch files: 92
|
|
|
Back to top
|
|
 |
DrJustice

Joined: Sep 13, 2004 Posts: 2005 Location: Morokulien
Audio files: 3
|
Posted: Tue Aug 30, 2011 4:22 am Post subject:
|
 |
|
I'm not sure what you mean by "one dimensional optical reader", as opposed to the usual quadrature encoding/decoding. You do mention mice and trackballs, and one method is to just grab an old one and use the slotted wheels and detectors. You could even use the mouse electronics as it is and just read the PS2 or USB serial data. Those optical detectors can be also bought at most well stocked component suppliers too (Mouser, Digikey, maybe ELFA...)
Complete quadrature encoder/decoder assemblies of various types can be bought - they're used all over the place in various industrial applications. I once had somewhat of an overview of this, but my references are in an old stowed away laptop. I'm sure you'll be able to google your way to the info.
Here's a good reference on quadrature decoding: fpga4fun, Quadrature Decoder.
DJ
-- |
|
|
Back to top
|
|
 |
Antimon

Joined: Jan 18, 2005 Posts: 3371 Location: Sweden
Audio files: 211
G2 patch files: 92
|
Posted: Tue Aug 30, 2011 5:15 am Post subject:
|
 |
|
Now I know the term "quadrature". Is that term also used for e.g. mice without moving parts, where you just see a red light underneath? Because that's the kind I'm interested in...
I mentioned one dimension as opposed to the two dimensions that are the domain of e.g. mice. A wheel will only spin along one axis.
Thanks for the info and link! _________________ Antimon's Window
@soundcloud @Flattr @myspace A blog home - you can't explain music |
|
|
Back to top
|
|
 |
DrJustice

Joined: Sep 13, 2004 Posts: 2005 Location: Morokulien
Audio files: 3
|
Posted: Tue Aug 30, 2011 5:36 am Post subject:
|
 |
|
Ah, I got you - the two dimensions of the mouse movement...
Optical mice use an image sensor to take successive images of the surface, then a DSP compares the images and determines the direction and distance of the movement. The purpose of the LED is just to illuminate the surface.
As it happens, SparkFun (very cool shop fro DIY gadgetry) sell an optical mouse sensor. It does all the hard work and has a serial port for readout of the movement data. Perhaps a usable solution for your project?
DJ
Edit: typo
-- Last edited by DrJustice on Tue Aug 30, 2011 7:31 am; edited 1 time in total |
|
|
Back to top
|
|
 |
Antimon

Joined: Jan 18, 2005 Posts: 3371 Location: Sweden
Audio files: 211
G2 patch files: 92
|
|
|
Back to top
|
|
 |
DrJustice

Joined: Sep 13, 2004 Posts: 2005 Location: Morokulien
Audio files: 3
|
Posted: Tue Aug 30, 2011 7:38 am Post subject:
|
 |
|
Right, I remember that one Should be very doable. A few rollerblade wheels, or something, a handfull of those optical mouse sensors, a microcontroller - and Bob's your uncle.
DJ
-- |
|
|
Back to top
|
|
 |
Antimon

Joined: Jan 18, 2005 Posts: 3371 Location: Sweden
Audio files: 211
G2 patch files: 92
|
|
|
Back to top
|
|
 |
BobTheDog

Joined: Feb 28, 2005 Posts: 3767 Location: England
Audio files: 32
G2 patch files: 15
|
Posted: Sat Sep 03, 2011 12:34 pm Post subject:
|
 |
|
| Why not just use a load of smooth endless encoders, mount the wheels on the encoder shafts? |
|
|
Back to top
|
|
 |
Antimon

Joined: Jan 18, 2005 Posts: 3371 Location: Sweden
Audio files: 211
G2 patch files: 92
|
Posted: Sat Sep 03, 2011 12:47 pm Post subject:
|
 |
|
I wonder how smoothly you can get optical encoder shafts to turn. I would like to be able to set the wheel in motion so it will keep spinning for a while or until I stop it with my hands.
Do you know some particular encoder make that's smoother than others Andy? _________________ Antimon's Window
@soundcloud @Flattr @myspace A blog home - you can't explain music |
|
|
Back to top
|
|
 |
DrJustice

Joined: Sep 13, 2004 Posts: 2005 Location: Morokulien
Audio files: 3
|
Posted: Sat Sep 03, 2011 1:02 pm Post subject:
|
 |
|
One of the attractive features of using an optical mouse sensor is that you will get a controller with a very high resolution. The affordable consumer type rotary encoders doesn't have a lot of resolution, typically something like 24 or 32 steps per revolution. You can get very high resolution rotary encoders, but at a price - e.g. like this one with 80000 cycles per revolution.
DJ
-- |
|
|
Back to top
|
|
 |
|