Webcam

Hello,

I would put a webcam on my arduino uno rev 3
and see on the screen of my PC the images sent me through the webcam has wifi.

But I do not know how we will program the Arduino, where to put the webcam, etc. :cold_sweat:

That's much better, lol !.

An arduino is unable stream video. Not enough memory for starters. Have you looked into beagles or raspberry pi's?

May have more joy with them

Never... Going... To... Happen.

I think you need to do some research on what an 8bit AVR running at 16MHz with only 2k of RAM can actually do.

Just to give you an idea, a 16x12pixel frame with 8bit greyscale colour would consume almost 75% of the RAM of an atmega328.

16x12pixel frame with 8bit greyscale colour

Pushing aside the uncomfortable concept of grey scale colour, 16×12×3 = 576.
Where does the 75% come from?

AWOL:

16x12pixel frame with 8bit greyscale colour

Pushing aside the uncomfortable concept of grey scale colour, 16×12×3 = 576.
Where does the 75% come from?

'8 bit'... not '8 level'

OK, let me try again.
16×12×3 = ?

AWOL:
OK, let me try again.
16×12×3 = ?

Good news is, we are both wrong :smiley:

It would only be 10% - I worked it out in bit, not bytes. You on the other hand, no idea where the 3 came from.

But anyway, the point is the same, no... way... in.. hell.

You on the other hand, no idea where the 3 came from.

R×G×B
Aka 24 bit colour.
Or even YUV, if you wish.

So, is it not possible in any way to use arduino for this ?!!. Cuz I was intending to use it in my project.. !.

Cuz I was intending to use it in my project..

I was planning on using Elle Macpherson in my next pop video, but some things are just not meant to be.

sebastian-sebastian:
I would ... see on the screen of my PC the images sent me through the webcam has wifi.

If your PC has a connection to the WiFi network and your webcam has a WiFi interface then that seems trivial to implement and doesn't involve an Arduino at any point.

PeterH:

sebastian-sebastian:
I would ... see on the screen of my PC the images sent me through the webcam has wifi.

If your PC has a connection to the WiFi network and your webcam has a WiFi interface then that seems trivial to implement and doesn't involve an Arduino at any point.

The arduino is used to give the webcam a specific task to do other than its original work !.

MAGMAM:
The arduino is used to give the webcam a specific task to do other than its original work !.

I have no idea what that means, but in any case your question about how to display video from a WiFi webcam on a PC does not involve an Arduino. If you have some other requirement that you think needs an Arduino to implement, you haven't explained it so far.

PeterH:
I have no idea what that means, but in any case your question about how to display video from a WiFi webcam on a PC does not involve an Arduino. If you have some other requirement that you think needs an Arduino to implement, you haven't explained it so far.

Your question was really weird, you were like asking why arduino even exist !!. The arduino's job, in general, is to give something a task to perform that is not ordinary, so, we need the arduino to make the webcam do a specific task, for me, wifi is of no use in my project, cuz I need to control the camera over long distances, so, I thought arduino would help me to do that and to also watch through it a live stream, but I cannot do that apparently from what the other guys said.. !.

MAGMAM:
Your question was really weird, you were like asking why arduino even exist !!

I'm not asking why Arduino exists, I'm saying that nothing you've said so far suggests that you need to use an Arduino in your project.

MAGMAM:
I need to control the camera over long distances

You haven't explained what you mean by 'control'. So far all you've said is that you want to be able to display the video stream on a PC. If you want to do more than that, you need to explain what.

It's unclear whether your PC has a connection to the WiFi network that camera is attached to. If it does, it should be trivial to display the video stream on the PC. If it doesn't, you ought to explain what network connectivity you do have between the location of the camera and the location of the PC. There is very likely to be a solution, but without details of your environment I can't guess what options are feasible for you. You can be sure of one thing - you won't be sending the video stream via a microcontroller.

PeterH:
You haven't explained what you mean by 'control'.

I'll clarify what I want, I don't want to just watch a live stream about the webcam, but to also control it by directing the webcam left or right. My device works outside the range of the wifi, so, I'll need to control it by sending sms's to the GPRS, and therefore, take the sms and translate it to an action !!. So, I'll need the arduino to do such an operation, but, I don't know what to use for the live stream.. !.

You could use an arduino to send "control" information to the camera, and a completely different device, with more ram, to receive the video data. I find it hard to see a rationale for doing that.

There is a long thread here about people who have managed to connect an OV7670 camera device to an arduino, with all sorts of complications and workarounds to get it to work. And that is for a "still" camera, not video.

The arduino does not have enough speed or ram to process video. End of story, really. There are other inexpensive and practical devices which are more suitable.

MAGMAM:
My device works outside the range of the wifi, so, I'll need to control it by sending sms's to the GPRS, and therefore, take the sms and translate it to an action

This is getting into more useful detail but it is still ambiguous. If you have a GPRS connection then that means you have network connectivity so you should be able to carry the video stream directly over the GPRS, and you should also be able to carry commands the other way. You will need to look into the available bandwidth and costs for your GPRS service. If the IP webcam is steerable, it will almost certainly be steerable by HTTP so the mechanism you use to connect to it to receive the video stream will be the same one you use to send steering commands and view/change the configuration. In this case I don't see any reason for using SMS messages or an Arduino. All you need is a GPRS modem which has a network interface compatible with the IP webcam. A MiFi adapter would be the simplest approach, but you can assemble your own equivalent from discrete components (Ethernet/WiFi network adapter, router, GPRS modem) if you are familiar with this sort of equipment and don't mind doing a lot of work to save a little money.

This solution would essentially give you network connectivity between the PC and the camera. Once you have established that, it is trivial to display the video stream on the PC and to steer the camera from the PC. Most likely, the IP camera already provides a webapp to take care of this whole problem for you.

PeterH:
This is getting into more useful detail but it is still ambiguous. If you have a GPRS connection then that means you have network connectivity so you should be able to carry the video stream directly over the GPRS, and you should also be able to carry commands the other way. You will need to look into the available bandwidth and costs for your GPRS service. If the IP webcam is steerable, it will almost certainly be steerable by HTTP so the mechanism you use to connect to it to receive the video stream will be the same one you use to send steering commands and view/change the configuration. In this case I don't see any reason for using SMS messages or an Arduino. All you need is a GPRS modem which has a network interface compatible with the IP webcam. A MiFi adapter would be the simplest approach, but you can assemble your own equivalent from discrete components (Ethernet/WiFi network adapter, router, GPRS modem) if you are familiar with this sort of equipment and don't mind doing a lot of work to save a little money.

This solution would essentially give you network connectivity between the PC and the camera. Once you have established that, it is trivial to display the video stream on the PC and to steer the camera from the PC. Most likely, the IP camera already provides a webapp to take care of this whole problem for you.

How is the connectivity between components going to be ??. Cuz It's not clarified within your explanation, cuz I've got some questions regarding the connectivity if what I've understood so far is right !. So, can you tell me how am I going to connect the components from webcam till PC ?!!.