You are here

how to interface webcam with PSoC 3 | Cypress Semiconductor

how to interface webcam with PSoC 3

Summary: 19 Replies, Latest post by kmmankad on 08 Apr 2012 05:04 AM PDT
Verified Answers: 1
Last post
Log in to post new comments.
amitni's picture
User
12 posts

 

i want to interface a webcam with PSoC 3 and then transmit the webcam video to recevier side..how can i do this..

U2
uday's picture
Cypress Employee
569 posts

What kind of webcam are you trying to interface with PSoC3. USB?

amitni's picture
User
12 posts

actually in my project i want to transmit video to other end ( receiver) wirelessly..  This video will be captured by a webcam and i will be using PSoC 3 at both transmission and receiving end.

ya i will connect webcam to PSoC with USB.. Please guide me with all considerations and your suggestion that i should take...

U2
uday's picture
Cypress Employee
569 posts

 I dont think it is possible to connect a webcam to PSoC3 or PSoC5 via USB. PSoC does not have a USB Host capability and hence a USB cam(assuming the camera is a USB perihperal) can not be connected via USB. 

Assuming that it is connected video over USB is tough because we are fundamentally limited by the bandwidthe available on USB; PSoC3/PSoC5 support only Full Speed transfer and a maximum of around 1 Mega Byte/Second. So even if you have a 1Mega Pixel camera, you wil have approximately 3 Megapixels of data in one frame and depending on the framerate you will have more data. So connecting awebcam to PSoC3 and streaming video via PSoC3 is out of question.

U2
uday's picture
Cypress Employee
569 posts

 That said, Cyoress makes some awesome chips which can do this. There are specific USB devices which can do this, will gather more information and post it here.

amitni's picture
User
12 posts

so it means we cannot connect a webcam with PSoC through any other means also....

U2
uday's picture
Cypress Employee
569 posts

Your best bet would be to find if there is someother camera which can throw out data on a different protocol. SPI or may be some other parallel bus would definitely help.

amitni's picture
User
12 posts

Sir, my project is "Wireless Video transmission through Webcam" in this i need to transmit video of a camera from one end to other without a physical connection between them....please guide me how sholud i proceed....

user_1377889's picture
User
10803 posts

First, before decide for PSoC 1, 3 or 5

To transmit (any) data you need something named "Protocol". It specifies in which format etc what data is transmitted. When you lean on the OSI-layer model (ask mrs. Wiki Pedia if you don't know it), you see that the lowest layer actually defines the transmission media, which is in your case RF. 

Give that layer-model a bit of thought, it will make the implementation easier. Later on the protocol-layer will be implemented on your PSoC.

You must give attention to bandwidth and byte throughput because uncompressed video has a lot of data and compressing is not an easy job. So sharpen your pencil, thake a sheet of paper and start calculating...

 

Happy number-crunching

Bob

 

U2
uday's picture
Cypress Employee
569 posts

In my opinioin, there are 2 pieces that form this puzzle. First, trying to get data i to PSoC from a webcam(a camera in general). Second is the transmission part.

  1. As far as, getting the data from video camera is concerned, you need to zero in on what camera you will be using and what will be the protocol used for reading data from camera. Any electronic device uses electonic interfaces such as SPI, USB, PCIE to communicate with other devices. The readily available communication interface with PSoC are SPI, USB, CAN, UART. You need to choose a camera which can provide a standard communication interface mentioned earlier. Even if you choose a cmaera that puts data on a custom interface(may be serial or parallel interface), you need to see if  it possible to implement it in PSoC using UDB logic(you ccan come back to the forum to get this answered). The limtation on the communication protocl will be the data throughput. If you consider a 1 Megapixel camera, as explained in the previous post you will have 1Million*3 bytes of data per second(3 Meg Bytes per second). Based on the resolution you need and based on the communication interface you need to select a camera and assess the feasibility.
  2. Wireless interface: There are many readily available wireless modules that have enough bandwidth to support video transmission. Again, PSoC needs a communication protocol to talk to the wireless module. 
amitni's picture
User
12 posts

If using a digital webcam....wat are the types of formats  video webcam available like RGB or such.......or which can be interfaced with controller...

 

Log in to post new comments.