www.colmac.ie
31
In order to download the program to the robot, click on the
Microcontroller
button and select
Run
Live
. The Program window will indicate that it is
Accessing the PIC
chip and then that it is
Running
Live
. The program will start immediately once it is downloaded. The USB cable can then be
removed and the program rerun by pressing the small reset switch on the PCB.
The following commands and screen will be seen when using
Run Live
.
As mentioned previously, when you run this program live you may now discover one of the
following scenarios depending on how you have connected the motor polarity either at the motors
or on the PCB:
a)
The motor is actually going in reverse. In this case you simply set both M3 and M4 sliders to
the down position instead of the up in order to get forward motion.
b)
One motor is going forward and the other going in reverse. In this case you will have to
move M3 slider up and M4 down or vice versa.
EXERCISE 1
Edit the program so that your robot moves forward for 4 seconds AND then reverse for 4 seconds.
Use
Run Live
to download and run the program.