Pages: [1]   Go Down
Author Topic: Trouble with CMUcam2 + Arduino  (Read 770 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
#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!
Logged

0
Offline Offline
Shannon Member
****
Karma: 206
Posts: 12070
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The CMUcam2 manual says 115200 baud is the default, not 9600
Logged

[ I won't respond to messages, use the forum please ]

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: