Go Down

Topic: Trouble with CMUcam2 + Arduino (Read 815 times) previous topic - next topic

Kiahpe

I'm working on a project in which I would like to use the CMUcam2 with my Arduino Duemilanove.  I cannot get it to work, and I'm wondering if someone could help me out - I'm running out of ideas, and I can't find any information on how to set it up!

I hooked up the CMUcam2 and Arduino board to a 9.6V battery. I then connected the TTL serial from the CMUcam to pins 2 and 3 on the Arduino.  Then, I ran this code:

Code: [Select]

#include <NewSoftSerial.h>

NewSoftSerial camera = NewSoftSerial(2,3);

void setup()
{
  Serial.begin(9600);
  camera.begin(9600);
}

void loop()
{
  if(camera.available())
  {
    Serial.println("Ready!");
  } else {
    Serial.println("Not Ready!");
  }
}


This is the output:
ààà àà àþNot Ready!
Not Ready!
Not Ready!
Not Ready!
Not Ready!
...

Any ideas? Thank you!

MarkT

The CMUcam2 manual says 115200 baud is the default, not 9600
[ I won't respond to messages, use the forum please ]

Kiahpe

Yes, you're right.  But I have a jumper on the CMUcam board that changes the baud rate to 9600, so that shouldn't be the issue.

Go Up