• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomeRobotSerial Servo Driver Board
Previous Next

Serial Servo Driver Board

Posted by: admin , June 15, 2014

[vc_row][vc_column][vc_column_text]Serial Servo Driver is a servo driver board that can drive up to  8 servos with a  precision of  5us. The communication interface is TTL UART serial port, and compatible with Linker kit interface.

 

[/v

c_column_text][/vc_column][/vc_row][vc_row][vc_column width=”1/1″][vc_tour][vc_tab title=”Specification” tab_id=”1402364020-1-46″][vc_column_text]

 

1.  Number of Channels: 8 channels

2.  Driving frequency: 50Hz (a period of  20ms)

3.  Communication Interface: UART (a form factor of Linker kit),  baud rate 9600

4.  Precision: 5us

6.  Optional External power supply: 6V ~ 15 v[/vc_column_text][/vc_tab][vc_tab title=”Description of Interface” tab_id=”1402364020-2-7″][vc_column_text]图片2[/vc_column_text][/vc_tab][vc_tab title=”Accuurate PWM Frequency” tab_id=”1402364809876-2-3″][vc_column_text]图片3

图片4图片5[/vc_column_text][/vc_tab][vc_tab title=”Parts list” tab_id=”1402364810807-3-8″][vc_column_text]

  • 1  x  Arduino UNO
  • 1  x  Linker Base Shield
  • 1  x  Linker Cable
  • 1  x  Serial Servo Driver
  • 1  x  9g RF Servo
  • 1  x  9V-DC Power 1A

[/vc_column_text][/vc_tab][vc_tab title=”Test Code” tab_id=”1402364812861-4-2″][vc_column_text]

#include <SoftwareSerial.h>
SoftwareSerial mySerial(3, 2);

void setup()
{
  mySerial.begin(9600);
  delay(100);
}

unsigned int i;

void loop()
{
   //cammand : S + PWM + Duty_H + Duty_L + E
   for(i=100;i<450;i++)
   {
     //PWM 1
     mySerial.print('S');   //Start
     mySerial.print(char(1)); //PWM channel selection
     mySerial.print(char(i/0xFF)); //Duty HIGH
     mySerial.print(char(i%0xFF)); //Duty LOW
     mySerial.print('E'); //End

     //PWM 2
     mySerial.print('S');
     mySerial.print(char(2));
     mySerial.print(char(i/0xFF));
     mySerial.print(char(i%0xFF));
     mySerial.print('E');
     delay(5);
   }

    for(i=450;i>100;i--)
   {
     mySerial.print('S');
     mySerial.print(char(1));
     mySerial.print(char(i/0xFF));
     mySerial.print(char(i%0xFF));
     mySerial.print('E');
     mySerial.print('S');
     mySerial.print(char(2));
     mySerial.print(char(i/0xFF));
     mySerial.print(char(i%0xFF));
     mySerial.print('E');
     delay(5);
   }
}

[/vc_column_text][/vc_tab][vc_tab title=”Run Test” tab_id=”1402365848086-5-9″][vc_column_text]

(1) Power for Arduino,  then open the Arduino IDE, input the test code, unload it to the Arduino board.

图片6

(2) Install the Linker Base Shield to Arduino, connect the Serial Servo Driver to D2 and D3 with Linker Cable, and then connect the Arduino with the add-ins 9V-DC Power.

(3) Respectively connect the two Servo to the PWM1 and PWM2(Red Servo wire is VCC, brown servo wire is GND, yellow servo wire is signal wire), and short connect the J5 jumper to VCC, when there are multiple servos, there needs external power supply on ServoVin, then it should short connect to Vout.

(4) The experiment has been done so far, you can see the two Servo would go from 0 ° to 180 °, then go from 180 ° to 0 °, and so forth of the rotation.

图片7

[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]

Tags: Robot

Share!
Tweet

admin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors