... Program 31
The EPIC Programming Board Software 33
Parts List 35
Chapter 5. Using DOS to Code, Compile, and Program 37
Compile 39
Programming the PIC Chip 43
The EPIC Programming Board Software ...
(EPIC) and a programming carrier board (hardware). The EPIC software
package has two executable files, one for DOS and another version of the soft-
ware for Windows.
I...
... wink.bas
The compiler reads the text file and compiles two additional files, an .asm
(assembly language) and a .hex (hexadecimal) file.
The
wink.asm file is the assembly language equivalent to the ... select the
Program option from the Run menu. An alternative to using the menu option
is to press the Ctrl and P buttons on the keyboard. The software is then...
... connect the EPIC programming board to the computer, there
should not be any microcontroller installed onto the board. If you have an ac
adapter for the EPIC programmer board, plug it into the board. ... needed to test the PICmicro is given in Chap. 6.
If you ha
ve successfully written, compiled, and uploaded the code into the
PICmicro chip using CodeDesigner
,
then...
... command to communicate and output mes-
sages to the LCD display.
The PicBasic and PicBasic Pro compilers can send and receive serial
information at 30 0, 1200, 2400, and 9600 Bd. Data are sent as ... breadboard area.
gram, with the exception that we are only using one LED this time. The fol-
lowing are a small PicBasic program and PicBasic Pro program to blink an
LED on...
... rules to guide the robot in task performance.
Behavior-based programs create an “artificial” behavior in the robot that caus-
es it to reflectively (automatically) perform the task required. Behaviors ... allow the robot
to travel and move around the house in a random manner. The idea is that
while traveling in a haphazard manner, it will eventually make its way
thr...
... file away these tabs so that the servomotor
can be mounted flush against the bracket (see Fig. 8. 23) . Next mount the ser-
vomotor to the U bracket, using 6 -32 machine screws and nuts. Attach the ...
Building a Walter Tortoise
We can imitate most functions in Walter’s famous tortoise. My adaptation of
Walter’s tortoise is shown in Fig. 8.1. To fabricate the chassis,...
... also vary from one another and then are not as closely matched.
Once you have a pair of CdS cells to use, they need to be attached to the
robot. I soldered the CdS cells and capacitors to a ... first look at how the standard program functions.
Fudge Factor
The variable RV (range value) is the fudge factor. At the beginning of the pro-
gram the variable RV is ass...
... 9.9).
The second gearbox motor is secured to the other side in a similar manner.
Back wheels
The shaft diameter of the gearbox motor is a little too small to make a good
friction fit to the ... vary so greatly, it’s a good
idea to buy a few more than you need and measure the resistances to find a
pair whose resistances are close
.
There are a few w
ays...
... the front and back legs.
Mounting the servomotors
The back servomotors are attached to the aluminum body using plastic 6 -32
machine screws and nuts. The reason I used plastic screws is that ... microcontroller as well as
the servomotors. The battery pack is a 16-V unit using four AA batteries.
The microcontroller circuit may also be built on a small printed-circui...
... less than the interface board containing 10 relays. The advantage of the
relay board is that the miniature power relays have enough current capacity
to directly control small dc motors and other ... consideration was the type of output that the
interface board should provide. Here was a tough choice. I had the option to
make the output an active high signal that the...