Assembling pantilt Mechanism

Version 26 (Rich LeGrand, 03/31/2014 03:22 pm)

1 1 Rich LeGrand
h1. Assembling pan/tilt Mechanism
2 1 Rich LeGrand
3 2 Rich LeGrand
The pan/tilt mechanism when combined with Pixy, makes a fun demo — a good “hello world” for Pixy (no Arduino required). The Pixy pan/tilt mechanism comes in a kit and requires some assembly.
4 2 Rich LeGrand
5 11 Rich LeGrand
You will need the following (in addition to a Pixy and a pan/tilt kit):
6 2 Rich LeGrand
7 3 Rich LeGrand
A small phillips screwdriver
8 3 Rich LeGrand
!{width: 15%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4409_zpsc3cbdd1e.jpg!
9 1 Rich LeGrand
10 12 Rich LeGrand
needle-nose pliers
11 3 Rich LeGrand
!{width: 15%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4439_zps05b710ee.jpg!
12 1 Rich LeGrand
13 3 Rich LeGrand
small wire cutters
14 3 Rich LeGrand
!{width: 15%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4408_zps1c3bcd31.jpg!
15 3 Rich LeGrand
16 19 Rich LeGrand
There are lots of different types of fasteners included in this kit.  Refer to the picture below to help you find which fastener we are referring to in these instructions.
17 19 Rich LeGrand
18 20 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/Image151_zps1ea7632d.jpg!
19 19 Rich LeGrand
 
20 5 Rich LeGrand
1. Find one of the long servo horns inside one of the servo baggies, and clip it on the 3rd hole from the end.
21 1 Rich LeGrand
22 5 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4410_zps82449577.jpg!
23 5 Rich LeGrand
24 5 Rich LeGrand
2. Put the servo horn on the servo and check both ends of travel.  You can do this by moving the horn all the way to the right:
25 5 Rich LeGrand
26 5 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4416_zpsd12a3e33.jpg!
27 5 Rich LeGrand
28 5 Rich LeGrand
and then all the way to the left:
29 5 Rich LeGrand
30 5 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4413_zps9798e72c.jpg!
31 5 Rich LeGrand
32 18 Rich LeGrand
and adjusting the mounting angle of the horn such that the center of travel has the servo horn pointing downwards.  Note, it's OK to move the servo in this way even though it requires a fair amount of force. And it makes a cool sound!
33 5 Rich LeGrand
34 22 Rich LeGrand
3. Find one of the *servo horn fasteners* in the one of the servo baggies. (Refer to the fastener picture above.)  Screw the servo horn tightly. (In the picture below, the servo is shown with the servo horn pointing downwards, which should be roughly the center of travel.)  
35 5 Rich LeGrand
36 22 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_45331_zps68538e8e.jpg!
37 5 Rich LeGrand
38 6 Rich LeGrand
4. Remove the paper backing on the pan/tilt body (the smaller of the two acrylic parts).
39 5 Rich LeGrand
40 6 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4407_zps35303bd8.jpg!
41 6 Rich LeGrand
 
42 18 Rich LeGrand
5. Fit one of the servo mounting tab into the slot on the pan/tilt body.
43 5 Rich LeGrand
44 6 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4429_zps8269c65c.jpg!   
45 1 Rich LeGrand
46 6 Rich LeGrand
6. Flip the body over and thread a cable tie through the cable tie slots in the body.
47 1 Rich LeGrand
48 6 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4432_zpsd73f12b3.jpg!
49 6 Rich LeGrand
50 6 Rich LeGrand
7. Thread another cable tie through the other cable tie slots in the body. 
51 6 Rich LeGrand
52 6 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4437_zps6dac410d.jpg!
53 6 Rich LeGrand
54 6 Rich LeGrand
8. Tighten both cable ties by using pliers.  It requires quite a bit of force to fully tighten!
55 6 Rich LeGrand
56 6 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4443_zpsce8af564.jpg!
57 6 Rich LeGrand
58 18 Rich LeGrand
9. Take the 2nd servo and place in the other hole in the body as shown in the picture. Note that the wires for the servos are pointing in opposite directions.
59 6 Rich LeGrand
60 6 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4447_zps01732746.jpg!
61 18 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4455_zpsc33acf79.jpg!
62 6 Rich LeGrand
63 22 Rich LeGrand
10. Grab two of the *long 4-40 fasteners*. (Refer to the fastener picture above.) Use these fasteners secure the 2nd servo. 
64 1 Rich LeGrand
65 6 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4452_zps04360faf.jpg!
66 6 Rich LeGrand
67 26 Rich LeGrand
11. Take all five right-angle brackets out and examine them.  Notice that three of them have *two* threaded holes and two of them have *one* threaded hole. We'll call these two-threaded and one-threaded brackets, respectively.  Go ahead and separate these two bracket types to make things easier.   
68 6 Rich LeGrand
69 6 Rich LeGrand
Grab a two-threaded bracket.  If you look really closely, you'll notice that one of its legs is ever-so-slightly longer than the other.  Say what?  It's true--- I don't know why.  But you can best see this by looking at the holes in the bracket.  One of the holes in centered in its leg and the other hole is not centered, because its leg is slightly longer.  Weird. 
70 1 Rich LeGrand
71 22 Rich LeGrand
Take two *long 4-40 fasteners* and attach two two-threaded brackets to the body as shown in the pictures below. *Attach them such that the short legs are touching the body and the long legs are pointing up.* 
72 16 Rich LeGrand
73 6 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4459_zpsb9d2579b.jpg!
74 6 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4462_zpsc4fd1782.jpg!
75 6 Rich LeGrand
76 7 Rich LeGrand
Nice. Now put this assembly aside for now. 
77 1 Rich LeGrand
78 22 Rich LeGrand
12. Take your Pixy and attach two one-threaded brackets to it as shown in the picture below.  Use two *short 4-40 fasteners* to do this. (Refer to the fastener picture above.)
79 7 Rich LeGrand
80 7 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4397_zps5f38de0e.jpg!
81 7 Rich LeGrand
82 7 Rich LeGrand
13. Take two nylon bushings and press them into the non-threaded holes in these brackets.
83 7 Rich LeGrand
84 7 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4403_zpsd327e530.jpg!
85 7 Rich LeGrand
86 24 Rich LeGrand
14. Slide the Pixy into the body assembly.  Use two *long 4-40 fasteners* and insert them from the outside as shown in the picture. The 4-40 fasteners will form an axle for Pixy to use for tilting. Make sure that the brackets are mounted squarely--- this can cause binding. Tilt Pixy back and forth a couple times and make some adjustments if you feel some binding. 
87 7 Rich LeGrand
88 24 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_46681_zpsc9231b72.jpg!
89 7 Rich LeGrand
90 18 Rich LeGrand
15. Plug in the servo wires into the servo connector on Pixy.  (The servo connector is the little 6-pin connector labeled J3.)  The pan axis goes on the left and the tilt axis goes on the right, and the yellow wires on both connectors face up.  (Which is the tilt axis?  It's the one with the servo horn.)     
91 8 Rich LeGrand
92 8 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4467_zps1d3003b9.jpg!
93 8 Rich LeGrand
94 8 Rich LeGrand
16. Use a cable tie to secure the wires to the body as shown.  String the cable tie through the single slot in the body and around the outside.  Do not tighten the cable tie fully yet.  
95 8 Rich LeGrand
96 8 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4468_zpsb5c8b237.jpg!
97 8 Rich LeGrand
98 8 Rich LeGrand
17. Use the slots on the other side of the body to thread another cable tie and secure the wires on the other side as shown.  The wires are longer than they need to be, so it requires some artistic arranging.  Do not tighten this cable tie fully either.  
99 8 Rich LeGrand
100 8 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4469_zps29cb689a.jpg!
101 8 Rich LeGrand
102 8 Rich LeGrand
18. Verify that there is enough slack in the cables to allow Pixy to tilt fully forward and backward.  
103 8 Rich LeGrand
104 8 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4470_zps41e3d896.jpg!
105 1 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4471_zps3dc53c43.jpg!
106 1 Rich LeGrand
107 8 Rich LeGrand
19. When you're happy with the cable situation, make the ties snug, but not too tight (to save the wires) then flip over the assembly and clip the ends of the cable ties.  
108 10 Rich LeGrand
109 8 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4474_zpsb45107a5.jpg!
110 18 Rich LeGrand
111 8 Rich LeGrand
20. Remove the paper backing from both sides of the pan/tilt base.
112 1 Rich LeGrand
113 1 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4478_zpsa37b9447.jpg!
114 18 Rich LeGrand
115 22 Rich LeGrand
21. Grab a circular servo horn from one of the servo baggies and attach it to the pan/tilt base with two *short tapping fasteners*.  (Refer to the fastener picture above.) The servo horn has lots of holes -- rotate the servo horn until the holes on the servo horn line up with the holes in the pan/tilt base.  
116 1 Rich LeGrand
117 10 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4481_zps0d5ba395.jpg!
118 10 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4486_zpsc897dea7.jpg!
119 1 Rich LeGrand
120 18 Rich LeGrand
22. Attach rubber feet to the bottom of the base as shown.  There are little holes in the pan/tilt base that are there to help you position the rubber feet. 
121 1 Rich LeGrand
122 1 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4490_zps28199887.jpg!
123 10 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4491_zps0f3cbfd5.jpg!
124 10 Rich LeGrand
125 1 Rich LeGrand
23. Place the body assembly on the base assembly by attaching the horn to the pan servo. (The pan servo is the servo without the servo horn sticking out of the bottom.) Attach the servo horn such that the center of travel has the wide part of the base facing forward (where the camera lens is pointing).  You can do this by moving the horn all the way to the right:
126 18 Rich LeGrand
127 10 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4497_zps8c02a77b.jpg!
128 10 Rich LeGrand
129 10 Rich LeGrand
and then all the way to the left:
130 10 Rich LeGrand
131 1 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4493_zps065cc43e.jpg!
132 1 Rich LeGrand
133 22 Rich LeGrand
24. Find one of the *servo horn fasteners* in one of the servo baggies and attach the base to the body.  (Here, the wide part of the base is facing forward, which should be close to the center of travel.) 
134 10 Rich LeGrand
135 23 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_45381_zpsd1f21121.jpg!
136 10 Rich LeGrand
137 22 Rich LeGrand
25. Place a *short 4-40 fastener* through the eyelet of the wire pushrod and attach it to a two-threaded bracket, *but don't tighten fully.*  The pushrod needs to be able to pivot around the screw.  Attach the pushrod and fastener to the longer leg of the bracket.
138 10 Rich LeGrand
139 10 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4505_zps9d501d8f.jpg! 
140 10 Rich LeGrand
141 18 Rich LeGrand
26. Thread the pushrod into the bottom hole of the tilt servo horn.  You need to insert the pushrod past the second bend. 
142 10 Rich LeGrand
143 10 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4508_zps870a89e7.jpg! 
144 10 Rich LeGrand
145 22 Rich LeGrand
27. Attach the bracket to Pixy with a *short 4-40 fastener*. 
146 10 Rich LeGrand
147 10 Rich LeGrand
!{width: 45%}http://i74.photobucket.com/albums/i241/cmucam/IMG_4514_zps3723f278.jpg!
148 10 Rich LeGrand
149 1 Rich LeGrand
You're done!
150 11 Rich LeGrand
151 15 Rich LeGrand
What's next?  [[Run the Pan/tilt Demo|Run the pan/tilt demo]]!
152 10 Rich LeGrand
  
153 8 Rich LeGrand
154 3 Rich LeGrand
 
155 5 Rich LeGrand
156 6 Rich LeGrand
  
157 2 Rich LeGrand
158 2 Rich LeGrand