Video overlay using the propeller & EL1883 (Version 1.2)
Bean
Posts: 8,129
Okay,
· Now that the Hydra book is out I'm really going to town with the propeller.
· Here is my first project. It needs a be converted into an object, but it works.
· You'll need a LM1881 sync seperator ic (very common).
· Attached is a picture of the words "Propeller Video Overlay" overlaid on the hydra default game screen.
· (The picture is kinda blurry, but you get the idea).
· It was built on the propeller demo board using pins P0 and P1 only.
· I'd like to make this into a sellable project (serial interface) so comments are very welcome.
P.S. I'd like to lay claim to HITT_ as my filename prefix.
[noparse][[/noparse]EDIT] Posted updated version. Allows plotting points and 2 text sizes.
[noparse][[/noparse]EDIT] 12-08-2006 Posted version 1.0. Make overlay code an object. Added many enhancements.
·········· NOTE: LM1883 SHOULD BE EL1883 (Sorry about that).
[noparse][[/noparse]Edit] 12-14-06 Posted·version 1.2. Added new modes of drawing text. New methods. Tweaked assembly.
Bean.
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1
"USA Today has come out with a new survey - apparently, three out of every four people make up 75% of the population." - David Letterman
Post Edited (Bean (Hitt Consulting)) : 12/15/2006 3:29:11 PM GMT
· Now that the Hydra book is out I'm really going to town with the propeller.
· Here is my first project. It needs a be converted into an object, but it works.
· You'll need a LM1881 sync seperator ic (very common).
· Attached is a picture of the words "Propeller Video Overlay" overlaid on the hydra default game screen.
· (The picture is kinda blurry, but you get the idea).
· It was built on the propeller demo board using pins P0 and P1 only.
· I'd like to make this into a sellable project (serial interface) so comments are very welcome.
P.S. I'd like to lay claim to HITT_ as my filename prefix.
[noparse][[/noparse]EDIT] Posted updated version. Allows plotting points and 2 text sizes.
[noparse][[/noparse]EDIT] 12-08-2006 Posted version 1.0. Make overlay code an object. Added many enhancements.
·········· NOTE: LM1883 SHOULD BE EL1883 (Sorry about that).
[noparse][[/noparse]Edit] 12-14-06 Posted·version 1.2. Added new modes of drawing text. New methods. Tweaked assembly.
Bean.
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1
"USA Today has come out with a new survey - apparently, three out of every four people make up 75% of the population." - David Letterman
Post Edited (Bean (Hitt Consulting)) : 12/15/2006 3:29:11 PM GMT
Comments
I'll have to wire this up!
Live picture looks better than this! (Camera is a crappy X-10 wireless guy)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mike
Post Edited (Mike Cook) : 11/28/2006 1:32:45 AM GMT
I had a feeling it would only be a short time before someone did this.
Okay, I'll remember your Filename prefix.
The more I use the propeller the more I like it.
SPIN is taking a little longer to get used to though, but I'll get there.
The screen is bit mapped so you can draw lines and pixels as well as text. It is 256 pixel wide by 192 pixel high.
It must be the kidney stone meds I'm taking, because I actually put comments in the code this time :O
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1
"People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
Post Edited (Bean (Hitt Consulting)) : 11/28/2006 1:39:40 AM GMT
Bean - this is pretty cool! - Wish I knew what I was doing!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mike
That is wonderful, and more cost effective than what I had in mind for my project.
Just to clarify though, I am assuming your using the TV object to project onto?
You can use any NTSC (TV) video output. From a camera or DVD player or whatever. In my picture I just happen to be using the output from the Hydra. It looks like Mike is using a camera.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1
"People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
Post Edited (Bean (Hitt Consulting)) : 11/28/2006 3:45:31 PM GMT
I would like to use something like this in conjuction with Phils PropCam.
Great Job!!!
It allows you to plot points and easily draw strings with two text sizes.
Enjoy,
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1
"People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
·
What are you using to work out the vscl and vcfg registers on the propeller?
Is this an NTSC overlay?
Cheers,
James
Yes it is NTSC overlay.
The manual for the Hydra explains how the video generation hardware works.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1
"People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
·
Great work!
Is there any chance of you producing a version that's PAL compatible (or is it already?)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheers,
Simon
www.norfolkhelicopterclub.co.uk
You'll always have as many take-offs as landings, the trick is to be sure you can take-off again ;-)
Happy to buy the Hydra manual, but what level of detail is there on the Propeller video hardware and in particular the vcfg/vscal/ctra etc registers and waitvid commands? Im cautious about purchasing a manual that skims the surface.
SimonL - i've been working with some success on a PAL video overlay based on the tv.spin driver. Few bits to sort out, hence the above queries.
Thanks,
James
There is a chapter that explains the counters and a chapter that explains the video hardware. I don't have the manual with me to tell you how many pages the chapters are, but they are not very long. But they do give you the information you need to figure them out on your own. At $70 the book/CD is on the expensive side, but it has knowledge that you just can't get anywhere else, so I think it is worth it.
The existing code would work for PAL. But everything will be near the top since PAL has more vertical lines than NTSC.
You can just adjust the linecnt limits to center it for PAL. (#45 & #237)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1
"People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
·
Got my PAL one working.· I say *mine* as its a hack and slash of the tv.spin and yours.· The only thing to get going now is the colours.....· White-ish only at present.· Benny of this way is the pre-written graphics.spin object.
Attached is a (bad) picture!
James
Bean: Thanks for the info [noparse]:)[/noparse]
Javalin: Is that you doin' the drivin'? And is it a Lotus? (Sorry -- off-topic!)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheers,
Simon
www.norfolkhelicopterclub.co.uk
You'll always have as many take-offs as landings, the trick is to be sure you can take-off again ;-)
Nope, its a 1971 (or is it 79?) Historic formula Ford. Its a mate driving. see http://www.hscc.org.uk/
Did I see you post stuff a while ago for remote control type stuff for RC aircraft. I fly (RC) as well and it was something I am also interested in - but have no time at present. Did you get anywhere?
Cheers,
james
Looking forward to the release of the object!!
· I'm just cleaning up the code. Should be this weekend.
· I have added the ability to detect if there is no video input and generate it's own sync pulses. Also an assembly routine to draw lines (much faster), also filled circles. And Draw, Erase, Xor modes for all routines.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1
"People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
Post Edited (Bean (Hitt Consulting)) : 12/8/2006 6:15:47 PM GMT
Anyway the idea was to have a Video display with Point of Sale advertising and an overlay of your cash register transactions.
Seems that you could have your advert on a DVD player and the Propeller could drive the rest with an overlay to the video screen.
Maybe this can evolve into a commercial application for Bean.·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"If you want more fiber, eat the package.· Not enough?· Eat the manual."········
Post Edited (Kramer) : 12/8/2006 6:21:28 PM GMT
· This will be a product for me. I've already stopped production of the old overlay module (I've bee sold out for quite awhile now). In preparation of making this new "Hi-Res" overlay module.
· In fact it has come together much faster than I had even hoped. (A testiment to the propeller and the Hydra, not my ability).
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1
"People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
·
Does overlay/generate, fast assembly line drawing, Draw, Erase, Xor modes.
Check it out and let me know what you think.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1
"People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
·
Kerry
That should have been EL1883 and digikey has them.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1
"People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
·
I'll need to rewire my LM1881 circuit, got something out of wack (video is tearing a bit), and it's wired up on a plastic bread board. Need to wire it up on a perf board.
How critical is the 56nF? All I had on hand was a .01uF
GREAT work keep it up! Looks like I will add this to my swimming pool control box, Now I can have·video of the back yard and display·pool data over the video!
THANKS!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mike
The values I took were from the recommended NTSC circuit for the EL1883. If you using the LM1881 use the recommended NTSC circuit for that chip.
I chose the EL1881 because it will run from 3.3V and it's available in RoHS.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1
"People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
·
Or I bet ya the values for this excellent device will work!
http://user.pa.net/~bean/sxvm/SXOSD%20Schematic%20Rev%20A.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mike
Yeah they would work. That is an excellent device, but it is being replaced by this really cool hi-resolution overlay board that I'm working on [noparse];)[/noparse]
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1
"People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mike
· You got the small text very clear. Nice job.
· Does it switch okay when the video input is removed ?
· Does anyone have any ideas about if the propeller could do the function of the LM1881 ? That is seperate the sync signals from the video input.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1
"People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
Post Edited (Bean (Hitt Consulting)) : 12/9/2006 4:47:12 PM GMT