Author Topic: need help!  (Read 848 times)

0 Members and 1 Guest are viewing this topic.

Offline aciq kamarielTopic starter

  • Beginner
  • *
  • Posts: 1
  • Helpful? 0
need help!
« on: October 29, 2011, 12:14:09 AM »
can someone help me on how to programming a servo motor using PIC16F8452 in micro C software.

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,944
  • Helpful? 99
Re: need help!
« Reply #1 on: October 29, 2011, 07:17:47 AM »
There are a number of good projects on the web with code on driving a Hobby servo with a PIC.
Google "PIC servo:, "PIC servo controller",  ""PIC servo controller project", "PIC servo controller tutorial" to find them.
Her is one that uses an 18F PIC and is written in C.

However, most are in assembler and for a different PIC but the technique is the same. You will need to learn enough PIC assembler (see data sheet for assembler Instruction Set) to port the code to C and you will also need to learn the details of the PIC you are using, the PIC16F8452, to properly setup the PIC.

A good starting point for learning how to use and program PICs is here:


Get Your Ad Here