electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
Live streaming at radio.electro-music.com

  host / artist show at your time
<on air> bingsatellites Mostly Ambient
Please visit the chat
 Forum index » DIY Hardware and Software » Developers' Corner
Optical pulse encoder thingies
Post new topic   Reply to topic Moderators: DrJustice
Page 1 of 1 [10 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Antimon



Joined: Jan 18, 2005
Posts: 3371
Location: Sweden
Audio files: 211
G2 patch files: 92

PostPosted: Tue Aug 30, 2011 4:00 am    Post subject: Optical pulse encoder thingies Reply with quote  Mark this post and the followings unread

Say I would like to make my own endlessly spinning mod wheel - like a classic mod wheel on a synth keyboard only without stops at max and min within an interval.

I don't have a clue how to make stuff, but if I concentrate on getting reading the value from the wheel - my idea is to have a one dimensional optical reader similar to the two dimensional ones you find in optical mice or trackballs. So basically whatever light emitter and detector and logic is needed to detect movement and transform it into pulse data that I can decode and have increment or decrement a single variable.

Is such a thing available (detector+light+logic -> pulse thingie) for purchase somewhere?

Once I have that I figure I could start thinking about how to make a wheel and spinning axis out of scrap or something...

Attaching an image that might clarify what I mean.


wheel thingie.jpg
 Description:
 Filesize:  11.91 KB
 Viewed:  2322 Time(s)

wheel thingie.jpg



_________________
Antimon's Window
@soundcloud @Flattr @myspace A blog home - you can't explain music
Back to top
View user's profile Send private message Visit poster's website
DrJustice



Joined: Sep 13, 2004
Posts: 2005
Location: Morokulien
Audio files: 3

PostPosted: Tue Aug 30, 2011 4:22 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
Antimon



Joined: Jan 18, 2005
Posts: 3371
Location: Sweden
Audio files: 211
G2 patch files: 92

PostPosted: Tue Aug 30, 2011 5:15 am    Post subject: Reply with quote  Mark this post and the followings unread

Now I know the term "quadrature". Smile 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
View user's profile Send private message Visit poster's website
DrJustice



Joined: Sep 13, 2004
Posts: 2005
Location: Morokulien
Audio files: 3

PostPosted: Tue Aug 30, 2011 5:36 am    Post subject: Reply with quote  Mark this post and the followings unread

Ah, I got you - the two dimensions of the mouse movement... Idea

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
View user's profile Send private message Visit poster's website
Antimon



Joined: Jan 18, 2005
Posts: 3371
Location: Sweden
Audio files: 211
G2 patch files: 92

PostPosted: Tue Aug 30, 2011 6:14 am    Post subject: Reply with quote  Mark this post and the followings unread

That SparkFun thing looks very interesting, thanks!

Maybe I should clarify that it's all about this project that I daydream about once in a while:

http://electro-music.com/forum/post-296127.html#296127

Posted Image, might have been reduced in size. Click Image to view fullscreen.

_________________
Antimon's Window
@soundcloud @Flattr @myspace A blog home - you can't explain music
Back to top
View user's profile Send private message Visit poster's website
DrJustice



Joined: Sep 13, 2004
Posts: 2005
Location: Morokulien
Audio files: 3

PostPosted: Tue Aug 30, 2011 7:38 am    Post subject: Reply with quote  Mark this post and the followings unread

Right, I remember that one thumleft 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
View user's profile Send private message Visit poster's website
Antimon



Joined: Jan 18, 2005
Posts: 3371
Location: Sweden
Audio files: 211
G2 patch files: 92

PostPosted: Tue Aug 30, 2011 7:42 am    Post subject: Reply with quote  Mark this post and the followings unread

Hmm... I might just try to get one of those sensors, just to see how it works.

The dream stays alive!

_________________
Antimon's Window
@soundcloud @Flattr @myspace A blog home - you can't explain music
Back to top
View user's profile Send private message Visit poster's website
BobTheDog



Joined: Feb 28, 2005
Posts: 3767
Location: England
Audio files: 32
G2 patch files: 15

PostPosted: Sat Sep 03, 2011 12:34 pm    Post subject: Reply with quote  Mark this post and the followings unread

Why not just use a load of smooth endless encoders, mount the wheels on the encoder shafts?
Back to top
View user's profile Send private message
Antimon



Joined: Jan 18, 2005
Posts: 3371
Location: Sweden
Audio files: 211
G2 patch files: 92

PostPosted: Sat Sep 03, 2011 12:47 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
DrJustice



Joined: Sep 13, 2004
Posts: 2005
Location: Morokulien
Audio files: 3

PostPosted: Sat Sep 03, 2011 1:02 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: DrJustice
Page 1 of 1 [10 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » Developers' Corner
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Niio2

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use