back of CMU
camera showing electrical
Controlling the CMU Camera
I use the PICBASIC PRO compiler from microEngineering Labs to write
my controller firmware. The PIC program controls and interrogates the
CMU-01 through a 38,400 baud TTL serial link. In the beginning of the
program, the PIC outputs a text message to the LCD and sends multiple
resets to the camera to prepare it for use.
LCDOut “C-Bot Tracker”
For x = 0 TO 4
SerOut2 tx, 6, [“RS”, 13]
Next, we send a DM command which adds a small character delay so we
don’t over-run our PIC serial communications.
SerOut2 tx, 6, [“DM 3”, 13]
The following code blinks the CMU-01’s green LED. The blinking LED
assures the user that proper communication is established between the CMU
camera and the PIC.
50 SERVO 05.2009
LCDOut “Blink Track LED”
For x = 0 TO 7
SerOut2 tx, 6, [“L1 1”, 13]
SerOut2 tx, 6, [“L1 2”, 13]