Can I used Kflop to output RC servo signal?


Results 1 to 5 of 5

Thread: Can I used Kflop to output RC servo signal?

  1. #1
    Member
    Join Date
    May 2012
    Location
    canada
    Posts
    537
    Downloads
    0
    Uploads
    0

    Default Can I used Kflop to output RC servo signal?

    Hi Tom,

    Wondering If i can use Kflop to output a signal to control an RC servo? Its a 5v pwm signal and i believe it uses the width of the pulse to set a position.

    Im working on a project with one of these: https://www.servocity.com/8-stroke-2...-linear-servo/ . Im running into few issues with it accuracy. Thinking I might be able to correct some of it with c-code if I was using kflop. And if all else fails i might just need to change to an actuator that uses a servo or stepper, in which case i could use a kflop to control anyway.

    Mark

    Similar Threads:


  2. #2
    Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    4045
    Downloads
    0
    Uploads
    0

    Default Re: Can I used Kflop to output RC servo signal?

    Hi Mark,

    It can be difficult to generate precise pulses at such a low frequency. See here for an example which disables/enables a PWM to do it. I think the pulse resolution is ~ 0.5%.

    HTH

    Regards
    TK http://dynomotion.com


  3. #3

    Default Re: Can I used Kflop to output RC servo signal?

    If kflop isn't doing what you want I'd look into using an arduino to control the servo. My father in law just showed me a setup he is using an arduino to control one of those and I know you can control RC servos with them too. I would guess you could interface an ardiuino with kflop if you needed.



  4. #4
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    24220
    Downloads
    0
    Uploads
    0

    Default Re: Can I used Kflop to output RC servo signal?

    Not only is the PWM frequency very low, 20ms with the pulse width from 1 to 2 ms, making it difficult to make a controller unless it is a dedicated Picmicro or other IC such as 555 etc.

    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.


  5. #5
    Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    4045
    Downloads
    0
    Uploads
    0

    Default Re: Can I used Kflop to output RC servo signal?

    The link to the KFLOP program uses a software/hardware approach. The 8-bit hardware PWMs are programmed for 435Hz which gives a hardware pulse resolution of 9us. Then the software disables the PWM for 7 PWM cycles and enables it for 1.which results if a frequency of 54Hz. A 200us safety window is reserved at the end of the PWM cycle so the software is guaranteed to have sufficient time to properly disable/enable it before the next cycle. I think overall the pulse resolution will be ~ 1%. Or for 8 inches of travel 0.08 inches.

    Regards
    TK http://dynomotion.com


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Can I used Kflop to output RC servo signal?

Can I used Kflop to output RC servo signal?