Using Cheap Chinese Calipers as encoders


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Location
    USA, CA
    Posts
    271


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    Speed isn't going to be the issue. My problem is how do I retreive the data from a 48 Bit data stream with a 16 bit word capable Microcontroller, I am guessing it can be done as at least 3 comercial enterprises use them as the basis of a DRO, my math skills and inadequate experience in programming are such that I am looking for suggestions as to how to accomplish this feat, mind you, not a code author, but some pointers. Would you store it in 3 words ? Would that involve using an array, something like:<p>

    MyData var word[24]<p>
    The PIC only handles 8 bits--your limitation of 16 is within the compiler, which you can always try another. If you want to stay with the existing one, then the array is probably the best way to go. You'll just have to work out any math commands that you want.

  2. #2
    Join Date
    Aug 2005
    Posts
    57


    Did you find this post helpful? Yes | No

    Default

    I have read the 52 bits of data out of a Mitutoyo dial indicator with a pic.The clock signal is tied to an interrupt pin and the data is read into a 52 bit array.The data can then be manipulated however necessary.The Chinese calipers while different, can probably read in a similar manner.

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Thanks arniepj,
    So if I got this right, output the clock and data pins through a couple of comparators or OPAmps, to get levels up to 5 volt levels, and hook the clock pin to an interrupt on change pin then read the data into array, sounds simple enough, I have to read up on getting the data out of an array, in a way I can use and understand it.

    Thanks
    JS
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  4. #4
    Join Date
    Aug 2005
    Posts
    57


    Did you find this post helpful? Yes | No

    Default

    I used a 16F877 with the data tied directly to portb.1 and the clock tied directly to portb.0.Enabling the weak pull up resistors was all that was needed.I believe the signal voltage levels were on par with the caliper levels.Looking at the link waveforms,I would start by capturing the pause in between the clock pulse groups as an indicator to start clocking the data.

  5. #5
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Thank You.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. Quick thoughts: DT Ints with encoders
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 7th January 2010, 01:01
  2. quad encoders
    By cpayne in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 13th March 2007, 17:49
  3. Chinese Calipers
    By anj in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 20th November 2006, 08:13

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