hi..!
can anyone help me that how i can interface camera C329 with Arduino mega 2560 please
Google suggests that camera type has a UART interface so you have some chance of being able to receive the jpg image data from it but I have no idea what you'd do with it then - the image would be too big to be held in memory and you would have very limited time available to store/forward it.
To understand how to use the camera you need to read and understand the camera's data sheet. You also have the option of looking for other people who have already done the same thing you want and were generous enough to publish details of their solution - a quick search here turned up several promising-looking projects and you should be able to find them as easily as I did.
anyone with some more information please!!!
PeterH:
a quick search here turned up several promising-looking projects and you should be able to find them as easily as I did.
Is Google broken where you are?
PeterH : kind of broken..! i have searched it but was not able to fetch some useful data regarding my task that's why i posted something here...
kazmi:
PeterH : kind of broken..! i have searched it but was not able to fetch some useful data regarding my task that's why i posted something here...
That's peculiar, because when I search for c329 arduino I get tons of hits. I don't suppose they're all directly relevant, but I feel sure that somewhere in all this information is an explanation of how to interface a c329 camera with an Arduino:
New Arduino Library for our C329 UART cameras!!!
C329 Camera and Arduino test fixture.
C328 and C329 Cameras
C++ library for the C329 SPI camera module
That's just the top few of about 15,000 results.
Hi All,
I am new to Arduino,
I read the page with sample code referenced in this Post, there are one or two issues I came across that prevented it working on my Arduino UNO. This may help some who wants to try the code.
I fixed one or two issues in your Lib. The C329 works every time now without reboot. You should also monitor the HOLD to speed up the operation.
Firstly make your CS active for all bytes in SendCommand:(don't deactivate it for every byte)
digitalWrite(10,LOW);
for (i = 0; i < CMD_SIZE; i++)
{
SPI.transfer(outputCommand*);*
}
digitalWrite(10,HIGH);
My Arduino couldn't produce picture size correctly without a cast:
- pictureSize = (uint32_t)inputCommand[7] << 16;*
//(not needed, max pic size =48K) - pictureSize = (uint32_t)inputCommand[6] << 8;*
- pictureSize +=(uint32_t)inputCommand[5];*
I also changed the following command: - setOutputCommand(CMD_INITIAL, 0x00, 0x87, 0x01, 0x07);*
Gwyn