Question:
Interfacing microcontroller with CMOS camera?
anonymous
2009-10-31 17:16:22 UTC
I am working on a project where I am attempting to interface a CMOS camera to an ATMega32. I will be using an OV528 Camera to Serial Bridge and a compatible Omnivision camera. A 50ft RS-232 cable will have to be used to connect the micro and camera. Will the length of the RS-232 cable be an issue? I'm not sure if the camera or micro would use a UART for the connection, but I've read that this could be a problem. Any advice would be greatly appreciated. If any further elaboration is required, please let me know.
Three answers:
?
2009-11-01 00:23:33 UTC
If you use Asynchronous transmission then a UART, either hardware of software is used.



Most people understand a 50foot limit but don't realized there is a capacitance limit of 2500pf. This means that cable selection in terms of capacitance per foot will be a limiting factor which can result in more or less than 50 feet. In other words 50ft is a general limit at 19.2.



(17 pf/ft Cat 5 will easily get you over 50 ft. when you follow the capacitance spec)



In addition to capacitance there is an inverse relationship between cable length and baud rate. You can extend the length to several thousand feet at 2400 baud or less. The 50ft spec is also at 19.2 so a faster speed is going to reduce this lenght significantly.



I assume that since you are using a camera that you will be transferring a lot of data at a fairly high high baud rate. This can complicate your baud selection relative to cable length in that you may not be able to slow the camera baud rate or want to wait for slow baud rate transmissions to complete.



You can extend the distance by utilizing a signal booster or conditioner.



Other options include using RS-485 which would require at least one RS232/RS485 converter at the camera and a RS485 line driver at the uC . Or use fiber optic, again converters at both ends will be required along with additional power requirements.



One final thought:

You will need to run your Atmega on a crystal clock source and not off the internal RC clock.
johnty
2009-11-01 00:50:33 UTC
based on the specs for RS-232, you'll probably be pushing it. i would suggest using something like RS-422. on the camera serial bridge end you'll have to convert the signal to RS-422, and the put a receiver on the ATMega end. But either way test things out and make sure it works with a shorter cable before you go long! :-)
billrussell42
2009-11-01 00:23:55 UTC
50 feet is about the longest you can run a RS232 cable, so you would have to try it and see how it works.



.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...