Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
worldmags<br />
TABLE 1. Bill of Materials that I used for assembling the<br />
SunBot II project. You may substitute parts as necessary.<br />
The VEX quadrature optical encoders are optional <strong>and</strong> will<br />
be used in a future article to calibrate the stepper motor<br />
comm<strong>and</strong>s to azimuth <strong>and</strong> elevation positions.<br />
ITEM QTY DESCRIPTION SOURCE<br />
1 1 VEX microcontroller<br />
Innovation First, Inc.<br />
www.vexforum.com<br />
2 1 12 volt SLA battery<br />
RadioShack<br />
www.radioshack.com<br />
3 2<br />
SparkFun EasyDriver<br />
stepper controllers<br />
SparkFun<br />
www.sparkfun.com<br />
4 1 Wire-wrap cable<br />
RadioShack<br />
www.radioshack.com<br />
5 1<br />
Package of<br />
jumper cables<br />
SparkFun<br />
www.sparkfun.com<br />
6 4 VEX limit switches<br />
Innovation First, Inc.<br />
www.vexforum.com<br />
7 2<br />
VEX quadrature<br />
optical encoders<br />
Innovation First, Inc.<br />
www.vexforum.com<br />
8 1<br />
VEX structural<br />
components<br />
Innovation First, Inc.<br />
www.vexforum.com<br />
9 1<br />
VEX 9.6 volt<br />
battery<br />
Innovation First, Inc.<br />
www.vexforum.com<br />
10 1 VEX RC transmitter<br />
Innovation First, Inc.<br />
www.vexforum.com<br />
11 1 VEX receiver<br />
Innovation First, Inc.<br />
www.vexforum.com<br />
12 2<br />
Geared stepper<br />
motors<br />
All Electronics<br />
www.allelectronics.com<br />
13 1<br />
Heavy duty 12 volt All Electronics<br />
marine solar panel www.allelectronics.com<br />
14 1<br />
Recycled tin can<br />
(cylinder)<br />
issues were probably caused by backlash from the gears<br />
<strong>and</strong> also by not detecting the hard stops accurately using<br />
the VEX limit switches.<br />
Some of these problems could be corrected by<br />
calibrating the movements, or by using a different stepper<br />
motor drive mechanism other than gears. Timing belts <strong>and</strong><br />
direct drive are possible alternatives to fix this problem. In<br />
addition, the VEX firmware needs more work to be able to<br />
track the sun correctly, once the mechanical problems have<br />
been ironed out.<br />
Wrap-Up<br />
Using simple VEX hardware with some PIC18 C<br />
firmware, precise <strong>and</strong> repeatable movements are possible<br />
for your next robotics or automation project, using the<br />
information in this article. Stepper motors need not remain<br />
a mystery to use if you build the SunBot II or similar<br />
applications. The SunBot II robot demonstrates very<br />
complicated micro-stepping used to aim a solar panel at the<br />
sun using stepper motors.<br />
In the next installment, I plan to show a PIC18 C<br />
application that I actually used to move the solar panel, <strong>and</strong><br />
some issues that I encountered with it. I will also cover<br />
using the quadrature optical encoders <strong>and</strong> limit switches,<br />
<strong>and</strong> calibrating the stepper motors which you will need to<br />
start tracking the sun with your own SunBot II.<br />
Until next time, happy stepping! SV<br />
Robot Brains<br />
ARC32:<br />
• Robotics controller<br />
• Built in 32 servo controller<br />
• SSC32 compatible firmware<br />
• SPI, I2C, 2 UARTS, 16 A/D<br />
• Program in C, BASIC or ASM<br />
• Control from a PC USB<br />
• Extensive code libraries<br />
Only .............................$99.95<br />
Advance Motor Control<br />
RoboClaw 2X25Amp:<br />
• Quadrature Encoder Support<br />
• Regenerative Breaking<br />
• High Speed Direction Change<br />
• 5V BEC Built In<br />
• Battery Level Monitoring<br />
• Hardware Optical Decoder<br />
• Thermal Protection<br />
• Serial, R/C or Analog Control<br />
• Easy to Use<br />
Starting at .................$59.95<br />
www.basicmicro.com<br />
(800) 535-9161<br />
SERVO 12.2010 65<br />
worldmags