USB Optical mouse as motor encoder


Results 1 to 7 of 7

Threaded View

  1. #1
    Join Date
    May 2007
    Posts
    65

    Wink USB Optical mouse as motor encoder

    Last friday an idea came to my mind, I just wanted to share an original idea [maybe not original, who knows maybe someone has already done it.. who knows..]

    It is to use an ordinary USB Optical mouse as an optical encoder. Some obvious benefits are:
    -it tracks direction
    -it tracks speed
    -it's high resolution
    -it's dumb cheap and hyper easy to get
    -it's all ready to use/ circuit made/ nice components
    -no mechanical or optical high precition stuff to calibrate.
    -no need of hard to find absolute or progressive rotary discs, nor printing them.

    NOTES:
    -must not rubbing (for obvious reasons)
    -It has to be really near to rotary surface, AT MOST 1 milimeter.
    -surface must be opaque, uniform and clean.
    -ideally be in dark environtment (inside a box or whatever)
    -for more resolution, just move away from center.
    -for less resolution, come closer to center.

    I began my mouse lab experiments connecting it to my PC with some C++ and API software stuff to intercept mouse data, and I got incredible presition. A limitation is high speed sensing.

    Up to now, I've achieved some 1000 RPM's without problems, comparing to my standard quadrature encoder in a PIC16F628A. over 1000 there are differences...

    I don't know wich is the faulty, if my PC optical mouse or my 16F628 optical encoder [show data on LCD]

    My next experiments will be:
    -test with other motors I have with included quad.encoder at different speeds

    NOW I want to do the NO PC versión. Here is PicBasic Pro in action. I'm actually goring my mouse guts and trying to experiment with data and it's speed limits with a PIC18F4550 and trying to conect it. I just begun PIC version some hours ago but can't read data from mouse to PIC.

    Any suggestion?
    I'll share my advances as soon as they happen.

    (I'm addicted to it... USB has some hypnotizing powers that can't almost let me sleep, been all weekend in it, even I've dreamed with USB TX/RX, female connectors, well, whatever. In fact, here in my country it's now 5:43am and I haven't slept.)

    [sorry my english]
    regards,
    Rodrigo
    Santiago - CHILE
    Last edited by RodSTAR; - 31st October 2007 at 08:56.

Similar Threads

  1. USB CDC Communications for Dummies!
    By Squibcakes in forum USB
    Replies: 104
    Last Post: - 15th January 2014, 13:43
  2. Simple USB Comms Problem
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 6th January 2010, 20:17
  3. Using the optical sensor from a ball mouse
    By lsteele in forum General
    Replies: 5
    Last Post: - 5th September 2007, 16:45
  4. USB PIC without USB Connection
    By Tissy in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 26th December 2005, 17:39
  5. USB on Macintosh (mouse)
    By ronf in forum USB
    Replies: 2
    Last Post: - 19th October 2005, 14:29

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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