View Full Version : interface to µCAM (microcam)
KevinKK
03-28-2012, 09:58 PM
I tried a lot of ways to read the image from µCAM-TTL, we bought from 4D systems,
http://www.4dsystems.com.au/prod.php?id=75
I have checked all things about wiring, GND, power, RX/TX cross line and baud rate. But still failed.
Here I attached my code , please help me out this project.
911379113891139
Rayman
03-29-2012, 12:01 AM
I took a quick peek at your code. Didn't see any obvious trouble. Of course, make sure you don't have RX and TX backwards...
I have some code on my website for a different version of a TTL camera. But, your code looks similar to mine, so maybe mine would give you ideas...
kuroneko
03-29-2012, 12:06 AM
The only thing odd is your GetAck sequence. Your're using rxcheck which returns immediately if no character is available. Which means if it's called before $AA is received you're most likely out of sync for the rest of the sequence. It'd be better to keep looking for $AAA (possibly with timeout) and then evaluate the remaining characters.
A e.g. repeat until ucam.rx == $AA
KevinKK
04-05-2012, 09:09 PM
We worked it out after several test. What we feel strange is both Prop USB Platform (#32208) and Demo board (#32100) can't support this µCAM anyway. We finally make a new test board with Prop chip, regulator, crystal clock and EEPROM. Attached is the file we test it out.91398 Anyone who can share the experience of different boards with me ?
prof_braino
04-06-2012, 02:38 PM
Can you show the schematic of the "new test board" that finally worked? A prop is a prop, unless you have special hardware, they should be the same.
KevinKK
04-12-2012, 10:03 PM
I didn't add any other component just follow the Prop manual. You can check the PE plateform http://www.parallax.com/Store/Education/KitsandBoards/tabid/182/ProductID/415/List/1/Default.aspx?SortField=ProductName,ProductName