<< return to Pixycam.com

User Tools

Site Tools


wiki:v1:building_the_pan_tilt_2

Assembling the pan/tilt Mechanism

When combined with Pixy, the pan/tilt mechanism makes a fun demo — a good “hello world” for Pixy (no Arduino required). The pan/tilt mechanism comes in a kit and requires some assembly.

Note: the servos in the pictures will look different than the ones in your kit. They are functionally identical, so please don't worry!

Pixy Modification

For these servos to work properly, you will need to make a small modification to Pixy. Unfortunately, it requires a soldering iron and a bit of solder, but the modification is easy and doesn't require much soldering skill.

The new servos are more efficient and require less power (which is good), but they are more sensitive to voltage drops. The current-limiting resistors (the big ones R18, R20) need to be bypassed. If they are not bypassed, the pan/tilt motion may be erratic (which is bad).

Locate C25 and C26 on the back side of Pixy toward the right edge of the board. We need to short the two inner pads of C25 and C26:

Do this by placing your soldering iron and heating up the two inner pads of C25 and C26 while adding solder. The solder should easily bridge once enough solder has been added:

The complete modification looks like this:

OK, once that's done, you're ready for the…

Pan/Tilt Assembly

You will need the following (in addition to a Pixy and a pan/tilt kit):

A small phillips screwdriver
43bf2c08420b60aee7e6c884858a9ab9fc270f98.jpg

needle-nose pliers
039e853b54915025186bb1c5f040ad294896622e.jpg

small wire cutters
53d4f497e925e9cea4b191e5b6b689062bbdb314.jpg

Fastener Types

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.

28e5b30636f95882f6bd662ea1e3e5da85c8506b.jpg

1 - Find one of the long servo horns inside one of the servo baggies, and clip it on the 2nd hole from the end.

You might notice that the later photos show the servo horn with 4.5 holes. Don't freak out - when properly clipped, your horn should have 2.5 holes, like in this photo:

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:

72c6c2d76708f8239b42c79778a7c4d12a8fbe29.jpg

and then all the way to the left:

a9cc565cb9bb0cec3813043bcfe0b1318dad7594.jpg

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!

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.)

7ee78c9b22fa78f4685f9b4d45850229fbb9665c.jpg

4 - Remove the paper backing on the pan/tilt body (the smaller of the two acrylic parts).

644943180a43e0c0efdb5d87c459e2beefff17d3.jpg

5 - Fit one of the servo mounting tab into the slot on the pan/tilt body.

0070e9047a0395a8c339360577cb5c08a3294709.jpg

6 - Flip the body over and thread a cable tie through the cable tie slots in the body.

29ab6f0ee57da9891f23e165eb5366e7708b085d.jpg

7 - Thread another cable tie through the other cable tie slots in the body.

7f466f2a26c54d67fb3c9cee9b2c7d92e7d1bdfc.jpg

8 - Tighten both cable ties by using pliers. It requires quite a bit of force to fully tighten!

eb5b2ecc8d54f15276b2d530bd3e834741c47c0a.jpg

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.

7542d282065175e2b4ac6b6b074f8dc611f1469c.jpg
d577ac16aa27420903e032cae30aacf1edd45076.jpg

10 - Grab two of the long tapping fasteners. (Refer to the fastener picture above.) Use these fasteners to secure the 2nd servo.

(make sure not to overtighten! Snug is fine)

6cdb78a37d15d6faff982a645505171fd2c02ad2.jpg

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.

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.

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.

ed593ed69f6cd44811efb9f665e138552912d3e2.jpg
41478f0f7f8ce6b53408a0d53c153874ae999e26.jpg

Nice. Now put this assembly aside for now.

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.)

282c0833db6b46305afc895c5988fc63a5e50cad.jpg

13 - Take two nylon bushings and press them into the non-threaded holes in these brackets.

6894d5cd77002c459abbd0dc97863fc042aa7e19.jpg

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.

81d8f8f447045853c6293e782632d29d6d3369fe.jpg

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.)

ee327fef4d0d53c0514553fe85f5ef29f218517e.jpg

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.

36ea369f353a56dac2ac4881cfc3331c4d80730c.jpg

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.

e4e5ca4301af4298bab3d61998ecfa597e1c1f74.jpg

18 - Verify that there is enough slack in the cables to allow Pixy to tilt fully forward and backward.

96122e36264b558591401af71b92aae4d6fdf1c7.jpg
0a1f33f79710c2c1486a321d413b0f08f73b761c.jpg

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.

764cfab697392ced705bd631057e74402478eeed.jpg

20 - Remove the paper backing from both sides of the pan/tilt base.

b7c62eed53a6cbc598610c6ce68c298b2209a974.jpg

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.)

It's a bit hard to tell from the photos below, but the shoulder (sticky-outy-bit) of the servo horn should be facing away from the pan/tilt base - not going through the center hole of the base. The servo horn has lots of holes – rotate it until some of the larger ones line up with the holes in the pan/tilt base, then screw it in place.

8d91408c130dd5a6f44b4f7c81c5880a828972fa.jpg

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.

3b6e9f7c4f463cd001e259530d0840139d0bdb0f.jpg
e1edafb1fc1c21baf244949f1d73e39a9da289f1.jpg

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:

de0f4b819c464c52b4844762183426f201460451.jpg

and then all the way to the left:

e1e9b6ec761b2e82a63b228908f26dc0bcbad002.jpg

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.)

7259c38f09a713ba1a0be5e0d5441812b58d1e08.jpg

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.

4b3b3d2c188e37863f5974ba727d67b4022ec3ae.jpg

26 - Thread the pushrod into the bottom hole of the tilt servo horn. You need to insert the pushrod past the first bend, so that the section between the bends is in the servo horn hole.

153c5a5f245581420da565c1862b7ef38c008edd.jpg

27 - Attach the bracket to Pixy with a short 4-40 fastener.

21a1c58a43d54cc53fd6a654a7375fcc41f90a1f.jpg

You're done!

What's next? Run the pan/tilt demo!

wiki/v1/building_the_pan_tilt_2.txt · Last modified: 2018/01/10 20:30 by jfrench