Cheap MPG for CNC using optical mouse center encoder


Page 1 of 3 123 LastLast
Results 1 to 20 of 48

Thread: Cheap MPG for CNC using optical mouse center encoder

  1. #1
    Registered abasir's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    361
    Downloads
    0
    Uploads
    0

    Default 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

    Similar Threads:
    Attached Thumbnails Attached Thumbnails Cheap MPG for CNC using optical mouse center encoder-dsc01188-jpg  
    Stupid questions make me smarter...
    See how smart I've become at www.9w2bsr.com ;-P


  2. #2
    Registered
    Join Date
    Aug 2005
    Location
    knoxville,usa
    Posts
    578
    Downloads
    0
    Uploads
    0

    Default encoder

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

    Bob



  3. #3
    Member phomann's Avatar
    Join Date
    Aug 2005
    Location
    Australia
    Posts
    1091
    Downloads
    0
    Uploads
    0

    Default

    Quote 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


  4. #4
    Registered
    Join Date
    Aug 2005
    Location
    knoxville,usa
    Posts
    578
    Downloads
    0
    Uploads
    0

    Default encoder

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

    B



  5. #5
    Member Khalid's Avatar
    Join Date
    Apr 2006
    Location
    Pakistan
    Posts
    3498
    Downloads
    0
    Uploads
    0

    Default

    good work pls involve us in ur build...



  6. #6
    Member
    Join Date
    Jun 2006
    Location
    Australia
    Posts
    475
    Downloads
    0
    Uploads
    0

    Default

    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



  7. #7
    Member vger's Avatar
    Join Date
    Jan 2006
    Location
    Mexico
    Posts
    738
    Downloads
    0
    Uploads
    0

    Default 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



  8. #8
    Member phomann's Avatar
    Join Date
    Aug 2005
    Location
    Australia
    Posts
    1091
    Downloads
    0
    Uploads
    0

    Default

    Quote 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


  9. #9
    Member
    Join Date
    May 2006
    Location
    Australia
    Posts
    2420
    Downloads
    0
    Uploads
    0

    Default

    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.



  10. #10
    Member dertsap's Avatar
    Join Date
    Oct 2005
    Location
    canada
    Posts
    4230
    Downloads
    1
    Uploads
    0

    Default

    Quote 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 !! ........


  11. #11
    Registered abasir's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    361
    Downloads
    0
    Uploads
    0

    Default

    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... :-)

    Last edited by abasir; 02-03-2008 at 08:52 PM.
    Stupid questions make me smarter...
    See how smart I've become at www.9w2bsr.com ;-P


  12. #12
    Registered abasir's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    361
    Downloads
    0
    Uploads
    0

    Default

    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 Attached Thumbnails Cheap MPG for CNC using optical mouse center encoder-dsc01192-jpg   Cheap MPG for CNC using optical mouse center encoder-dsc01226-jpg   Cheap MPG for CNC using optical mouse center encoder-dsc01269-jpg  
    Stupid questions make me smarter...
    See how smart I've become at www.9w2bsr.com ;-P


  13. #13
    Gold Member Mr.Chips's Avatar
    Join Date
    Sep 2003
    Location
    Gilbert Az
    Posts
    1469
    Downloads
    0
    Uploads
    0

    Default

    Nice job Abasir, very clean looking.

    Could you share a wiring diagram for thoes of us who are just sitting open mouthed and slack jawed.

    Thanks



  14. #14
    Registered abasir's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    361
    Downloads
    0
    Uploads
    0

    Default

    Mr Chips,

    Here the wiring diagram... hope it's correct... I didn't use it to wire... drawn from memory :rainfro:

    I connected the pendant to the 2nd parallel port where Mach3 allow pin 2-9 as input... you may have to have to change it for your specific setup...

    The red wire is the +5V from USB port and the purple wire is the ground...
    The encoder is as view from top as originally oriented on the mouse (center wheel is on the right)...

    Attached Thumbnails Attached Thumbnails Cheap MPG for CNC using optical mouse center encoder-pendant-jpg  
    Last edited by abasir; 02-04-2008 at 12:04 AM.
    Stupid questions make me smarter...
    See how smart I've become at www.9w2bsr.com ;-P


  15. #15
    Gold Member Mr.Chips's Avatar
    Join Date
    Sep 2003
    Location
    Gilbert Az
    Posts
    1469
    Downloads
    0
    Uploads
    0

    Default

    Thanks Abasir. Now to lay my on a good mouse.



  16. #16
    Registered
    Join Date
    Aug 2007
    Location
    Malaysia
    Posts
    45
    Downloads
    0
    Uploads
    0

    Default

    abasir,

    dude, because of you, lot's of mouse get slaughtered by people in cnczone...LOL!!!

    Good job bro! Yesterday night, I caught one mouse and rip the guts out. It can be used but I did not found a time to proceed. I was busy making the grid table for my machine.

    Next step is to go find the small clamp and tap holder. Broke mine while tapping some of the grid holes.

    http://9w2dtr.blogspot.com/


  17. #17
    Registered
    Join Date
    Aug 2005
    Location
    knoxville,usa
    Posts
    578
    Downloads
    0
    Uploads
    0

    Default Pendant

    Very good... thread!

    Bob



  18. #18
    Registered abasir's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    361
    Downloads
    0
    Uploads
    0

    Default

    Hi dex918,

    Please recycle ... take the encoder only, pass the rest to the cat :rainfro:

    I still want to make another pendant using PIC microcontroller with just switches and potentiometer... no encoder required... I believe it will allow better positioning control than regular encoder based pendant... still thinking what features to include...
    Will update later when it's more crystallized...

    Cheers,

    Quote Originally Posted by dex918 View Post
    abasir,

    dude, because of you, lot's of mouse get slaughtered by people in cnczone...LOL!!!

    Good job bro! Yesterday night, I caught one mouse and rip the guts out. It can be used but I did not found a time to proceed. I was busy making the grid table for my machine.

    Next step is to go find the small clamp and tap holder. Broke mine while tapping some of the grid holes.


    Stupid questions make me smarter...
    See how smart I've become at www.9w2bsr.com ;-P


  19. #19
    Gold Member Mr.Chips's Avatar
    Join Date
    Sep 2003
    Location
    Gilbert Az
    Posts
    1469
    Downloads
    0
    Uploads
    0

    Smile

    Quote Originally Posted by abasir View Post
    Hi dex918,

    Please recycle ... take the encoder only, pass the rest to the cat :rainfro:

    I still want to make another pendant using PIC microcontroller with just switches and potentiometer... no encoder required... I believe it will allow better positioning control than regular encoder based pendant... still thinking what features to include...
    Will update later when it's more crystallized...

    Cheers,
    Keep us in the loop when that latest idea crystallizes. Looking forward to it.



  20. #20
    Member Khalid's Avatar
    Join Date
    Apr 2006
    Location
    Pakistan
    Posts
    3498
    Downloads
    0
    Uploads
    0

    Default

    If somebody post the built with lot of pictures..i hope this will make further clear to all of us
    by the way great thread...



Page 1 of 3 123 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Cheap MPG for CNC using optical mouse center encoder

Cheap MPG for CNC using optical mouse center encoder