Results 1 to 2 of 2
  1. #1
    500+ This must be a daytime job 737NUT's Avatar
    Join Date
    Feb 2006
    Location
    Indianapolis, IN
    Posts
    778
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Newbie help with 3.1 Teensy and servo's

    Hi all,
    First off I am totally new to the Arduino world. I purchased 3 books on Arduino's and I have read 2 of them.
    I recently purchased a Teensy 3.1 to try out and test for possible use in my project. This project is building a 737-200 sim using real instruments and X-plane 10. The instruments will driven by servo's and or stepper motors, and pwm output to simple coil movements. Hence the reason on going with the Teensy is direct com support to X-plane and 12 bit or higher resolution on inputs and servo outputs.

    I have been searching the web for examples on how to run the servo's and Analog inputs at 12 bit resolution 0-4095 This precision is necessary to drive my gauge's accurately.

    All I find is 10bit 0-1022 and analog in of 0-255

    1) I want to read a potentiometer at 12 bit and tell a DC motor to go to the position in 12 bit resolution position output. (closed loop motor control)

    2) Read x-plane data and command servo to that position in 12 bit (all examples are 10 bit)

    3) Stepper motors is really tough find. I need it to know how to set home location or start spot then be commanded like the motor/servo example above with high accuracy. In a different interface i have worked with in the past you put optical interrupter on the stepper, on start up it did 2 360deg turns to determine step count and home or start position based on the optical interrupt. Then it was simple to program it follow the commanded position similar to a servo, Example,compass info from x-plane All the info I have found so far via google has come up empty on precise positioning of a stepper.

    Right now it looks like I'll using 20+ steppers, 20+ servo's and 20+ pwm outputs to drive simple coil movements.

    I am open to paying someone to help code all this as well.

    I really appreciate any help on this endeavor.

    Rob

  2. #2
    500+ This must be a daytime job Jim NZ's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    764
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Newbie help with 3.1 Teensy and servo's

    Hi Rob ,, your probably better off to pop over to the Teensy forums or the Xplane forums and fire the questions in there.

    As the Teensy is not totally Arduino compatible and your also talking Xplane ,, I'll delete this thread shortly.
    See ,,
    http://www.mycockpit.org/forums/showthread.php?t=22536

    Cheers ,,, Jim
    www.jimspage.co.nz/intro.htm
    All this and Liz still loves me ! !