I originally had a c328 camera working to capture images to the pc then sending output to my arduino to control servos, leds, lcd, and 64x64 dot matrix but it's speed was only 6fps and I need 30fps. I then went ahead and forked out the dough for a c329 and the USB I/O module but I have no idea how to program a USB I/O.... I was able to build a mod driver to capture images to the c329 with a uart module but I can't take continuous images only single snapshots. Please help! Any help at all or pointing me in the right direction
In your prior 32 posts, what's the first thing that people have asked?
Got links to the device(s) you are asking about?
Is there any reason we need to ask again?
I apologize for not posting the links, I thought I had but it's the first time I post in the new forum setup.
Here is the link the c329 camera:
Here is the link to the USB I/O module:
http://www.electronics123.com/s.nl/it.A/id.3012/.f
If my links don't work going to the electronics123 site will be the fastest way to look them up. Thanks!
Hey worldisorder,
I'm curious, you say you have the C329 working on UART. Are you able to download full resolution images i.e. 640x480.
Mine (I have the B/W version) seems to crash for anything above 352x288, and I can't seems to figure out why.
Also, I don't think that elec123 intended for users to program the USB I/O...rather it was for testing/demoing boards using their software. It would be nice if they shared the source for that software.
chris
but I can't take continuous images only single snapshots.
I wonder if this comment on the link you posted has anything to do with that:
Users can send a Snapshot command from the
host in order to capture an image. The image is then
compressed by the board, stored in and internal buffer and
transferred to the host through the serial port.
It does not appear that the camera is designed to take continuous pictures.
Mine (I have the B/W version) seems to crash for anything above 352x288, and I can't seems to figure out why.
What crashes? The Arduino?
What are you having the Arduino do with the data?
Hey PaulS,
I'm not actually using the c329 with an Ardiuno atm, but my code is based on the Ardiuno c329 library (GitHub - svoisen/c329: Arduino library for Electronics123 C329 camera; I've been scouring the internet looking for someone else using the c329 camera board, hence my comment).
The camera board appears to crash for the higher res images. I.e. the c329 sends the ACK that the getpicture CMD was received and then does not respond to any commands until RESET or power cycle.
Chris
I'm not actually using the c329 with an Ardiuno atm
The camera board appears to crash for the higher res images. I.e. the c329 sends the ACK that the getpicture CMD was received and then does not respond to any commands until RESET or power cycle.
There are two ways to interpret this pair of statements. One is that you are not using the camera with an Arduino, but are using it with a different micro-controller.
The other is that you don't know what you are talking about.
I'm willing to believe that it is the first interpretation that is correct. However, I doubt that is is the camera board that is the problem. What are you doing after the ACK is received? How do you know that the camera board has "locked up"?
Discuss what micro-controller you are connecting the camera to, what you do after the ACK is received, and what indication you have that the camera board has "locked up".
There are two ways to interpret this pair of statements. One is that you are not using the camera with an Arduino, but are using it with a different micro-controller.
The other is that you don't know what you are talking about.
It is not being controlled by any micro-contoller. I have the C329 camera board connected to my computer, and am currently controlling it with matlab.
However, I doubt that is is the camera board that is the problem.
I agree, which is why I am confused. I posted in the first place was that I was hoping worldisorder (the only other person I've seen post about the C329) could shed some light as he gave the impression that he had it working.
... what you do after the ACK is received, and what indication you have that the camera board has "locked up".
After sending the ACK, the C329 should send a DATA cmd (info about image size etc), immediately followed by the data. I should not have to DO anything other then listen (my serial buffer is set to be much larger then any image that C329 can send, so data is not being lost or overwritten there, indeed nothing is received at all).
The indication the C329 has 'locked up' (I have no other word for it), is the lack of a DATA cmd and subsequent DATA. Further, the only CMD it will respond to is the RESET cmd...which indicates a funny state to me.
I'm fairly confident there this isn't a code or procedural error as everything works just fine at a lower resolutions.
I'm sorry for not responding sooner, I was not getting replies sent to my email from this forum. I have the c329 working directly connected to my computer. I use the arduino to control servos, lcd, and 16x16 dot matrix but not the camera. I am able to take a single snapshot of an image 640x480, It's a 1 time deal though since I have to hard reset the camera in order the capture again. To get the complete image you have to read the com port several times to capture all of the of data and increase the read buffer on the com port. It was a pain but saving into several arrays and then concantenating them into one large array and then converting that into an image was the only way I could get it done. If you would like me to send you the gui you can email me with my username@gmail.com.