Hi, i just finished a big part of my project , i can command my car with PS2 controller by Xbee Pro S2 .
This is the shema : Arduino Uno + Shield + Xbee + 2 Motors + Battery (Receiver) , Arduino Mega + Shield + Xbee + PS2 Controller .
The code work very well , and now i want to integrate a webcam camera to see the car from a far (i have to cut USB port of webcam and use TX,RX,Vcc,Gnd wires).
I think to connect camera to Arduino Uno , send data from TX and receive them on RX of Arduino Mega , then treat information with processing .
Can you help me for the code ?
I have a small idea :
byte img = Serial.read(); // On Arduino Uno
Serial.write(img); // Send data
byte img = myPort.read(); // On Arduino Mega with Processing
image(img,0,0); // Show video
I hope you will help me and thx