Quick thoughts: DT Ints with encoders


Results 1 to 20 of 20

Threaded View

  1. #19
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,627


    Did you find this post helpful? Yes | No

    Default

    Hi Chris,
    Let's take the "wrist" joint for example, or any joint for that matter, it doesn't make any difference. It and the stylus is pointing straight down and the length from the pivot point to the tip is 100mm, you press zero at this point, the counter is 0.

    Now you rotate that single joint 20° (1200 counts), the tip has moved 34.2mm "away" and 6.03mm "up", you collect that point. Now move it another 20°, this time the same amount of rotation in the joint (20°) moved the tip 30.08mm "away" and 17.36mm up.

    Now concider that you from the beginning had pressed zero at the "20° position", the counter is reset to 0. Now you rotate the joint 20° (and ends up the previous 40° position) the counter says 1200 counts which is of course correct but where in 3D-space is the tip?

    Is it 34.2mm "away" and 6.03 "up" from your "zero" like before or is it 30.08mm "away" and 17.36 "up"? Obviosuly the later is correct but how would you calculate that when you don't know that your "zero" was actually 20° from dead straight vertical - all you got was 1200 counts.

    As far as I can see it will impossible to calculate the position of the stylus without having some kind of absolute reference to start from, like all joints at 90° to each other or something. Therefor my sugestion to use the index-channel. But since you have reduction that may not be as easy as I first thought.

    Does that make sense or is it me who's missing something?

    /Henrik.
    Last edited by HenrikOlsson; - 6th January 2010 at 22:26.

Similar Threads

  1. DT Ints work around for IOCA Register?
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 6th January 2010, 01:20
  2. Problem with Dt Ints Interrupts
    By Quin in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th July 2008, 19:21
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21

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