![]() |
2 Cmucams?
I figured a bit of stereovision would be neat this year, and plan to use two CMUCams. My question is this - how would I hook them up? One would obviously be hooked up via the TTL-RS232 converter, and the other one? Into the programming port, possibly?
I looked at Kevin Watsons serial drivers, and this might be a possibility. Anyone else have any ideas? |
Re: 2 Cmucams?
yeah you can hook up the second camera to the programming port. in kevin watsons code there is an option for enabling this serial port. It is used in the same exact way as the ttl port
|
Re: 2 Cmucams?
You would actually have to duplicate Kevin's code, IIRC. Otherwise, I think the states will trample on each other.
|
Re: 2 Cmucams?
I think that many interrupts per second would kill the controller anyways. 11520 interrupts a second x 2.
|
Re: 2 Cmucams?
Quote:
The camera only generates a few hundred interrupts per second, one per byte received. The serial driver is very efficient and can easilly handle this load. Furthermore, there is no reason that you couldn't have two instances of the camera code running, you just need to make sure each instance isn't using the other's global variables. -Kevin |
Re: 2 Cmucams?
Technically, he is right. in an UART, each byte is 10 bits (1 start, 8 data, 1 stop). running at 115200 continuously gives 115200/ 10 * 2 interrupts / second for the recievers alone.
Of course, the PIC can handle that, considering that the cameras will not continuously send data, however, a few thousand interrupts per second will be generated. |
Re: 2 Cmucams?
Quote:
|
Re: 2 Cmucams?
Quote:
-Kevin |
Re: 2 Cmucams?
All,
While we did not run 2 cameras, in 2005 we moved the camera to port 1 (programming port) and installed a SMiRF on port 2 to enhance code development. We had no problems with interrupt overhead. Regards, Mike |
Re: 2 Cmucams?
Quote:
|
Re: 2 Cmucams?
Quote:
-Kevin |
Re: 2 Cmucams?
Quote:
|
| All times are GMT -5. The time now is 01:27. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi