More Servo Woes


Results 1 to 11 of 11

Thread: More Servo Woes

Threaded View

  1. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Lightbulb

    Hi, Chris

    A servomotor has it's own signal limitations ...

    from 800 to 2200 µs pulse ( STD ) ... so unpredictable behaviour can occur outside those limits ...

    Code:
    ADCIN 0, B2				' Reads in the PORT A.0 ADC AND STORES THE VALUE IN B2
    ADCIN 1, B3				' READS IN THE PORT a.1 ADC AND STORES THE VALUE IN B3
    
    XPRESET	=	B2 + 50
    your accelerometer is an analog one, Ok ... but ADCIN can give a result between 0 and 256 ...

    so, the servo signal range is not guaranteed to be in the " valid" range.

    Now , you read Twice the accelerometer in one cycle ... not really a problem, but it's not compulsory here.

    BTW ... Which Pic and Accelerometer do you use ???

    Alain
    Last edited by Acetronics2; - 28th February 2009 at 12:43.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Problem with 12F629, servo and EEPROM
    By Atom058 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 1st March 2008, 09:53
  2. Servo does not move
    By ruijc in forum General
    Replies: 12
    Last Post: - 12th November 2007, 19:14
  3. Beginner + Servo
    By james in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 31st July 2007, 21:31
  4. Help with Servo Control Please!
    By wireman22 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 7th June 2007, 18:15
  5. Servo control woes
    By Eriswerks in forum mel PIC BASIC Pro
    Replies: 24
    Last Post: - 28th February 2006, 00:12

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