control CMUcam with ATMEGA8535

Go To Last Post
22 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hello...i need a help...and i have to know about it ASAP, because i 'll follow a competition using that CMUcam.....
btw do you know how to control CMUcam3 with ATMEGA8535??
(and how to initialize CMUcam3 on ATMEGA 8535 microcontroller and program CMUcam3 from it??)

actually i want to use that CMUcam3 for tracking objects (tennis ball for example)...

thank you for answering my question...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So you are still working on this. Where is YOUR code? What have YOU done so far?

Anyway I give you a hand, controlling the CMUcam3 on ATMEGA 8535 is the same as if you used any other AVR with similar capabilities or better.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Original thread is here https://www.avrfreaks.net/index.p...

Stealing Proteus doesn't make you an engineer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ArnoldB wrote:
Original thread is here https://www.avrfreaks.net/index.p...

btw that thread doesnt have good response because the person whom i talk to doesnt want to "help" me....

btw i am actually newbie for this, and even i dont know how to use CMUcam3 itself....

i have CMUcam3 with CMUcam2 emulation inside, how do i program it and communicate it with ATMEGA8535????

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
the person whom i talk to doesnt want to "help" me....
Doesn't want to help because you are asking silly questions instead of showing us what YOU have done and what problems you are encountering.

Do you know how to program? If so start. And if you need to ask such questions

Quote:
how do i program it and communicate it with ATMEGA8535????
then you should NOT attempt this task.

So you were given some info/links on the project, did you read them? How does the CMUcam communicates with the external world? SPI, TWI, USART other?

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

that is ok if it is a silly question...but i don't know anymore where i have to ask this "silly" question...i have searched many sites and none of them shows how to control it and how to initialize it from 8-bit microcontroller (AVR Atmel) ....

*maybe it would be very helpful if i can get the tutorial for this...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

But in the link you were provided EVERYTHING that you would possibly want is there. Nobody is going to give it to you on a plate and not many people have ANY experience with the camera, so how can you expect someone here to even write a tutorial?

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

what link ?
i dont see any link (except the link directing to my old thread)

btw if the link u mean is this :

http://www.cmucam.org/wiki/Docum...

i have already read them all, and none of them shows how to communicate CMUcam with microcontroller...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

CMUCam2 datasheet for serial command list:
http://www.cs.cmu.edu/~cmucam2/C... (page 27)

Examples:
http://www.societyofrobots.com/m...
http://www.wddhh.com/shtml/30626...

The question is, have you ever made any other project that communicates with some other device? Can you send a request and receive an answer with compiler of your choice? As others have mentioned, you already have everything needed in the link provided earlier...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
i have already read them all, and none of them shows how to communicate CMUcam with microcontroller...
REALLY??? It took me about 5 seconds to find the following in the CMUcam3 Datasheet (top document)
Quote:
Serial Port
The CMUcam3 has a standard level shifted serial port to talk to a computer as well as a TTL serial port for talking to a microcontroller. The level shifted serial port only uses 3 of the 10 pins. It is in a 2x5 pin configuration that fits a standard 9 pin ribbon cable clip-on serial sockets and 10 pin female clip on serial headers that can both attach to a 10 wire ribbon cable. If this initially does not work, try flipping the direction that the ribbon cable connects to the CMUcam2 board. Make sure the serial jumper is in place when you use this mode. The TTL connector can be used to talk to a micrcontroller without the use of a level shifting chip. The TTL pins output between 0 and 3.3volts, but are 5 volt tolerant for input. Remove the Serial Jumper when you use this mode.
So if you can't even find that or understand it you have NO chance of doing this project so stop wasting everyone's time. :)

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I recommend the Texas Instruments BrainWave InterCranial Implant, part number TI248130BWICI, to interpret your commands, parse them into Atmega8535 language, and instruct the uC to control the camera properly. Amazing widget.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

To write a program, you need to have a text description of what you want to do. Lets start with 'Grab one frame with cmucam' which would expand into something like 'init cmu cam by sending the X command and the Y command at 115200 bps ttl level' which would expand into 'init avr uart by writing 51 into the baud rate divisor register', and a descript for writing a char to avr serial port 'check if Transmit Data Register Empty bit in the Uart Control and Status Register is hi, and if it is, write data byte to the Uart Data Register'. etc. Now you have a spec that you can write little programs that do simple things like init uart and send same char in a loop, then refine it to send the desired command sequence. The complete list of 'steps' to get a picture out of the camera might be a couple hundred operations, any one of which would mess up the outcome if wrong. Its sort of an exacting but error prone process.

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

js wrote:
Quote:
i have already read them all, and none of them shows how to communicate CMUcam with microcontroller...
REALLY??? It took me about 5 seconds to find the following in the CMUcam3 Datasheet (top document)
Quote:
Serial Port
The CMUcam3 has a standard level shifted serial port to talk to a computer as well as a TTL serial port for talking to a microcontroller. The level shifted serial port only uses 3 of the 10 pins. It is in a 2x5 pin configuration that fits a standard 9 pin ribbon cable clip-on serial sockets and 10 pin female clip on serial headers that can both attach to a 10 wire ribbon cable. If this initially does not work, try flipping the direction that the ribbon cable connects to the CMUcam2 board. Make sure the serial jumper is in place when you use this mode. The TTL connector can be used to talk to a micrcontroller without the use of a level shifting chip. The TTL pins output between 0 and 3.3volts, but are 5 volt tolerant for input. Remove the Serial Jumper when you use this mode.
So if you can't even find that or understand it you have NO chance of doing this project so stop wasting everyone's time. :)

that's alright if you say so, i am just a completely newbie for this, so i am sorry if i say something wrong :D

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

last question, which baud rate i have to set on cmucam when communicating with 8-bit microcontroller?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Choose whatever you want as long as the cmucam supports it. I`m sure that the AVR is much more adaptable than the cmucam...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hello, thx for all of your advice (although several of it was really2 painful for me....and doesn't give me a clear solution) but i want to ask some more question again...and the platform is the same as the title of this thread...but i prefer using RS232 to connect my CMUcam with mcu....

btw do u know how to get the data (ex get the version of cmucam) from CMUcam and displays it on the LCD screen?? thx for responding my question.....

(actually i don't really know how to get data from cmucam and process it on mcu....for controlling DC motor and so on...)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

btw i will be thankful if there is someone who want to give some explanation for my last question..(that i post today :p)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hello, anybody here?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
actually i don't really know how to get data from cmucam and process it on mcu
Quote:
then you should NOT attempt this task.
Quote:
But in the link you were provided EVERYTHING that you would possibly want is there. Nobody is going to give it to you on a plate and not many people have ANY experience with the camera,

https://www.avrfreaks.net/index.p...

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi, I am also new using CMU cameras, I am going to use a CMUcam2 for a project, how ever I don't know which AVR or ATMEGa is the best to interface the camera with the rest of my robot. Which one do you recomend for some color tracking, and frame differencing?

Thank you.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hell no.
finda the answer yourself.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hell no.
find the answer yourself :p