Hobbies And Interests
Home  >> Hobbies >> Other Hobbies

How to Control AC Servo Speed

AC servo motors have been in use for decades. They have gained massive popularity with computer control because of their ease of use and application. Virtually every radio-controlled car, helicopter or plane has at least one servo motor inside. Furthermore, the combination of digital control with mechanical operation has caused AC servo motors to be used in home appliances, office automation and the automotive marketplace. The precision of computer control precisely regulates the on-off pulse of AC servo motors.

Things You'll Need

  • 15-volt power supply
  • Tiny-ICD2 PIC programmer
  • DB-9 serial cable
  • Development board
  • Servo motor
Show More

Instructions

  1. Install the Hardware

    • 1

      Connect a standard 9-pin male-to-female serial cable to your computer serial port. The serial port might also be labelled as a COM port.

    • 2

      Connect the other end of the serial cable to the ICD2-Tiny PIC programmer. "ICD2-Tiny" is a reduced size version of the ICD2 programmer. ICD stands for "In-Circuit Debugger." The programmer also has an "ICSP" connector to attach the programmer to the development board.

    • 3

      Connect the ICSP cable to the development board, and attach the 15-volt power supply to the board.

    Program the PIC

    • 4

      Create a simple program that will turn bit "0" of port "A" off and on every .3 seconds. Copy the PHP code snippet below in a Notepad or word processing document:

      #include <p18f452.h>
      #include <delays.h>
      void main(void){
      TRISA = 0x00;
      PORTA = 0x00;

      while(1){
      PORTA = 0x01;
      Delay10KTCYx(150);
      PORTA = 0x00;
      Delay10KTCYx(150);
      }
      }
      « End Code »

    • 5

      Compile and program the PIC with the code in Step 1.

    • 6

      Enter the DSP control software into the host computer to read the motor control code.

    Connect a Host to the PIC

    • 7

      Download software to run the AC servo motor. MPLAB is an example to illustrate the process. Open the Project Wizard to begin the software configuration. Click "Next."

    • 8

      Choose your device from the list. In this case, it is the PIC controller. Once finished with the choices, click "Next."

    • 9

      Name and save your project. MPLAB provides a summary screen at various steps to recap what has been chosen. Click "Finish" to configure your project with the listed parameters.

    • 10

      Open this saved file and choose the PIC programmer again from the drop-down list.

    • 11

      Choose the COM port on the computer and click "Next."

    • 12

      Download the specific customized operating system for you hardware, verify the system configuration and click "Finish" to save the customized operating system that will run the AC servo motor.


https://www.htfbw.com © Hobbies And Interests