Capture, transmit & display RCA video with prop & xbee
Hello,
I would like to learn how to capture video via RCA plug on one prop chip, and transmit it via xbee to another prop chip, which would be RCA out to the 7" TFT sold by parallax.
Basically a wireless security camera with dedicated video screen on the receiving prop chip.
I have RCA jacks, 2 props & 2 xbees.... but cannot find any information on how to transmit video, I can only find info on using the RCA as an output to generate custom graphics.
I do not need to record or manipulate the video, simple transmission would be great
I would like to learn how to capture video via RCA plug on one prop chip, and transmit it via xbee to another prop chip, which would be RCA out to the 7" TFT sold by parallax.
Basically a wireless security camera with dedicated video screen on the receiving prop chip.
I have RCA jacks, 2 props & 2 xbees.... but cannot find any information on how to transmit video, I can only find info on using the RCA as an output to generate custom graphics.
I do not need to record or manipulate the video, simple transmission would be great

Comments
The tv output is quite simple as you will just place the received data continuously into the hub screen buffer with a seperate wireless cog. As for transmitting, you will use a cog to repeat sending a copy of the received screen buffer. You may need to place a delay between each transmission to avoid too much flicker between screen updates.
Hopefully there may be some sample code either in obex or in the wireless forum section for transmitting and receiving data via zigbee.
IIRC there has been a thread on receiving tv so try a search for this.
Oh, and I see you are new, so welcome to this fabulous forum and the prop.
-Phil
Welcome to the forum and welcome to the world of limited bandwidth. As Phil said (and he's an expert about such things(and many others)) XBee's just don't come close to being able to transmit all the data in a video signal (in real time).
The easy way around this problem is to buy a video transmitter/receiver set (I think DealExtreme has some).
It may be possible to transmit a very low resolution image with your XBees. I've wondered about doing this myself. I used Hanno's video capture method and lowered the resolution of the image to a 12X10 8-Bit grey scale image. This limits the data per frame to 120 bytes which I think is low enough to send real time with an XBee. Of course the pictures aren't much to look at. By decreasing the frame rate you could increase the resolution per frame.
This is definitely the hard way of doing things. I've just had these things on my mind so I thought I'd share them.
Here's an example of a 120 byte image. There's a video camera in the top left corner. The "HI" on the whiteboard is being displayed on the LED array.
This is part of a another project I'm working on.
There are other wireless devices that have higher data rates than XBees. One of the forum members uses them to transmit audio (which is much easier than video).
Duane
How about 1/2 second BW captures?
I just found this.... gonna read later when I have time:
http://forums.parallax.com/showthread.php?86376
Each servo had a square peice of brown paper attached that would tilt to a certain angle to represent a shading.
Wow, How did I never see that thread before? My only excuse is the thread is from before I started learning about microcontrollers.
Thanks for the link. I've got some reading to do.
Duane
Edit: I skipped to the end. I think I had seen it before. The end of the thread gave me a strong feeling of D
Even if the xBees used analog modulation, a modulator would have to be designed specifically for video use to be effective over that frequency range. You really have to use a transmitter and receiver designed for video use.
@jbwolf, welcome to the forums - regarding on how to transmit video, there's a few settings you need to change in the "tv_params" that you coppied from the tv driver down in the DAT section of your program that will tell the tv driver to transmit broadcast instead of just RCA baseband. If you open the tv.spin driver and look down at the bottom it shows you an explanation of the parameters and which bits to set for what video format you want, on which pin group you want, even which nibble (high/low nibble of a pin group of 8), NTSC/PAL, interlace, broadcast/baseband/S-Video..
I can draw straight lines with the previous code... but I cannot get it to move in a diagonal
Thanks for all the help
Not really sure what to do about video yet... I'm going to search for a dedicated ntsc transciever as I do not think the propcam can provide enough resolution for a security camera
The information in most serial objects ends up in hub RAM where any cog can access it.
What is "the previous code". (You're not giving us very much information.)
Duane
http://www.geeks.com/details.asp?InvtId=RC310A-CM260CWAS
That way you can skip the cost of the two Propeller's, two XBees, the video digititizer on the transmitting end (remember, you're starting with analog video and then want to broadcast it digitally), and the decoder on the receiving end.
The VIDEO OUT of the wireless receiver will connect to the 7" monitor.
If you're looking to add a text overlay to the received video you want one of these:
http://www.parallax.com/tabid/768/txtSearch/28327/List/0/SortField/4/Default.aspx
-- Gordon
You might be able to modulate one of the analog pins and then read its corresponding pin on the receiver but that would be very counter productive. Not sure you'd get a bandwidth even high enough for decent audio.
-- Gordon
I have 2 threads going, one for video and one for motors.... posted in wrong one lol
Gordon,
In the example I was sharing about the LED array, it is pretty much an "exercise of discovery".
One of my long term projects is to use a RC heli to take aerial photographs (I've done this a lot (and semi-professionally) with fixed wing aircraft in the past). Several years ago I purchased one these video links. My understanding is 900MHz provides better distance than 2.4GHz. I also have a Propeller Backpack. My plan is to overlay telemetry information onto the video signal before it's feed into the transmitter. I also have a pair of 900MHz XBees. I'm not sure if the XBees signal will interfere with the video signal or not.
If the XBees work well enough I could use the Backpack on the ground to overlay the received telemetry on the ground-station screen (so I don't need a separate displays for both video and telemetry).
My day job and many side projects have kept me from testing the various equipment together. (I'm probably delaying flying all my expensive equipment at once out of fear of a crash as well.)
Duane
The biggest issue is non-conformance of the video output of the backup camera. It's not 1v p-p, but I've tweaked the interface circuit a bit to improve performance. A better camera and transmitter would result in a much better picture.
For my project the data is environmental info collected from a bunch of Parallax sensors. The Backpack makes overlaying the data extremely easy. (After I realized the Backpack didn't come overlay-ready. The required download to change the firmware is on the Backpack page.)
-- Gordon
The camera is the small black spot just above the center.
http://www.wimp.com/woodenmirror/
You're right. That's very cool.
That makes soldering 120 LEDs onto a board seem very quick and easy by comparison.
Thanks for the link.
Duane
One analogy comes to mind: You can't build a house on a weak foundation.
I have come to the conclusion that realtime color video through the propelIer is not possible, so I think you presented the solution for my needs Gordon, thank you!
I will still have to use 2 xbees as I am making a PTZ camera for surveillance rather than a network static cameras.
Only thing I cant figure out... how do you splice the backpack ontop a video stream to get a single output? just a simple RCA splitter?
I would like to timestamp the recorded video.
Duane, I'd be a little wary about 900mhz nowadays. I have had so many interference problems... most commonly, cordless phones corrupting data on DSL lines typically making the modem disconnect and causing false signals (wicked sounds) on the phones at the same time. I bet if you put a 900mhz phone between the transmitter and receiver, 60% chance your heli would drop out of the sky.... or worse
or one of these:
-Phil
Duane
Edit: Phil beat me to it about the BackPack.
lol sorry duane, did not think about that. I see the 60mw xbee pro has a listed outdoor range of 1 mile though!