Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: kupter on August 05, 2010, 12:38:24 AM

Title: Problem With interfacing betwen CMucam and Atmega 32
Post by: kupter on August 05, 2010, 12:38:24 AM
first i want  to make robot whom can pick a tennis ball, this my design
(http://i.imagehost.org/t/0488/design.jpg) (http://i.imagehost.org/view/0488/design)
my problem is I'm still confuse how to interface Micro and cmucam3(about handshaking betwen them and tranfer/ receive data)
    micro that i use  atmega 32

I hope there is people who can give me advice( sorry for my bad english)
Title: Re: Problem With interfacing betwen CMucam and Atmega 32
Post by: voyager2 on August 05, 2010, 04:20:42 AM
Before anyone can answer you question it would be a good idea to post your current code,pictures, etc. ;)
Title: Re: Problem With interfacing betwen CMucam and Atmega 32
Post by: amando96 on August 05, 2010, 04:24:18 AM
I really doubt that chip can process the video from that camera, I didn't do much searching on the subject, but the atmega 32 has even less memory than a 328 right?
If you really want to process data you'll need something more powerful, like an NXP used in the Mbed (http://mbed.org/), And still, not sure if it's enough!
Title: Re: Problem With interfacing betwen CMucam and Atmega 32
Post by: chelmi on August 05, 2010, 08:03:43 AM
I really doubt that chip can process the video from that camera, I didn't do much searching on the subject, but the atmega 32 has even less memory than a 328 right?
If you really want to process data you'll need something more powerful, like an NXP used in the Mbed (http://mbed.org/), And still, not sure if it's enough!

The CMUCam already has a  NXP ARM processor attached to it for video processing.
Title: Re: Problem With interfacing betwen CMucam and Atmega 32
Post by: kupter on August 05, 2010, 11:00:31 AM
Before anyone can answer you question it would be a good idea to post your current code,pictures, etc. ;)

in this project I use camera with type CMucam3 to take picture and process it due my programe
atmega 32 i use to command cmucam when they start to process picture ,also atmega 32 I use to take signal control from remote ( rf remote control) ,control gripper,take data from infra red sensor,also control motor dc

My question how I interface Cmucam to atmega32 ( about transfer data and clock signal)?

As I know there pin in cmu serial and ttl.. but i still confuse how to use it
this data sheet cmucam3http://www.seattlerobotics.com/CMUcam3_datasheet.pdf (http://www.seattlerobotics.com/CMUcam3_datasheet.pdf)
Title: Re: Problem With interfacing betwen CMucam and Atmega 32
Post by: kupter on August 06, 2010, 09:38:30 AM
there anyone can help me....urgent!!
Title: Re: Problem With interfacing betwen CMucam and Atmega 32
Post by: Soeren on August 06, 2010, 10:40:09 AM
It's all in the datasheet that you posted. Look at p.7 and make a decision on how to communicate with it.
As long as we don't know how you wanna communicate with it, it's impossible to help and besides... You'll feel a lot better if you at least try to understand what you're doing.
Title: Re: Problem With interfacing betwen CMucam and Atmega 32
Post by: kupter on August 09, 2010, 12:31:45 AM
yes I know there way to connect with micro use Tl but I don't about Trans data or receive data, how micro know the trans  or receive data from cmucam?  and how cmucam know the receive or transmit data from micro?
Title: Re: Problem With interfacing betwen CMucam and Atmega 32
Post by: Bas_E on August 09, 2010, 04:14:12 AM
I am just a beginner myself, so I cant give you any „plug and play" answers.
What I think when reading you posts is that your talking about the software and not hardware part, right?

Everything is hooked up, but what then? Correct me if I am wrong but the communication between the components, that’s where the programming starts. That seems to be your problem?

Maybe this tutorial is a place to start? -> http://www.societyofrobots.com/microcontroller_uart_50_robot.shtml (http://www.societyofrobots.com/microcontroller_uart_50_robot.shtml)
Title: Re: Problem With interfacing betwen CMucam and Atmega 32
Post by: kupter on August 09, 2010, 10:37:18 AM
I am just a beginner myself, so I cant give you any „plugga 32 and play" answers.
What I think when reading you posts is that your talking about the software and not hardware part, right?

Everything is hooked up, but what then? Correct me if I am wrong but the communication between the components, that’s where the programming starts. That seems to be your problem?

Maybe this tutorial is a place to start? -> http://www.societyofrobots.com/microcontroller_uart_50_robot.shtml (http://www.societyofrobots.com/microcontroller_uart_50_robot.shtml)


I already read this web... so i just connect Tx cmucam to Rx micro and Rx cmucam to Tx micro(ground to ground)...  how about baudrate? how about capacitor crytals I use( I use atmega 32 16Pu with max freq 16Mhz)