This Kit will teach you how to build the Turtle Robot.Assembling the Pirate’s mobile platform is straightforward — just follow the below instructions step-by-step.

Assemble Your Own Motor

Look in your parts bag for eight long screws. These are used to fix and secure the motors in place. Place the motors in the correct alignment, then screw them into place as shown in the picture below.

Please note that washers and gaskets are also included in the parts bag. Washers can be used to increase friction, which helps fasten the motors into place. The gaskets help prevent the screw nuts from loosening and falling off due to the Pirate’s movements and collisions.



Soldering the Cables

Take the black and red wires out of the parts bag. Attach one black and one red cable (15 cm long) to each motor (4 motors in total). Then use your wire stripper to strip the insulation at both ends of the wires (make sure not to strip too much—refer to the pictures below). Next, solder the wires onto the pins affixed to the motors. Repeat the soldering process for all four motors.

Note:Pay attention to the correct locations of the red and black wires when soldering. Please consult the following photos for details.

image:Assemble Mobile Platform STEP2_1.png|1 image:Assemble Mobile Platform STEP2_2.jpg|2


Assemble the Romeo BLE controller

Look in your parts bag for three copper supports. Those 1cm-long supports are used to fasten the Romeo controller board. As shown in the picture below, there are three holes in the controller board. Place the three copper supports into the holes, then fasten them into place with the appropriate screws.



Assemble the Battery Box

Take out two countersunk screws (their heads are flat). Then follow the steps shown in the picture below and affix the battery to the car base.



Crafting the Power Switch

Batteries are the essential lifeblood of robots. To control power usage, we need to use a power switch: the switch turns off power when not in use, thus preserving electricity and battery life. Refer to the picture below before assembling and installing the power switch.

Please pay attention to the sequence of the gaskets and screw nuts when assembling the switch.


After assembling the switch, we want to start soldering its wires. Take some of the remaining wire leftover from before. Strip the wiring off both ends of the cables so that the inside of the wire is exposed (same process as with the motors before). We want to solder the exposed end of the wires to the pins on the switch. When soldering, it’s very important that we note the position of the switch’s pins.


Let’s do this step by step. a)Connect the switch to the battery charger. Pay attention to the exact location of both items.


b)Solder the red cables connecting the switch with the battery charger as shown in the picture below.


Here’s another picture to make things clearer.


c)Finally, take one red cable and one black cable. Attach one end of one cable to the negative pole of the battery charger and one end of the other cable to the positive pole of the battery charger. Then attach the other ends of both cables to the Romeo BLE controller.



Looking at this enlarged picture should give you a better idea of how the wires should be connected. After soldering, make sure to check and see if your wiring between the battery and Romeo controller is consistent from start to finish and matches with the above pictures.

Assemble the Car Base

Using eight M3x6mm screws, attach the side plates to the front and back bumper plates as shown by the diagram below.

Note: When tightening the screws during this step, make sure not to fully tighten the screws at first — this way, we can easily detach the top board in later steps should we need to make adjustments.


Then, re-attach the base plate to the body of the car as shown in the picture below.



This is what the car base should like after it’s been assembled — remember to install the battery pack!

Connect the Motors with the Microcontroller Board

Now we need to the motors with the microcontroller board. Carefully follow the following diagram: the left motor’s red and black wires should be soldered into M2; the right motor’s red and black wires should be soldered to M1. Pay special attention to the battery pack: the black wire should be soldered into the wire port reading GND, while the red wire should be soldered in the wire port labeled VND. Use your screwdriver to loosen and tighten the wire ports — make sure these ports are fastened well once the wires have been inserted.

Note: Make sure the wires from one motor (i.e. the left motor) are soldered into the motor port. (i.e. the M2 port on the diagram below — do not solder one motor’s wires into two separate ports.)


After soldering the motor wires to the microcontroller board, we’re ready to attach the top plate to the base of the car. Before we attach the top plate, you have the option of attaching a sensor plate (see diagram below) — if you don’t plan to use sensors just yet, you can skip this extra step.



After attaching the top plate, your Pirate should resemble the picture below.


Attach an extra level to the Pirate

Find the four holes on the base’s top plate. Screw in the four M3x60mm Copper Standoffs, then attach the additional top plate as shown in the diagram below — use M3x6mm screws to affix the plate to the copper standoffs.


Toss some wheels on your Pirate and you’re ready to let it whip!



STEP2: Debug Motor

Sample Code

int speedPin_M1 = 5;     //M1 Speed Control
    int speedPin_M2 = 6;     //M2 Speed Control
    int directionPin_M1 = 4;     //M1 Direction Control
    int directionPin_M2 = 7;     //M1 Direction Control

    void setup(){


    void loop(){

    void carStop(){                 //  Motor Stop

    void carTurnLeft(int leftSpeed,int rightSpeed){         //Turn Left
      analogWrite (speedPin_M2,leftSpeed);              //PWM Speed Control
      analogWrite (speedPin_M1,rightSpeed);

    void carTurnRight(int leftSpeed,int rightSpeed){       //Turn Right
      analogWrite (speedPin_M2,leftSpeed);
      analogWrite (speedPin_M1,rightSpeed);

    void carBack(int leftSpeed,int rightSpeed){             //Move backward
      analogWrite (speedPin_M2,leftSpeed);
      analogWrite (speedPin_M1,rightSpeed);
    void carAdvance(int leftSpeed,int rightSpeed){           //Move forward
      analogWrite (speedPin_M2,leftSpeed);
      analogWrite (speedPin_M1,rightSpeed);



Q&A Some general Arduino Problems/FAQ/Tips
A For any questions, advice or cool ideas to share, please visit the DFRobot Forum.

More Documents

DFshopping_car1.png Get Pirate-4WD Mobile Platform from DFRobot Store or DFRobot Distributor.

Turn to the Top