(Picbasic Pro Compiler) Distinct management of two servos per timer(s) of 12F675?


Closed Thread
Results 1 to 13 of 13

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: (Picbasic Pro Compiler) Distinct management of two servos per timer(s) of 12F675?

    Quote Originally Posted by zorgloub View Post
    Hi Alan,
    The two channels follow each other:

    Switch on channel 7 and potentiometer on channel 8.
    The radio is a classic Robbe Promars.
    Thanks.
    Ok, got it ...

    PBP can't read two channels following each other without missing the second one ... because PULSIN needs some little " re-arming " time ... ( I make it short )

    so, we must use a turnaround to achieve that ...

    Code:
        PULSIN _Vertical,1,Vertical
        RCTIME _Horizontal,1,Horizontal
    a look to the manual will give you the reason why ...

    and may be 1 unit @ 4 Mhz to add to Horizontal to be straight true ...

    So, here, you have to re-write your sampling part without any command between the two channels signals sampling commands ...

    Alain
    Last edited by Acetronics2; - 18th June 2023 at 09:22.
    ************************************************** ***********************
    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 " !!!
    *****************************************

  2. #2
    Join Date
    Feb 2022
    Posts
    54


    Did you find this post helpful? Yes | No

    Default Re: (Picbasic Pro Compiler) Distinct management of two servos per timer(s) of 12F675?

    Hi Alain,
    Thanks
    OK, I'll take it all back after the holidays

  3. #3
    Join Date
    Feb 2022
    Posts
    54


    Did you find this post helpful? Yes | No

    Default Re: (Picbasic Pro Compiler) Distinct management of two servos per timer(s) of 12F675?

    Hi alan, here I am back from vacation
    I read your explanation relating to the "rearming-time" of two successive Pulsin.
    Note that here there is code between these two Pulsin (first the Gosub Tri, then the Gosub PRG n).
    These are not directly successive pulsin commands and this notion of "rearming-time" does not seem to explain the problem.

  4. #4
    Join Date
    Aug 2011
    Posts
    457


    Did you find this post helpful? Yes | No

    Default Re: (Picbasic Pro Compiler) Distinct management of two servos per timer(s) of 12F675?

    The two PULSIN commands in the main loop are going to add jitter to the pulse output timing since the time is going to vary depending on the input pulse times.

  5. #5
    Join Date
    Feb 2022
    Posts
    54


    Did you find this post helpful? Yes | No

    Default Re: (Picbasic Pro Compiler) Distinct management of two servos per timer(s) of 12F675?

    Apart from this problem, I did positioning stability tests with several servos.
    If a servo is not stable, it is because the value of the pulses is not constant.
    If the gap between these impulses (which is normally 20 msec) is not constant, this does not influence the servo at all!
    I did a test by alternating 20msec differences and 40 sec while sending constant pulses: the servo remains stable.

Similar Threads

  1. Replies: 2
    Last Post: - 28th May 2016, 14:09
  2. Experimenting with the PicBasic Pro Compiler
    By polymer52 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 17th May 2016, 19:17
  3. PicBasic Pro Compiler manual updated with bookmarks
    By mtripoli in forum Documentation
    Replies: 1
    Last Post: - 8th March 2011, 00:49
  4. Picbasic Pro compiler 2.60 error
    By Luckyborg in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 22nd January 2010, 05:55
  5. PicBasic Pro Compiler for 877A
    By iwill920ya in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 31st May 2004, 04:10

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