|
| ||
The Coat Hanger Walker
![]() FIGURE 1: What our finished coat hanger walker will look like. Cute, ain’t it? The persnickety among you will be quick to point out that by many definitions of a robot, this ain’t no stinkin’ robot. It doesn’t gather, process, and respond to feedback of any kind. It’s really a walking machine rather than a proper robot. We still think it's a cool walker, because of the reasons bulleted above, and because it teaches many of the fundamentals in construction and electronics that can be used in other bot building projects. You also end up with a nifty little “monitor pet” that'll merrily motor across your desk and impress all your geek friends (especially when you tell them: “I made it out of a coat hanger and some junked electronics!” We’re not going to lie to you. Although this critter has relatively few parts, the Bicore control circuit can be a little harrowing to solder (you’re up for a challenge, right?). The dual inline package (DIP) IC socket that the control circuit plugs into is very small and the pins are closely populated. Soldering these pins will take some patient effort. That’s the bad news. The good news is that DIP IC sockets cost about 10 cents a pop, so you can mess up quite a few in practice and it’s no big deal. Hopefully, you’ll have logged plenty of soldering practice time by now and be ready for some big boy/big girl soldering. If not, go ahead and read through this entire project, order any parts you need, and then do some soldering practice sessions while you wait for the components to arrive. Gathering the Parts This project requires some materials and parts you might already have lying around the house and some components you’ll likely need to purchase at your local electronics store, an online retailer, or some other source. Our pals over at Solarbotics have kindly put together a Parts Bundle of most everything you need for this project. It does not include the 40-tooth gear. We got ours from Jameco. The Parts List The Coat Hanger Walker requires the following parts:
![]() FIGURE 2: All the parts you’ll need to build your first robo-critter. The Tools and Supplies List and supplies recommended) Freeforming the Bicore Control Circuit The first thing we’ll want to do in building our robot is to assemble its brain. The Coat Hanger Walker makes use of the ingenious BEAM Bicore circuit. It’s prefixed bi because it has two states, or nodes, and core because, well, it’s the central part of the robot’s nervous net. Our Bicore uses the 74HCT240 integrated circuit. This chip is an inverting octal buffer. That’s just a fancy way of saying that it is a chip with eight logic gates that invert the signals going into them. Whatever goes in each gate gets inverted, so a low signal becomes a high signal and a high signal becomes a low one. By combining the three gates on one side and three gates on the other (by soldering their pins together), we end up with two “teams” inverting gates that “buffer” the signal and make it more powerful. Bicore! The signal passing back and forth between the two nodes sends high and low (or “on” and “off”) pulses to our servo motor. The result is back and forth movement of the motor shaft, which is transferred to our gears to create a reciprocating walking motion. By the way, if you’re wondering, the remaining two gates are used as sort of the controller for the two three-gate teams. Breadboarding the Bicore
Before we actually heat up our soldering iron and start dripping molten metal all over components, we want to breadboard our circuit to make sure that all the components are working properly and that we have a sound design for our Bicore circuit (If you don’t know how to breadboard, read the “Thumbnail Guide to Breadboards” later in this project doc before continuing).
You’ll want to hook up the wires (from your breadboard jumper kit), the resistor (whichever value you decide to start with), and the two .22µF capacitors to the following tie points on the breadboard. For these numbers, assume that the pin in the upper-left corner of the IC is pin 1 (the pin to the left of the little dimple). Then it’s pins 2–10 on the left side, straight across (from 10) to 11, and then up to pin 20. Connect jumper wires to the follow tie points: The last thing you’ll need to do is to connect the positive (+) power wire from pin 20 to a positive tie point on the power bus, and ground (-) wires from pin 1 to a negative tie point and pin 10 to a negative tie point. Make sure both of these pins (1 and 10) go to negative.
Figure 3 shows what the breadboard should look like when you’ve hooked up all of the pins on the IC. (In this photo, the motor is not yet connected.)
![]() FIGURE 3: The basic breadboard set-up. Note that motors are not shown and the top and bottom breadboard busses are not connected. Put hook-up wire, the resistor, and the two .22µF capacitors in the tie holes as shown. Note: Make sure the top and bottom power bus strips on your breadboard are connected together (not shown here, but see Figure 13). At this point, your breadboarded Bicore circuit is all hooked up and ready for juice (battery power) and something to drive (your motor). Before we hook up these final components, you might need to do a little work on your motor to get it ready for reciprocating (back and forth) motion (see Hacking a Hobby Servo Motor below). Make sure the battery pack that you’re going to use to power the breadboard is not connected to the breadboard power bus before connecting positive and ground (negative) wires to the bus. Hacking a Hobby Servo Motor ![]() FIGURE 4: (see right) The steps to removing the control circuit from a hobby servo motor. If you got your servo motor from Solarbotics (Part #GM4), it already has the control electronics removed. If not, you’ll need to remove them yourself. Servo motors have built-in control circuitry. We don’t want this control on our servo—we want to control its movement with our Bicore chip. Removing the control PCB is simply a matter of opening the case, removing the board, and resoldering the positive and negative wires directly to the motor (see Figure 4).
If you did get your motor from Solarbotics, there are no electronics to remove, but the motor may have been configured for continuous rotation. We want reciprocating back and forth motion. Usually, servo motors have a final gear (as the drive gear is called) with a mechanical pin on it that prevents full rotation. The Solarbotics servo has a final gear with no stop pin, but the “servo horn kit” that comes with the motor includes the original final gear with the stop on it. To re-install this gear, all you have to do is Before putting the case back together, make sure the gears are well seated and meshed. Also, make sure the plastic stop on the gear is facing toward the wired end of the servo case. When you have a servo motor with a mechanical stop final gear in it and no control electronics, you’re ready to hook it up to your breadboarded circuit to see if it works. Plug the red (+) wire into pin 9 and the black (-) wire into pin 12. Connect 6 volts (V) of power to your breadboard’s positive and negative terminals. If you’re using the two AAA battery holders for the robot, connect them in series as seen in Figure 5. If, when you power up the motor, you see the motor shaft twisting back and forth, congratulations! You’ve just built your first robot control circuit. If nothing happens, go back and check each connection on your breadboard to make sure that they’re wired correctly. Look at each hook-up closely, as it’s easy to sometimes put a wire or component lead in the wrong tie point on the board. If it still isn’t working, try different resistor values. On our robot, we got good action on resistors in the 3.2 to 4.2 MΩ range. If your circuit still isn’t working, it’s time to get out your digital multi-meter and check all of your components (battery packs, resistors, capacitors, and switch) to make sure that everything’s working properly. Consult the manual that came with your DMM to find out how to properly test each component type. To test the motor, touch its wires directly to the battery pack’s wires (positive to positive and negative to negative, of course). If you do all this, your circuit should be working properly. There aren’t that many parts that can fail here. Creating a Breadboard Power Supply
![]() FIGURE 5: The proper way of hooking up your battery packs (in series) to deliver 6V of power to your circuit. Add a switch to the circuit, if you’d like. Soldering Up the Circuit Now it’s time to heat up your soldering iron, take a few deep breaths, and begin soldering the pins of your IC socket together, and then the discreet components onto it. Here are the steps involved: 1. Get your 20-pin DIP socket and turn it over. Using your needlenose pliers, bend over pins 1 and 19 so that they are as close to touching each other as possible. Don’t hold metal parts directly. Use needlenose pliers or other tools. Next, bend pins 2, 5, 7, 9, and 10 outward. Bend pins 6 and 8 inward. Try to keep all the pins as straight and on the same level as possible. Now bend outward pins 12, 14, 16, 17, and 20. Then bend inward pins 11, 13, 15, and 18. When you’re finished, the chip should look similar to the one shown in Figure 6.
FIGURE 7: (below) Pins 1 and 19 (the enable pins) and pins 3 and 4 connected to each other as shown.
![]() FIGURE 9: Pin 10 (the negative, ground pin) connected via insulated wire to the enable pins 1/19. ![]() ![]() FIGURE 10: Pins 5, 7, and 9 connected together, and then pins 12, 14, and 16.
With plenty of lead on the resistor, we can bend and twist it during the final assembly phase to make sure it’s out of the way of other components (as shown in Figure 11).
![]() FIGURE 11: Our two capacitors soldered in place (one across pins 2 and 3 and one across pins 17 and 18) and our resistor installed (from pins 2 to 17). 11. Flip the IC socket over and carefully plug the 74HCT240 chip into the soldered-up IC socket (see Figure 12). If it has trouble going in, carefully inspect your socket assembly to make sure that you didn’t melt any of the plastic package, and therefore disturb the sockets where the IC pins plug in. If they are misaligned, we hate to break it to you, but you might have to get another socket and do the whole thing over again. We told you to be careful! ![]() FIGURE 12: The completed soldered up IC socket with the 74HCT240 plugged in. That’s it! If all went well, you should have aworking Bicore control circuit. All you have to do now is connect the power and the motor to the appropriate pins. We’ll hold off on doing that though until we’ve built the rest of our robo-critter. Go ahead and take a break, indulge in your junk food of choice, play a round of Enter the Matrix, run a lap around the house, or otherwise cool out for a bit. I don’t know about you, but these solder fumes are makin' me feel kinda funny. Thumbnail Guide to Breadboards
A breadboard is a simple, inexpensive device (available at any electronics store) for temporarily hooking up and testing an electronics circuit before you solder it together. By using a breadboard, you’re checking to make sure that the circuit is designed properly and that all of your components are working as specified. A breadboard is usually comprised of a metal base plate with a white nylon block mounted on it that’s covered with a grid of holes (known as tie points or wire receiving sockets). There are usually three binding posts also on the board, which are screw-down connectors for bringing power to the board.
To make life easier down on the breadboard, electronics stores sell jumper wire kits with different lengths of 22-guage hook-up wire cut to appropriate lengths that correspond to the tie-points on the board. You’ll want to get one of these kits. You’ll also need to power your board. For this, all you need to do is hook up the battery pack of the correct voltage needed to power the circuit you’re building (for instance, in the Bicore circuit for this project, we need 6V of power). To make things even more convenient, the tops of the binding posts also accept banana plugs (also available at electronics shops). You can solder sets of these to various battery packs (6V, AAA, 9V, and so forth) and have these available for your breadboard power source. Then all you need to do is plug the banana plugs into the tops of the binding posts to power your circuit. (Breadboards? Bananas? Is anyone else getting hungry?) If you want to get really fancy, you can hook up a power switch to the board so that you can turn the power on and off without having to disconnect the battery. ![]() FIGURE 13: Anatomy of a breadboard.
Besides the breadboard itself, the power supply, and the jumper kit, you’ll need two other tools for effective breadboard work. A pair of needlenose pliers are essential for getting those pesky jumper wires onto and off of the board, especially in tight spaces. You’ll also want an IC extractor (or a chip puller). This is a funny-looking pair of tweezers that is used to safely remove IC chips from a breadboard (or an IC socket) without damaging their delicate pins. (And trust us, without a puller, this is very easy to do.) Go to Part II. Go to Street Tech. Go to Robot Book Companion Site. |
| |