Академический Документы
Профессиональный Документы
Культура Документы
www.seattlerobotics.org/encoder/sep97/motors.html
1/5
07/04/13
Now you can mount the motor into your project, or attach a slide to it. I like to use a 0.3 inch piece of 1/8" styrene as the part that slides up and down the screw. Once again I just use the screw to tap it, and I usually just glue the outside of the piece to whatever it is Im trying to move. Or I press the small styrene piece into a larger brass tube using a little glue to secure it. Piece of cake.
Now all you need to do is determine where the slide is on the screw and youve got it made. True gear heads use optical encoders, I like to use a switch. With a switch its easy to determine where the beginning of the slide is, and I can just send a pulse to the motor and get the assembly to move to approximately where I want it. It seems like Im forgetting to tell you something
www.seattlerobotics.org/encoder/sep97/motors.html
2/5
07/04/13
THE SPRING
Its pretty easy to make a spring. Using a 6" length of 1/16" square brass tube, insert one end of the steel wire into the tube, and crimp the tube shut, thus securing the wire. you are now free to wind the wire tightly around the tube, leaving no gaps between the coils. After you have wound wire down about an inch of the tube, snip the excess wire off at the top and the bottom of the spring using an old pair of wire cutters since the steel wire tends to nick the edge of the cutters. The wire will recoil slightly, making a pretty cool little spring about 0.1" across with bends in it that form hexagonal coils. Now just pull the two ends of the coil apart and stretch the wound wire until the distance between the coils is a little less than 0.1", and the spring is unable to pull back to it's original shape. Snip off a smaller spring about 0.4" long.
INSULATION
0.4 inches of 1/8" Styrene. Youll learn to love this stuff.
www.seattlerobotics.org/encoder/sep97/motors.html
3/5
07/04/13
Now I glue or solder the case of the switch right below the motor and allow the slide assembly to bump into the contact switch. On my projects the slide assembly is metal and grounded. So now I can just run a 10kohm resistor from say, +5 volts to the contact rod. Now when the contact rod hits the slide assembly I get a nice TTL low for my microcontroller. The spring allows the assembly to come to a slow without binding. The assembly is now ready to start moving back out with no problems.
Your going to have to make adjustments in the tension of the spring and the position of the switch to suite your application. You might even want to eliminate the back stopper and replace it with a couple pieces of brass tube so you can make a normally closed switch. As long as you understand the basic concept of what your application requires and what you need to do to get your project to work, youre cool. After all, thats what hobby robotics is all about.
07/04/13
recommend using L293D motor controller chip. Richard Hughes (h t t p : / / m e m b e r s . a o l . c o m / r i c h 9 2 4 ) has good prices and even got me the surface-mount version. For most of my applications I use the Basic Stamp II but I know SRS Robohackers arent like the rest of us- theyre different. Here is a generic schematic with the control lines labeled.
Notice that the L293D supports two DC motors. Pin 16 is the +5 voltage for the chip, while pin 8 is the voltage for the motors. The first motor gets hooked directly to pins 3 and 6. The motor is turned on by sending a high signal to both the enable (pin 1) and one of the two direction pins, lets say pin 2, while keeping pin 7 low. To go the other direction keep the enable pin and pin 7 high while pin 2 goes low. To stop enable pin is high while both 2 and 7 are low. The same goes for the other side of the chip. When driving two or more motors I like to hook pins 2 and 15 together and pins 7 and 10. Sorry to say I dont remember what the specs are for this chip, I usually send about 6 volts through it with a 0.7-volt drop for the L293D internal transistors, and I expect a 200 to 300 milli-amps total for both motors.
www.seattlerobotics.org/encoder/sep97/motors.html
5/5