Program for controlling analog servo motor using PIC18F452


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Location
    Portugal
    Posts
    240


    Did you find this post helpful? Yes | No

    Default Re: Program for controlling analog servo motor using PIC18F452

    Quote Originally Posted by SolaiKannan View Post
    hi
    i am using pic 18f452 to control the servo motor Turnigy TG9e.
    i am programming it using microcode studio.
    i was not able to move the servo motor.

    i don't know what was the mistake.

    can anyone provide me a basic program in microcode studio for controlling servo motor Turnigy Tg9e using pic 18f452
    I think its better you put here the code that you allready have, and if possible schematic also!
    Thanks and Regards;
    Gadelhas

  2. #2
    Join Date
    Jan 2012
    Posts
    13


    Did you find this post helpful? Yes | No

    Default Re: Program for controlling analog servo motor using PIC18F452

    this is my coding.

    define osc 20

    OUTPUT PORTB.0

    LOOP:

    PULSOUT 0,110
    PAUSE 1000

    PULSOUT 0,120
    PAUSE 1000


    PULSOUT 0,130
    PAUSE 1000

    PULSOUT 0,140
    PAUSE 1000

    PULSOUT 0,150
    PAUSE 1000

    PULSOUT 0,160
    PAUSE 1000

    PULSOUT 0,170
    PAUSE 1000

    PULSOUT 0,180
    PAUSE 1000

    PULSOUT 0,190
    PAUSE 1000


    PULSOUT 0,200
    PAUSE 1000
    GOTO LOOP
    END

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