Telepresence Robot: Basic Platform (Part 1)
by randofo in Circuits > Robots
18490 Views, 86 Favorites, 0 Comments
Telepresence Robot: Basic Platform (Part 1)
![rotateMain.gif](/proxy/?url=https://content.instructables.com/FDH/9502/IVHQN9YG/FDH9502IVHQN9YG.gif&filename=rotateMain.gif)
A telepresence robot is a type of robot that can be controlled remotely over the internet and function as a surrogate for someone somewhere else. For instance, if you are in New York, but want to physically interact with a team of people in California, you could call into a telepresence robot in California and have the robot be your stand-in.
This is the first part of a seven-part instructables series. Over the next two instructables we will be building the basic electromechanical robot platform. This platform will later be enhanced with sensors and additional control electronics.
This base is centered around a plastic box which both provides structure, and offers internal space for storing electronics. The design uses two center drive wheels attached to continuous servos which allow it to go forwards, backwards, and pivot in place. To keep it from tipping side-to-side, it incorporates two metal chair gliders. The whole thing is controlled by an Arduino.
To learn more about the topics covered in this series of projects check out the Robot Class, Electronics Class, and Arduino Class.
Materials
![1A.jpg](/proxy/?url=https://content.instructables.com/F7W/665R/IKEAI0GB/F7W665RIKEAI0GB.jpg&filename=1A.jpg)
Since this is a two-part project, I have included all of the parts in one list. The parts for the second half will be reiterated in that lesson.
You will need:
(x2) Continuous rotation servos
(x1) Standard servo
(x1) Arduino
(x1) 4 x AA battery holder
(x1) 2 x AA battery holder
(x6) AA battery
(x1) M-type power plug
(x2) Caster wheels
(x1) Plastic box
(x1) Selfie stick
(x1) 1/2" ceiling plate flange
(x1) Metal coat hanger
(x2) 1/4-20 x 7/8" by 1-1/4" base sliders
(x4) 1/4-20 nuts
(x1) Assorted shrink tube
(x1) Assorted zip ties
Drill the Servo Horn
![2A.jpg](/proxy/?url=https://content.instructables.com/F6A/G8PU/IKEAK8AM/F6AG8PUIKEAK8AM.jpg&filename=2A.jpg)
![2B.jpg](/proxy/?url=https://content.instructables.com/FP9/6JXM/IKEAK8AQ/FP96JXMIKEAK8AQ.jpg&filename=2B.jpg)
Widen the outermost holes of the two continuous rotation servos with a 1/8" drill bit.
Mark and Drill
![3A.jpg](/proxy/?url=https://content.instructables.com/FX5/J9RF/IKEAKG0I/FX5J9RFIKEAKG0I.jpg&filename=3A.jpg)
![3B.jpg](/proxy/?url=https://content.instructables.com/FPE/KUE7/IKEAKG0N/FPEKUE7IKEAKG0N.jpg&filename=3B.jpg)
![3C.jpg](/proxy/?url=https://content.instructables.com/FRS/TNTF/IKEAKG0Q/FRSTNTFIKEAKG0Q.jpg&filename=3C.jpg)
![3D.jpg](/proxy/?url=https://content.instructables.com/FH6/1985/IKEAKG0U/FH61985IKEAKG0U.jpg&filename=3D.jpg)
Center the servo horn upon one of the 3" wheel hubs and mark the servo's attachment holes.
Drill these marks with a 1/8' drill bit.
Repeat for the second wheel.
Attach
![4A.jpg](/proxy/?url=https://content.instructables.com/FUN/0J35/IKFPY980/FUN0J35IKFPY980.jpg&filename=4A.jpg)
![4B.jpg](/proxy/?url=https://content.instructables.com/FO1/YUWR/IKFPY9BH/FO1YUWRIKFPY9BH.jpg&filename=4B.jpg)
![4C.jpg](/proxy/?url=https://content.instructables.com/FE9/WQYE/IKFPY9CF/FE9WQYEIKFPY9CF.jpg&filename=4C.jpg)
![4D.jpg](/proxy/?url=https://content.instructables.com/FQQ/941U/IKFPY9DD/FQQ941UIKFPY9DD.jpg&filename=4D.jpg)
![4E.jpg](/proxy/?url=https://content.instructables.com/FED/TIM9/IKFPY9EY/FEDTIM9IKFPY9EY.jpg&filename=4E.jpg)
Zip tie the wheels to the respective servo horns and trim away any excess zip tie tails.
Connect the Motors
![5A.jpg](/proxy/?url=https://content.instructables.com/F2D/2U72/IKMVENGX/F2D2U72IKMVENGX.jpg&filename=5A.jpg)
Using the motor's mounting holes, firmly zip tie the two continuous servos together back to back such that they are mirrored.
This configuration may seem simple, but is actually quite a robust drivetrain for the robot.
Mark the Wheel Openings
![6A.jpg](/proxy/?url=https://content.instructables.com/FUE/NKD2/IKOAKS9C/FUENKD2IKOAKS9C.jpg&filename=6A.jpg)
![6C.jpg](/proxy/?url=https://content.instructables.com/FRN/3WWE/IKOAKS9R/FRN3WWEIKOAKS9R.jpg&filename=6C.jpg)
![6D.jpg](/proxy/?url=https://content.instructables.com/F7U/U0YD/IKOAKS9Z/F7UU0YDIKOAKS9Z.jpg&filename=6D.jpg)
![6E.jpg](/proxy/?url=https://content.instructables.com/FT5/EEB3/IKOAKSA2/FT5EEB3IKOAKSA2.jpg&filename=6E.jpg)
![6F.jpg](/proxy/?url=https://content.instructables.com/FO5/GW33/IKOAKSA9/FO5GW33IKOAKSA9.jpg&filename=6F.jpg)
![6G.jpg](/proxy/?url=https://content.instructables.com/FV7/HQSQ/IKOAKSAJ/FV7HQSQIKOAKSAJ.jpg&filename=6G.jpg)
We need to cut two rectangles in the center of the lid to pass the wheels through.
Find the center of the tupperware lid by drawing an X from corner to corner. The place where this X intersects is the center point.
From the center, measure 1-1/4" inward towards one of the longest edges and make a mark. Mirror this on the opposite side.
Next measure 1-1/2" up and down from the center marks and mark these measurements as well.
Finally, measure 1-1/2" outwards towards the long edge from each of the inner marks, and make three outer marks to dilineate the outer edge of the cut lines.
Please note that I didn't bother marking these measurements because they lined up perfectly with the trough in the lid for the box edge.
You should be left with an outline of two 1-1/2" x 3" boxes. These will be for the wheels.
Cut the Openings
![7A.jpg](/proxy/?url=https://content.instructables.com/FFC/A00K/IKOAM3V8/FFCA00KIKOAM3V8.jpg&filename=7A.jpg)
![7B.jpg](/proxy/?url=https://content.instructables.com/F4F/2JMF/IKOAM3VD/F4F2JMFIKOAM3VD.jpg&filename=7B.jpg)
![7C.jpg](/proxy/?url=https://content.instructables.com/FUB/N2E7/IKOAM3VE/FUBN2E7IKOAM3VE.jpg&filename=7C.jpg)
![7D.jpg](/proxy/?url=https://content.instructables.com/F49/HM13/IKOAM3VJ/F49HM13IKOAM3VJ.jpg&filename=7D.jpg)
Using the markings as a guide, cut two 1-1/2" x 3" rectangular wheel openings using a box cutter, or similar blade.
Mark and Drill
![23A.jpg](/proxy/?url=https://content.instructables.com/F1B/50S7/IKSL15I0/F1B50S7IKSL15I0.jpg&filename=23A.jpg)
![23B.jpg](/proxy/?url=https://content.instructables.com/FBR/BYYE/IKSL15I1/FBRBYYEIKSL15I1.jpg&filename=23B.jpg)
![23C.jpg](/proxy/?url=https://content.instructables.com/FOA/1XAI/IKSL15I2/FOA1XAIIKSL15I2.jpg&filename=23C.jpg)
![23D.jpg](/proxy/?url=https://content.instructables.com/FYO/9F17/IKSL15I3/FYO9F17IKSL15I3.jpg&filename=23D.jpg)
Place the motor assembly in the center of the lid such that the wheels sit centered inside of the two rectangular holes and don't touch any of the edges.
Once you are sure you have acheived correct wheel positioning, make a mark on each side of each of the motors. This will serve as drill guides for holes that will be used to zip tie the motors to the lid.
Once the marks are made, drill each of these holes with a 3/16" drill bit.
Attach the Drive Wheels
![24A.jpg](/proxy/?url=https://content.instructables.com/FQX/PCAH/IKSL2BXQ/FQXPCAHIKSL2BXQ.jpg&filename=24A.jpg)
![25G.jpg](/proxy/?url=https://content.instructables.com/FG3/84NQ/IKSL2TYX/FG384NQIKSL2TYX.jpg&filename=25G.jpg)
![24B.jpg](/proxy/?url=https://content.instructables.com/FXW/E1JF/IKSL2BXS/FXWE1JFIKSL2BXS.jpg&filename=24B.jpg)
![24C.jpg](/proxy/?url=https://content.instructables.com/FV2/HBTQ/IKSL2BXU/FV2HBTQIKSL2BXU.jpg&filename=24C.jpg)
Firmly zip tie the servo motors to the lid using the appropriate mounting holes.
Trim away the excess zip tie tails.
By having mounted the motors in the middle of the robot, we have created a robust drive assembly. Our robot will not only be able to go forwards and backwards, but also turn in both directions.
In fact, not only can the robot veer left or right by differing the speeds of the motors while driving, but it can also pivot in place. This is accomplished by rotating the motors at the same speed in opposite directions. On account of this capability, the robot can navigate tight spaces.
Prepare the Sliders
![25D.jpg](/proxy/?url=https://content.instructables.com/FQN/LV89/IKSL2TXV/FQNLV89IKSL2TXV.jpg&filename=25D.jpg)
![25E.jpg](/proxy/?url=https://content.instructables.com/FLP/CBRR/IKSL2TYB/FLPCBRRIKSL2TYB.jpg&filename=25E.jpg)
Prepare the sliders by threading 1/4-20 nuts about halfway down the threaded studs.
These sliders are used for leveling the robot, and may need to be adjusted later to allow the robot to drive smoothly without tipping.
Drill and Attach Sliders
![25A.jpg](/proxy/?url=https://content.instructables.com/FZR/A1S9/IKSL2TWT/FZRA1S9IKSL2TWT.jpg&filename=25A.jpg)
![25B.jpg](/proxy/?url=https://content.instructables.com/FPB/J4YQ/IKSL2TXB/FPBJ4YQIKSL2TXB.jpg&filename=25B.jpg)
![25C.jpg](/proxy/?url=https://content.instructables.com/FYX/GDMF/IKSL2TXC/FYXGDMFIKSL2TXC.jpg&filename=25C.jpg)
![25F.jpg](/proxy/?url=https://content.instructables.com/FYN/547P/IKSL2TYD/FYN547PIKSL2TYD.jpg&filename=25F.jpg)
![25H.jpg](/proxy/?url=https://content.instructables.com/FPD/V4C0/IKSL2TZ1/FPDV4C0IKSL2TZ1.jpg&filename=25H.jpg)
![25I.jpg](/proxy/?url=https://content.instructables.com/FWU/MTWC/IKSL2TZL/FWUMTWCIKSL2TZL.jpg&filename=25I.jpg)
About 1-1/2" inward from each of the short edges of the box, make a mark on center.
Drill through these marks with a 1/4" drill bit.
Insert the sliders through the holes and fasten them with 1/4-20 nuts.
These are used to keep the robot balanced. They should not be so high that the drive wheels have trouble making contact with the surface of the ground, nor so low that the robot is wobbling back and forth. You will likely need to adjust the height of these as you begin to see how your robot is operating.
The Circuit
![resized_FM5ZJQKIMZ67ONV.png](/proxy/?url=https://content.instructables.com/FJH/YNXS/IOEXWZ3V/FJHYNXSIOEXWZ3V.png&filename=resized_FM5ZJQKIMZ67ONV.png)
The circuit is fairly simple. It consists of two continuous rotation servos, a standard servo, an Arduino, and a 9V power supply.
The one tricky part of this circuit is actually the 9V power supply. Rather than being one single battery holder, it is actually a 6V and 3V battery holder in series to create a 9V one. The reason this is done is that the servos need a 6V power source, and the Arduino needs a 9V power source. In order to provide power to both, we are connecting a wire to the spot where the 6V and 3V supplies are soldered together. This wire will provide 6V to the motors, while the red wire coming off of the 3V supply, is actually the 9V supply the Arduino requires. They all share the same ground. This may seem very confusing, but if you look carefully you will see it is actually fairly simple.
Power and Ground Wires
![26O.jpg](/proxy/?url=https://content.instructables.com/FP0/CPBG/IKTYXK26/FP0CPBGIKTYXK26.jpg&filename=26O.jpg)
In our circuit the 6V power connection needs to be split three ways and the ground connection needs to be split four ways.
To do this, we will solder three solid core red wires to a single solid core red wire.
We will also solder a solid core black wire to four solid core black wires.
We are using solid core wire because they largely need to plug into servo sockets.
To begin, cut the appropriate number of wires, and strip a little bit of insulation of one end of each.
Twist together the ends of the wires.
Solder this connection.
Finally, slip a piece of shrink tube over the connection and melt it into place to insulate it.
You've now soldered two wiring harnesses.
Connecting the Wiring Harness
![27A.jpg](/proxy/?url=https://content.instructables.com/F54/JTVU/IKU0CBIV/F54JTVUIKU0CBIV.jpg&filename=27A.jpg)
![27B.jpg](/proxy/?url=https://content.instructables.com/FNZ/XX5A/IKU0CBIZ/FNZXX5AIKU0CBIZ.jpg&filename=27B.jpg)
![27C.jpg](/proxy/?url=https://content.instructables.com/F3S/D6GQ/IKU0CBJ2/F3SD6GQIKU0CBJ2.jpg&filename=27C.jpg)
![27D.jpg](/proxy/?url=https://content.instructables.com/F3D/RCHD/IKU0CBJ7/F3DRCHDIKU0CBJ7.jpg&filename=27D.jpg)
![27E.jpg](/proxy/?url=https://content.instructables.com/FN5/ZK94/IKU0CBJC/FN5ZK94IKU0CBJC.jpg&filename=27E.jpg)
![27F.jpg](/proxy/?url=https://content.instructables.com/FZ1/3GT9/IKU0CBJJ/FZ13GT9IKU0CBJJ.jpg&filename=27F.jpg)
Solder together the red wire from the 4 X AA battery holder, the black wire from the 2 X AA battery holder, and the single red wire from the power wiring harness. Insulate this connection with shrink tube.
This will serve as the 6V power connection for the servos.
Next, solder the black wire from the 4 X AA battery holder to the single black wire from the ground wiring harness. Insulate this with shrink tube as well.
This will provide a ground connection for the whole circuit.
Attach the Power Plug
![28A.jpg](/proxy/?url=https://content.instructables.com/F6Q/9Y3O/IKU0CO9M/F6Q9Y3OIKU0CO9M.jpg&filename=28A.jpg)
![28B.jpg](/proxy/?url=https://content.instructables.com/F2E/GG7Q/IKU0COGE/F2EGG7QIKU0COGE.jpg&filename=28B.jpg)
![28C.jpg](/proxy/?url=https://content.instructables.com/FWI/V0ZH/IKU0COGF/FWIV0ZHIKU0COGF.jpg&filename=28C.jpg)
![28D.jpg](/proxy/?url=https://content.instructables.com/FI8/Z1JM/IKU0COJS/FI8Z1JMIKU0COJS.jpg&filename=28D.jpg)
Twist apart the protective cover from the plug and slide the cover onto one of the black wires from the wiring harness such that it will be able to be twisted back on later.
Solder the black wire to the outer terminal of the plug.
Solder a 6" red solid core wire to the center terminal of the plug.
Twist the cover back onto the plug to insulate your connections.
Make the 9V Connection
![29A.jpg](/proxy/?url=https://content.instructables.com/FCW/OR3G/IKU0D2Q7/FCWOR3GIKU0D2Q7.jpg&filename=29A.jpg)
![29B.jpg](/proxy/?url=https://content.instructables.com/FOP/U00E/IKU0D2TL/FOPU00EIKU0D2TL.jpg&filename=29B.jpg)
![29C.jpg](/proxy/?url=https://content.instructables.com/FRA/1XZ2/IKU0D2UR/FRA1XZ2IKU0D2UR.jpg&filename=29C.jpg)
![29D.jpg](/proxy/?url=https://content.instructables.com/FCT/JEYW/IKU0D2UU/FCTJEYWIKU0D2UU.jpg&filename=29D.jpg)
Solder the other end of the red cable attached to the power plug to the red wire from the battery pack, and insulate it with shrink tube.
Mount the Battery Holders
![30A.jpg](/proxy/?url=https://content.instructables.com/FXF/30NN/IKU0DPBQ/FXF30NNIKU0DPBQ.jpg&filename=30A.jpg)
![30B.jpg](/proxy/?url=https://content.instructables.com/FWV/KW0Z/IKU0DPBR/FWVKW0ZIKU0DPBR.jpg&filename=30B.jpg)
![30C.jpg](/proxy/?url=https://content.instructables.com/FP8/1B4P/IKU0DPBS/FP81B4PIKU0DPBS.jpg&filename=30C.jpg)
![30D.jpg](/proxy/?url=https://content.instructables.com/FOA/CDI0/IKU0DPBT/FOACDI0IKU0DPBT.jpg&filename=30D.jpg)
![30E.jpg](/proxy/?url=https://content.instructables.com/FZD/PYYW/IKU0DPBU/FZDPYYWIKU0DPBU.jpg&filename=30E.jpg)
![30F.jpg](/proxy/?url=https://content.instructables.com/F7R/5WWD/IKU0DPBW/F7R5WWDIKU0DPBW.jpg&filename=30F.jpg)
Place the battery holders on one side of the box lid, and mark their mounting holes using a permanent marker.
Drill these marks with a 1/8" drill bit.
Finally, fasten the battery holders to the lid using 4-40 flathead bolts and nuts.
Program the Arduino
![31A.jpg](/proxy/?url=https://content.instructables.com/FCM/N27U/IKU0DPK2/FCMN27UIKU0DPK2.jpg&filename=31A.jpg)
The following Arduino test code will allow the robot to drive forwards, backwards, left, and right. It is only designed to check the functionality of the continuous servo motors. We will continue to modify and expand upon this code as the robot progresses.
/* Telepresence Robot - Drive Wheel Test Code Code which tests the forward, backward, right and left functionality of the telepresence robot base. */ // Include the servo library #include <Servo.h> // Tell the Arduino there are to continuous servos Servo ContinuousServo1; Servo ContinuousServo2; void setup() { // Attach the continuous servos to pins 6 and 7 ContinuousServo1.attach(6); ContinuousServo2.attach(7); // Start the continuous servos in a paused position // if they continue to spin slightly, // change these numbers until they stop ContinuousServo1.write(94); ContinuousServo2.write(94); } void loop() { // Pick a random number between 0 and 3 int range = random(4); // Switches routines based on the random number just selected switch (range) { //If 0 is selected turn right and pause for a second case 0: right(); delay(500); stopDriving(); delay(1000); break; //If 1 is selected turn left and pause for a second case 1: left(); delay(500); stopDriving(); delay(1000); break; //If 2 is selected go forward and pause for a second case 2: forward(); delay(500); stopDriving(); delay(1000); break; //If 3 is selected go backward and pause for a second case 3: backward(); delay(500); stopDriving(); delay(1000); break; } // Pause for a millisecond for stability of the code delay(1); } // Function to stop driving void stopDriving() { ContinuousServo1.write(94); ContinuousServo2.write(94); } // Function to drive forwards void forward(){ ContinuousServo1.write(84); ContinuousServo2.write(104); } // Function to drive backwards void backward(){ ContinuousServo1.write(104); ContinuousServo2.write(84); } // Function to drive right void right(){ ContinuousServo1.write(104); ContinuousServo2.write(104); } // Function to drive left void left(){ ContinuousServo1.write(84); ContinuousServo2.write(84); }
Attach the Arduino
![32A.jpg](/proxy/?url=https://content.instructables.com/FCB/6PWJ/IKVFU887/FCB6PWJIKVFU887.jpg&filename=32A.jpg)
![32B.jpg](/proxy/?url=https://content.instructables.com/FRM/L7LJ/IKVFU88Z/FRML7LJIKVFU88Z.jpg&filename=32B.jpg)
![33C.jpg](/proxy/?url=https://content.instructables.com/FES/45CU/IKVFU89L/FES45CUIKVFU89L.jpg&filename=33C.jpg)
![33D.jpg](/proxy/?url=https://content.instructables.com/FE7/OJL3/IKVFU89N/FE7OJL3IKVFU89N.jpg&filename=33D.jpg)
![33E.jpg](/proxy/?url=https://content.instructables.com/FTK/XLJP/IKVFU8AL/FTKXLJPIKVFU8AL.jpg&filename=33E.jpg)
![33G.jpg](/proxy/?url=https://content.instructables.com/FSS/PR4U/IKVFU8F6/FSSPR4UIKVFU8F6.jpg&filename=33G.jpg)
Place the Arduino anywhere, on the bottom of the box.
Mark both the Arduino's mounting holes and make another mark just outside the edge of the board adjacent to each of the mounting holes. Basically, you are making two holes to zip tie the Arduino board to the plastic box.
Drill all of these marks.
Use the holes to zip tie the Arduino to the inside of the box.
Like usual, trim away any excess zip tie tails.
Plug in the Wires
![34A.jpg](/proxy/?url=https://content.instructables.com/FJJ/JWQ0/IKZSC8IL/FJJJWQ0IKZSC8IL.jpg&filename=34A.jpg)
![34B.jpg](/proxy/?url=https://content.instructables.com/FWW/YTBZ/IKZSC8JL/FWWYTBZIKZSC8JL.jpg&filename=34B.jpg)
![34C.jpg](/proxy/?url=https://content.instructables.com/F6D/CWF3/IKZSC8JM/F6DCWF3IKZSC8JM.jpg&filename=34C.jpg)
![34D.jpg](/proxy/?url=https://content.instructables.com/FCW/6C4E/IKZSC8KN/FCW6C4EIKZSC8KN.jpg&filename=34D.jpg)
Now it is time to finally connect everything together.
Plug the 6V red wires into the servo motor's socket that corresponds to its red wire.
Plug the ground wires into the corresponding black wire socket.
Connect a 6" green solid core wire to the socket that aligns with the white wire.
Connect the other end of one of the green wires to Pin 6 , and the other to pin 7.
Finally, plug the 9v power plug into the Arduino's barrel jack.
Insert Batteries
![35A.jpg](/proxy/?url=https://content.instructables.com/FVT/G3F8/IKZSC8XN/FVTG3F8IKZSC8XN.jpg&filename=35A.jpg)
Insert the batteries into the battery holders.
Keep in mind that the wheels will start spinning when you do this.
Fasten the Lid
![36A.jpg](/proxy/?url=https://content.instructables.com/FGJ/O9ZL/IKZSC9AK/FGJO9ZLIKZSC9AK.jpg&filename=36A.jpg)
Put the lid on and fasten it shut.
You should now have a very simple robot platform that goes front, back, left and right.
We will expand further upon this in the coming lessons.
Troubleshooting
![37A.jpg](/proxy/?url=https://content.instructables.com/F56/IA6D/IKZSCA4K/F56IA6DIKZSCA4K.jpg&filename=37A.jpg)
If it is not working, check your wiring against the schematic.
If it still not working, re-upload the code.
If even this does not make it work, check to see if the green light on the Arduino is on. If it is not, get new batteries.
If it is mostly working, but not coming to a complete stop between movements, then you need to adjust the trim. In other words, the zero point on the motor is not configured perfectly, so there will never be a neutral position that will pause it.
To fix this, fine the little screw terminal in the back of the servo and very gently tweak it until the motor stops spinning (while in its paused state). This may take a moment to get just perfect.
In the next instructable in the series we will be attaching a servo-adjustable phone holder.