Well you can directly use the TTL serial interface (which means 0-5V interface): the RX of the cam to the TX of the arduino and the TX of the cam to the RX of the arduino. Then a ground connection and the 5V power supply and you're done.
You can also use other digital pins in place of RX/TX on the arduino but you must use the software serial library (google it).
HTH
Forget serial speeds above 38400 with SoftwareSerial. You must connect this camera to the hardware serial interface. You may use SoftwareSerial for debugging (with lower speeds), but you have to find a way to deal with the image data and how you may send it to the PC. Probably any application other than to store the pictures to an SD card overcharge the Arduino (except maybe the Due). What do you plan to achieve with it?
Forget serial speeds above 38400 with SoftwareSerial. You must connect this camera to the hardware serial interface. You may use SoftwareSerial for debugging (with lower speeds), but you have to find a way to deal with the image data and how you may send it to the PC. Probably any application other than to store the pictures to an SD card overcharge the Arduino (except maybe the Due). What do you plan to achieve with it?
that explains why it wasnt working yesterday, i tried the code in the manual and everything was working fine but when i used processing it didnt work. it just kept 'waiting for data'
Im going to use an Arduino Uno to send the data straight to the PC using processing while it is connected to the arduino.
I plan to use this as a camera for a quad-copter, for video recording.
I didnt know SoftwareSerial had a limit. So i should connect it directly to the RS232 interface?
I plan to use this as a camera for a quad-copter, for video recording.
You want to use an Arduino for video recording? Forget about that, it's massively underpowered for such a task, including processor power and memory size.
If you just want to transfer the picture to the PC, use a USB2Serial converter (Arduino has the USB2Serial Light and several other suppliers have FTDI cables). Even directly connected to a PC you won't get a video with this solution, you probably won't get to 1 frame per second with a serial camera. Use an embedded Linux platform based on some ARM computer and connect a cheap USB web cam to it, you'll probably get the best value for your bucks with that.
I plan to use this as a camera for a quad-copter, for video recording.
You want to use an Arduino for video recording? Forget about that, it's massively underpowered for such a task, including processor power and memory size.
If you just want to transfer the picture to the PC, use a USB2Serial converter (Arduino has the USB2Serial Light and several other suppliers have FTDI cables). Even directly connected to a PC you won't get a video with this solution, you probably won't get to 1 frame per second with a serial camera. Use an embedded Linux platform based on some ARM computer and connect a cheap USB web cam to it, you'll probably get the best value for your bucks with that.
how about just taking a picture then? i just want to test the camera now using arduino uno.
Il probably use an ARM cortex processor for my final design. But right now i just want the basic feature of taking a picture on the PC using this camera on arduino
As I already wrote: Take a simple USB2Serial converter and attach it to the PC. If you want to use the Arduino UNO, use the following sketch (to deactivate the serial interface of the processor) and swap the pins 0 and 1 (so camera TX to pin 1 and camera RX to pin 0). This way you just use the ATmega16U2 coprocessor of the UNO as a USB2Serial converter. Upload the sketch before you connect the camera!
As I already wrote: Take a simple USB2Serial converter and attach it to the PC. If you want to use the Arduino UNO, use the following sketch (to deactivate the serial interface of the processor) and swap the pins 0 and 1 (so camera TX to pin 1 and camera RX to pin 0). This way you just use the ATmega16U2 coprocessor of the UNO as a USB2Serial converter. Upload the sketch before you connect the camera!
void setup() {
pinMode(0, INPUT);
pinMode(1, INPUT);
}
void loop() {
}
thanks for the info but my camera looks exactly like this
a better view
RS232 connection on the side
TTL connection at the bottom
i wouldnt know how to connect this to the USB2Serial converter
i do want to use Arduino Uno, i dont want to spend any more money. If i upload this sketch how do i take a snapshot or picture? the code ive seen in the PDF ive uploaded seems just right and it compiles just fine. Processing is like the camera control to take a picture.
Sorry if i cant get right away what you are saying, im a little new to using a camera, id like to give you karma for taking the time to help, il be sure to pass it forward in the near future
i do want to use Arduino Uno, i dont want to spend any more money. If i upload this sketch how do i take a snapshot or picture?
The sketch is to disable the usage of the pins 0 and 1 of the main processor of the Arduino. This way you can use the integrated USB2Serial converter (the ATmega16U2 on the UNO board does exactly that) to access the camera by the PC.
Once you've done that you can control the camera with the PC, it's as if you connected it directly to a PC with an RS232 interface.
This way you just use the ATmega16U2 coprocessor of the UNO as a USB2Serial converter.
That means you already have in effect a USB to serial converter circuit in your Arduino. He is telling you how to use JUST this bit of the arduino and not the processor bit.
i wouldnt know how to connect this to the USB2Serial converter
You connect the TTL TX pin from your camera to pin 1 of the arduino and the RX pin from your camera to pin 0 of the arduino. You also run that sketch to effectively remove the processor.
Do not connect up the RS232 to anything!!!!
the code ive seen in the PDF ive uploaded seems just right and it compiles just fine.
Two points:-
Because code compiles does not mean it will function.
If you want a comment about this code then it is best if we do not have to guess which out of the millions of PDFs on the internet you have downloaded.
This way you just use the ATmega16U2 coprocessor of the UNO as a USB2Serial converter.
That means you already have in effect a USB to serial converter circuit in your Arduino. He is telling you how to use JUST this bit of the arduino and not the processor bit.
i wouldnt know how to connect this to the USB2Serial converter
You connect the TTL TX pin from your camera to pin 1 of the arduino and the RX pin from your camera to pin 0 of the arduino. You also run that sketch to effectively remove the processor.
Do not connect up the RS232 to anything!!!!
the code ive seen in the PDF ive uploaded seems just right and it compiles just fine.
Two points:-
Because code compiles does not mean it will function.
If you want a comment about this code then it is best if we do not have to guess which out of the millions of PDFs on the internet you have downloaded.
thank you so much for your help, i have a little more insight on what im suppose to be doing, sorry if i seem such a newbie
but i still dont know how to take a picture. the processor bit
For that you need access to the data sheet for the module. That link you posted originally is rubbish and not a data sheet. The data sheet should tell you what commands to send it and what it will return.
Grumpy_Mike:
That means you already have in effect a USB to serial converter circuit in your Arduino. He is telling you how to use JUST this bit of the arduino and not the processor bit.
You connect the TTL TX pin from your camera to pin 1 of the arduino and the RX pin from your camera to pin 0 of the arduino. You also run that sketch to effectively remove the processor.
Do not connect up the RS232 to anything!!!!
Two points:-
Because code compiles does not mean it will function.
If you want a comment about this code then it is best if we do not have to guess which out of the millions of PDFs on the internet you have downloaded.
Hi! Can I ask what this means:
"Once you've done that you can control the camera with the PC, it's as if you connected it directly to a PC with an RS232 interface." -pylon
How can I control the camera with the PC now after connecting my camera to the arduino?
I am trying to interface 0.3 megapixel Serial JPEG camera (By ZM technology) with PC (using RS232) but it didn’t respond on hyperterminal. Can you suggest any solution?
I have attached the image of the 0.3 megapixel Serial JPEG camera.