584,862 active members*
5,146 visitors online*
Register for free
Login
Results 1 to 5 of 5
  1. #1
    Join Date
    May 2012
    Posts
    537

    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

  2. #2
    Join Date
    May 2006
    Posts
    4043

    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
    TK
    http://dynomotion.com

  3. #3
    Join Date
    Dec 2014
    Posts
    78

    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
    Join Date
    Dec 2003
    Posts
    24216

    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
    Join Date
    May 2006
    Posts
    4043

    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.
    TK
    http://dynomotion.com

Similar Threads

  1. JP5 Port on KFLOP not outputting any signal
    By ychen488 in forum Dynomotion/Kflop/Kanalog
    Replies: 3
    Last Post: 03-24-2016, 11:41 AM
  2. kflop/kanalog tacho signal
    By LarsSweden in forum Dynomotion/Kflop/Kanalog
    Replies: 36
    Last Post: 12-20-2014, 07:03 PM
  3. Kflop to Mach3 signal bit
    By frankee in forum Dynomotion/Kflop/Kanalog
    Replies: 2
    Last Post: 11-13-2012, 10:42 PM
  4. 1.6V-3.0V random signal voltage parallel signal from output – Any advice?
    By cjchands in forum Mach Software (ArtSoft software)
    Replies: 0
    Last Post: 11-12-2009, 11:36 AM
  5. No Output Signal
    By tz1238 in forum Machines running Mach Software
    Replies: 1
    Last Post: 01-27-2008, 09:57 PM

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
  •