Let me backup a little to what lead me to my original post.
I have two adafruit TTL cameras, LCD, Data shield and a few I2C sensors on a mega.
I'm using Arduino IDE 1.0.5
I've tested each camera by themselves and they work. When I attempt to connect both to the mega and run the following code I get.
01 Camera Found:
02 Camera Found:
Failed to get 01 version
--------02 Cam---------
VC0703 1.00
Ctrl infr exist
User-defined sensor
525
Init end
#include <Adafruit_VC0706.h>
#include <SoftwareSerial.h>
//Weather proof goes by the following
//Green RX
//White is TX
SoftwareSerial cameraconnection_01 = SoftwareSerial(50, 15);
Adafruit_VC0706 cam_01 = Adafruit_VC0706(&cameraconnection_01);
SoftwareSerial cameraconnection_02 = SoftwareSerial(51, 17);
Adafruit_VC0706 cam_02 = Adafruit_VC0706(&cameraconnection_02);
void setup() {
Serial.begin(9600);
// Try to locate the camera
if (cam_01.begin()) {
Serial.println("01 Camera Found:");
} else {
Serial.println("No 01 camera found?");
}
if (cam_02.begin()) {
Serial.println("02 Camera Found:");
} else {
Serial.println("No 02 camera found?");
}
// Print out the camera version information
char *reply = cam_01.getVersion();
if (reply == 0) {
Serial.println("Failed to get 01 version");
} else {
Serial.println("-------01 Cam----------");
Serial.print(reply);
Serial.println("-----------------");
}
// Print out the camera version information
reply = cam_02.getVersion();
if (reply == 0) {
Serial.println("Failed to get 02 version");
} else {
Serial.println("--------02 Cam---------");
Serial.print(reply);
Serial.println("-----------------");
}
}
void loop() {
}
At this point, I was advised SoftwareSerial "If using multiple software serial ports, only one can receive data at a time." or 'able to communicate'.
So I tried AltSoftSerial as I noted in my first post.