All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Grandegger <wg@domain.hid>
To: Andrey Nechypurenko <andreynech@domain.hid>
Cc: Xenomai help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Jitter while generating PWMs with GPIO from RTDM driver
Date: Mon, 23 Apr 2012 15:37:40 +0200	[thread overview]
Message-ID: <4F955B24.5070001@domain.hid> (raw)
In-Reply-To: <CAOiXNkDRQ3tnooUWwx=spxS-=v2aktovrwnf447buCpOjb1iJw@domain.hid>

On 04/23/2012 03:25 PM, Andrey Nechypurenko wrote:
>>> Following my tests with PWM generation using GPIO in user space [1],
>>> I've made the RTDM module [2] to further reduce the jitter. As a
>>> result, jitter was improved, but still under heavy system load the
>>> servo motor I am trying to control starts shaking. Now, I fill stuck
>>> and hope to get some help here.
>>
>> What jitters in micro-seconds are you speaking about? What are you
>> requirements? I have not found that information yet in this thread.
> 
> The short answer is - I do not know exactly :-) .
> 
> The long answer is - my goal is to keep servo motor stable under the
> high system load. I was unable to find any concrete numbers regarding
> the tolerance level of the no-name servo motor. So I am just
> experimenting. My recent observations, presented in the blog I've
> mentioned in the original post, suggest that 20-30micro-seconds jitter
> will force my concrete servo to start the movements.

You can run Xenomai's latency test under load to get an idea what you
can achieve on that system... and it will be more than 20-30us. Also try
the -t1 and t2 options.

> I was unable to further reduce jitter, so maybe this number is
> actually lower. I will try to implement what Gilles suggested (using
> timer api) and see if I can a) further reduce jitter; and b) if this
> jitter will be small enough to prevent servo from shaking.

The timer anticipation trick Gilles suggested would work fine, I think,
whithout costing too much (as your period is just 20ms).

Wolfgang.



      reply	other threads:[~2012-04-23 13:37 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-23 11:56 [Xenomai-help] Jitter while generating PWMs with GPIO from RTDM driver Andrey Nechypurenko
2012-04-23 12:27 ` Gilles Chanteperdrix
2012-04-23 12:35   ` Andrey Nechypurenko
2012-04-23 12:51     ` Gilles Chanteperdrix
2012-04-23 12:57       ` Andrey Nechypurenko
2012-04-23 13:15         ` Philippe Gerum
2013-07-22 16:52         ` [Xenomai] " Christoph
2013-07-22 20:51           ` Andrey Nechypurenko
2012-04-23 12:59       ` [Xenomai-help] " Gilles Chanteperdrix
2012-04-23 13:05         ` Andrey Nechypurenko
2012-04-23 12:44   ` Gilles Chanteperdrix
2012-04-23 13:14 ` Wolfgang Grandegger
2012-04-23 13:25   ` Andrey Nechypurenko
2012-04-23 13:37     ` Wolfgang Grandegger [this message]
     [not found] <CAOiXNkD+-yANz15W_cnD9QLjyGH7LUT-Pf8LEJHqx4Kh24pL+g@mail.gmail.com>
     [not found] ` <4F954ABE.20508@xenomai.org>
     [not found]   ` <CAOiXNkDKRpQKjtvC-H1YsJtHkNWYcWTUEKPqfYv0HQ_=SRHGCw@mail.gmail.com>

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F955B24.5070001@domain.hid \
    --to=wg@domain.hid \
    --cc=andreynech@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.