CNCzone.com-The Largest Machinist Community on the net!


Welcome to the CNCzone.com-The Largest Machinist Community on the net! forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Electronics > General Electronics Discussion

Notices

General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here.


Reply
 
Thread Tools Display Modes
  #1   Ban this user!
Old 01-29-2008, 10:35 PM
abasir's Avatar
abasir abasir is offline
 
Join Date: Apr 2003
Location: Malaysia
Posts: 361
abasir is on a distinguished road
Cheap MPG for CNC using optical mouse center encoder

I'm in a process of building a MPG pendant for Mach3. Not willing to pay high price for the industrial encoder, I crack open an optical mouse and found that the center wheel encoder can be easily interfaced to the parallel port to provide the quadrature signals for Mach3.

It's a 3-pin encoder (not optical) that can be used directly with just 2 10k pull up resistors. More details here http://www.9w2bsr.com/2008_01_01_archive.html
Attached Thumbnails
Click image for larger version

Name:	DSC01188.jpg‎
Views:	466
Size:	257.6 KB
ID:	52002  
__________________
Stupid questions make me smarter...
See how smart I've become at www.9w2bsr.com ;-P
Reply With Quote

  #2   Ban this user!
Old 01-30-2008, 07:27 AM
blackbeard52 blackbeard52 is offline
 
Join Date: Aug 2005
Location: knoxville,usa
Posts: 569
blackbeard52 is on a distinguished road
encoder

Very interesting. Good post and I would like to see more.

Bob
Reply With Quote

  #3   Ban this user!
Old 01-30-2008, 02:46 PM
phomann's Avatar
phomann phomann is offline
 
Join Date: Aug 2005
Location: Australia
Posts: 389
phomann is on a distinguished road
Originally Posted by abasir View Post
I'm in a process of building a MPG pendant for Mach3. Not willing to pay high price for the industrial encoder, I crack open an optical mouse and found that the center wheel encoder can be easily interfaced to the parallel port to provide the quadrature signals for Mach3.

It's a 3-pin encoder (not optical) that can be used directly with just 2 10k pull up resistors. More details here http://www.9w2bsr.com/2008_01_01_archive.html
No wanting to dampen your enthusiasm, Not all MPGs have to be expensive. Have a look at;

http://homanndesigns.com/store/index...products_id=30

Cheers,

Peter.
__________________
-------------------------------------------------
Homann Designs - http://www.homanndesigns.com
Reply With Quote

  #4   Ban this user!
Old 01-30-2008, 06:47 PM
blackbeard52 blackbeard52 is offline
 
Join Date: Aug 2005
Location: knoxville,usa
Posts: 569
blackbeard52 is on a distinguished road
encoder

Maybe I missed something..... that encoder costs $65....his would cost $5....

B
Reply With Quote

  #5   Ban this user!
Old 01-31-2008, 02:30 AM
Khalid's Avatar
Khalid Khalid is online now
 
Join Date: Apr 2006
Location: Pakistan
Age: 31
Posts: 2,132
Khalid is on a distinguished road
good work pls involve us in ur build...
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-31-2008, 04:45 AM
chich2 chich2 is offline
 
Join Date: Jun 2006
Location: Australia
Posts: 371
chich2 is on a distinguished road
Excellent!!!
Great work! I will be following this thread with great interest.

Is it dificult to use the optical pickups out a mouse? I could easily make a wheel with 100 slots in it so is there any reason a circut couldn't be made to use the optical pickups out of a mouse?

Chich
Reply With Quote

  #7   Ban this user!
Old 01-31-2008, 07:13 AM
vger's Avatar
vger vger is offline
 
Join Date: Jan 2006
Location: usa
Posts: 495
vger is on a distinguished road
MPG's

I've got an idea for an MPG. You could print a "clock disk" on transparancy with a laser printer and use a couple of opto-interupters (even from a mouse) to read it. If you need a little stiffness you could sandwitch the clock disk between 2 thin pieces of plastic.

Opto-interupters are really easy to connect. Most of them are 3 wire, +5 v, ground, and output. The output is generally open collector and will go to ground when the light path is not interupted.

You could even make your own custom pulse count encoder.

Steve
Reply With Quote

  #8   Ban this user!
Old 01-31-2008, 05:07 PM
phomann's Avatar
phomann phomann is offline
 
Join Date: Aug 2005
Location: Australia
Posts: 389
phomann is on a distinguished road
Originally Posted by blackbeard52 View Post
Maybe I missed something..... that encoder costs $65....his would cost $5....

B
Ok, fair point. To some, $65.99 is expensive, to others it is cheap.

If you want to a cheap encoder have a look at these. less that $1.50, they are designed to be mounted into a PCB. They have a shaft to mount a knob on and have a built push-switch built in.

http://www.mouser.com/catalog/632/1394.pdf

Cheers,


peter.
__________________
-------------------------------------------------
Homann Designs - http://www.homanndesigns.com
Reply With Quote

  #9   Ban this user!
Old 01-31-2008, 08:21 PM
epineh epineh is offline
 
Join Date: May 2006
Location: Australia
Age: 38
Posts: 2,024
epineh is on a distinguished road
Here is a link to a handy little program called Encoder Designer, you enter what type of encoder you want to make (incremental or absolute) , the diameter and the CPR you want and it prints the wheel for you, may be of use with the mouse sensor's, I was going to try this, even printed out the transparancy wheel's but that is as far as I got, too many other projects need finishing first.

http://users.adelphia.net/~skbosko/Robot_top.htm

Russell.
Reply With Quote

  #10   Ban this user!
Old 01-31-2008, 09:00 PM
dertsap's Avatar
dertsap dertsap is offline
 
Join Date: Oct 2005
Location: canada
Posts: 3,272
dertsap is on a distinguished road
Originally Posted by abasir View Post
I'm in a process of building a MPG pendant for Mach3. Not willing to pay high price for the industrial encoder, I crack open an optical mouse and found that the center wheel encoder can be easily interfaced to the parallel port to provide the quadrature signals for Mach3.

It's a 3-pin encoder (not optical) that can be used directly with just 2 10k pull up resistors. More details here http://www.9w2bsr.com/2008_01_01_archive.html
ive seen lots on the net of guys using the same idea for spinners for homemade arcade game controller
keep us posted
__________________
A poet knows no boundary yet he is bound to the boundaries of ones own mind !! http://cnctoybox.org
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 02-03-2008, 07:03 PM
abasir's Avatar
abasir abasir is offline
 
Join Date: Apr 2003
Location: Malaysia
Posts: 361
abasir is on a distinguished road
Wow... so many interest huh... My apology for this delayed response. Was on the beach last weekend so didn't managed to get anything done...

First, some comments...

1. Peter: I'm aware of the MPG at your site. Yes, the price is reasonable and within my reach. I will probably buy one later when I'm in need of real MPG. For now, I running a Sherline, I can live with DIY MPG for the moment. I enjoy tinkering with stuff for the learning process and knowledge, even though sometime I ended up buying the 'off-the-shelf' solution. :-)

2. Using opto interrupter from mouse: Tried that before. Real PITA trying to align it properly once you take it out from the PCB. Doing a DIY disc, regular opto interrupter, etc normally result in a larger unit than I want... ;-)

3. The unit from Mouser is nice. Farnell Malaysia is selling it for about USD8... :-(

My overall goal is to have a small unit so I could make a pendant that can be operated with one hand... Need the other hand for other thing... :-)
__________________
Stupid questions make me smarter...
See how smart I've become at www.9w2bsr.com ;-P

Last edited by abasir; 02-03-2008 at 07:52 PM.
Reply With Quote

  #12   Ban this user!
Old 02-03-2008, 07:15 PM
abasir's Avatar
abasir abasir is offline
 
Join Date: Apr 2003
Location: Malaysia
Posts: 361
abasir is on a distinguished road
Here's the outcome... a pendant that can be operated single handed...
The 4 buttons are used as follows:
1. Axis toggle (X, Y, Z)
2. MPG mode toggle(velocity, step/velocity, single, multiple)
3. Step size toggle (1.0, 0.1, 0.01, 0.001, etc)
4. Yet to be assigned...

Overall, the pendant works as expected. The MPG isn't as smooth as industrial once but then it's only few cents... Also, the wheel is acrylic... almost no freewheeling... a metal wheel will be better...

More photos at my blog (www.9w2bsr.com)... easier to weave comments in between pictures...
Attached Thumbnails
Click image for larger version

Name:	DSC01192.jpg‎
Views:	478
Size:	206.7 KB
ID:	52419   Click image for larger version

Name:	DSC01226.jpg‎
Views:	492
Size:	195.0 KB
ID:	52420   Click image for larger version

Name:	DSC01269.jpg‎
Views:	587
Size:	236.3 KB
ID:	52421  
__________________
Stupid questions make me smarter...
See how smart I've become at www.9w2bsr.com ;-P
Reply With Quote

Reply

Bookmarks




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cheap optical encoders invertedflight General Electronics Discussion 20 02-04-2008 12:45 PM
Turn an optical mouse in an XY encoder NitroXide Linear and Rotary Motion 12 06-10-2007 04:02 PM
Optical encoder index - what is it good for? medved General Electronics Discussion 8 10-03-2005 05:26 PM
easy tacho or encoder: cny70 reflective optical sensor gcamlibel General Electronics Discussion 0 10-12-2004 02:38 PM
Optical Encoder Differential Line Driver azsigns General Electronics Discussion 1 03-04-2004 03:41 AM




All times are GMT -5. The time now is 02:41 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.