16F877A and Gyro algorithm question


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: 16F877A and Gyro algorithm question

    DT, thanks for the confirmation. I never used it as an absolute position sensor, always relative.

    Best Regards,
    Nick

  2. #2
    Join Date
    Sep 2010
    Location
    Las Vegas, NV
    Posts
    305


    Did you find this post helpful? Yes | No

    Default Re: 16F877A and Gyro algorithm question

    Doesn't really answer your question about a gyro but I do agree with Darrel in that gyros drift. They also are extremely difficult to compensate accurately.

    If it didn't need to be a full 360 degrees you could use a linear potentiometer hooked to the shaft? Supply 5V to one the other to ground with the wiper as the output. You'd have to do a one time calibration to determine angular position vs output and then it could be fed into an ADC to discern the output. This way it wouldn't be susceptible to gravity through tilting or installation errors. Would probably be the cheapest way also.

    If 360 degrees is required you could use a synchro or resolver, depending on accuracy needed, but it gets a little more complicated with either of these devices. They do require AC excitation of the rotor and has three, synchro, or four, resolver, legs for the output. I'm sure someone has coupled one of these to a PIC already. It wouldn't be susceptible to off-axis tilting either and I don't THINK the math would be as complicated as the link above.

    Most digital inclinometers have an RS232 output and some have USB but would probably prove as the most expensive option. Also, if you wanted 360 degree operation you'd have to come with a slipring so the cord wouldn't get wound up.

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