Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Microsecond variable Delay in MikroC #11250
    Prasad
    Participant

    This method is correct for some specified angles. Because delay_us(), can’t have a variable value. It should be fixed. But I want to rotate Servo in random angles. That angle comes from some calculation.

    So the delay is in between 1000us and 2000us.

    ex

    1300, 1850 or something.

    How can I obtain that type of delay.

    in reply to: Microsecond variable Delay in MikroC #11239
    Prasad
    Participant

    But I need to control a 180 deg servo with pic16f84a. PIC16f84a doesn’t have PWM.

    In servo motor datasheet it says that,

    1000us delay   = 0 deg

    1500us delay   = 90 deg

    2000us delay  = 180 deg

    So, how can I obtain a delay between 1000us and 2000us

     

Viewing 2 posts - 1 through 2 (of 2 total)
>