Shop OBEX P1 Docs P2 Docs Learn Events
Interested in doing video overlay ? SX Video OSD Module is now "open source" ! — Parallax Forums

Interested in doing video overlay ? SX Video OSD Module is now "open source" !

BeanBean Posts: 8,129
edited 2006-11-03 16:05 in General Discussion
Hey fellow SX'ers. I have decided to make the SX-Video OSD module "open source".
If you are interested (or if you just want to see some kickass SX/B code) you can download the schematic and SX48 source code for free.

Schematic: http://user.pa.net/~bean/sxvm/SXOSD%20Schematic%20Rev%20A.pdf

Source code: http://user.pa.net/~bean/sxvm/SX%20Video%20OSD%20&%20Display%2024x8%20Rev%20B.SXB

PAL Source code: http://user.pa.net/~bean/sxvm/SX%20Video%20OSD%20&%20Display%2024x8%20PAL%20Rev%20B.SXB

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

"People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin


Post Edited (Bean (Hitt Consulting)) : 10/24/2006 12:10:38 PM GMT

Comments

  • Mike CookMike Cook Posts: 829
    edited 2006-02-12 13:43
    Thanks Bean for posting this!

    I've got some LM1881's in my parts bins.

    Question: D1 can that be something like a 1N914 or 1N4148?

    Also in the attached schematic, should the wiper of VR1 be connected to R9 like this?

    attachment.php?attachmentid=40447

    Thanks!

    Mike


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "OEM NMEA GPS Module" Now available on ebay for only $17.49

    Product web site: http://www.allsurplus.net/Axiom/
    976 x 496 - 27K
    559 x 154 - 10K
  • BeanBean Posts: 8,129
    edited 2006-02-12 14:25
    Yes Mike it should. I got a little lazy drawing the schematic.
    Let me know if you make something interesting.
    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "SX-Video·Module" Now available from Parallax for only $28.95

    http://www.parallax.com/detail.asp?product_id=30012

    "SX-Video OSD module" Now available from Parallax for only·$49.95
    http://www.parallax.com/detail.asp?product_id=30015

    Product web site: www.sxvm.com

    "Ability may get you to the top, but it takes character to keep you there."
    ·
  • Mike CookMike Cook Posts: 829
    edited 2006-02-12 14:31
    Warming up soldering iron & opening a new SX52 Proto Board now!

    Thanks,

    Mike



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "OEM NMEA GPS Module" Now available on ebay for only $17.49

    Product web site: http://www.allsurplus.net/Axiom/
  • Mike CookMike Cook Posts: 829
    edited 2006-02-12 17:14
    Bean,

    Looks like I've got the circuit and code working, but have noticed something.

    I'm using a 1N4148 for D1, the only way I can get it to display anything is to short the diode (close SW1-1 DIM BACKGROUND). Is it supposed to work that way?

    <EDIT>

    If overlaying on top of video, I have to close SW1-1, If not overlaying then it does not matter.

    </EDIT>

    BTY: I'm using a terminal program right now to send characters to the overlay board, so R8 to ground is not installed.

    Other changes were:

    1. Did not have a 680K for R5 used a 470K & 220K in series.

    2. Did not have a 510 pF for C7·used a 539 pF.

    3. Running on a SX52 Proto Board, w/Parallax 50 MHz resonator (SIP), If I put the R2 (10K) in parallel with the resonator it won't boot, so did not install this part.



    Did change the following line in the code:

    DEVICE SX48, OSCHS1, BOR42, PROTECT

    to:

    DEVICE SX52, OSCHS1, BOR42



    Otherwise GREAT STUFF!

    Thanks Again,

    Mike

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "OEM NMEA GPS Module" Now available on ebay for only $17.49

    Product web site: http://www.allsurplus.net/Axiom/

    Post Edited (Mike Cook) : 2/12/2006 5:35:29 PM GMT
  • T&amp;E EngineerT&amp;E Engineer Posts: 1,396
    edited 2006-02-12 18:02
    Bean,

    Was there a reason why this was not developed with an SX-28?

    Thanks.
  • Mike CookMike Cook Posts: 829
    edited 2006-02-12 18:17
    I think the code size it too lage for a SX28.

    Mike


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "OEM NMEA GPS Module" Now available on ebay for only $17.49

    Product web site: http://www.allsurplus.net/Axiom/
  • Mike CookMike Cook Posts: 829
    edited 2006-02-12 18:46
    Proof that it Works!!

    attachment.php?attachmentid=40450··· attachment.php?attachmentid=40449




    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "OEM NMEA GPS Module" Now available on ebay for only $17.49

    Product web site: http://www.allsurplus.net/Axiom/
    400 x 300 - 103K
    400 x 300 - 181K
  • BeanBean Posts: 8,129
    edited 2006-02-12 21:22
    Mike,
    About the diode ? I have it reversed on the schematic. I'll have to fix that. And of course I can take "PROTECT" out of the device line.
    Are you thinking of combining the overlay with your GPS modules ?
    I want to see a picture with overlay (image in the background) [noparse];)[/noparse]

    Timothy,
    The SX28 doesn't have enough code space or RAM.

    [noparse][[/noparse]edit]
    schematic fixed... Sorry Mike.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "SX-Video·Module" Now available from Parallax for only $28.95

    http://www.parallax.com/detail.asp?product_id=30012

    "SX-Video OSD module" Now available from Parallax for only·$49.95
    http://www.parallax.com/detail.asp?product_id=30015

    Product web site: www.sxvm.com

    "Ability may get you to the top, but it takes character to keep you there."


    Post Edited (Bean (Hitt Consulting)) : 2/12/2006 9:26:10 PM GMT
  • Mike CookMike Cook Posts: 829
    edited 2006-02-12 21:42
    Thanks, reversing the diode did the trick.

    I can probably rig up something with one of my GPS modules, to overlay location and other values. I'll need to make this overlay board permanent. I wanted to construct it on a bread board first to see if I could replicate your work.

    I'll see what I can come up with and post to this thread.

    Mike


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "OEM NMEA GPS Module" Now available on ebay for only $17.49

    Product web site: http://www.allsurplus.net/Axiom/

    Post Edited (Mike Cook) : 2/12/2006 9:46:36 PM GMT
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-02-12 22:04
    I have long wanted to attach small camera to one of Ken Gracey's GPS-equipped model airplanes to get a video feed of what the plane "sees" and the relevant GPS data. That said, the DHS (Department of Homeland Security) may take exception to such a project....

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • Mike CookMike Cook Posts: 829
    edited 2006-02-15 12:10
    Here is the permanent version.

    attachment.php?attachmentid=40482

    Now I need to get to work on the GPS board to send data to the OBD board.

    Mike


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "OEM NMEA GPS Module" Now available on ebay for only $17.49

    Product web site: http://www.allsurplus.net/Axiom/
    827 x 638 - 232K
  • k_mank_man Posts: 3
    edited 2006-10-24 00:44
    Thanks for your generosity [noparse]:)[/noparse]

    What changes would need to be made for PAL based signal?

    Good thing I can hand solder most smd footprints now [noparse]:o[/noparse]
  • um..., Hium..., Hi Posts: 64
    edited 2006-10-24 01:02
    i love you bean, only the source code link is not working

    thank you for the post though
    MM
  • BeanBean Posts: 8,129
    edited 2006-10-24 01:21
    Oh, about that. I heard some rumors that someone might "build and sell" them (not parallax). So I took the source code off. I only have a few left (maybe none, I have to check what parts I have).
    And I am working on a high resolution overlay module (256x192 pixels). So as soon as I get a chance, I will put the source code back on. Give me a day or two.

    K_Man,
    · It will work with PAL in overlay mode. Just not in generate mode (no video input). I have code that SHOULD work to generate PAL, but it hasn't be thoughly tested.

    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

    "People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin


    Post Edited (Bean (Hitt Consulting)) : 10/24/2006 1:26:01 AM GMT
  • Harrison.Harrison. Posts: 484
    edited 2006-10-24 03:21
    Yeah I was wondering about how to obtain the 'open source' source code.· I sent a PM to you (Bean) and didn't get a response so I assumed you were either too busy or didn't want to answer the question.

    Anyways, thats good news that the links will be back up.

    Harrison
  • BeanBean Posts: 8,129
    edited 2006-10-24 12:10
    Okay, The links in the first post will work again.
    I added a link to the PAL version of the source code too.


    Here are the preliminary specs of the new module:
    · True·256(H) x 192(V) resolution. Black(transparent) and white only.
    · On-board 32K SRAM for multiple(4) video pages (you can draw on one page while another is displayed)
    · On-board 64K EEPROM·that can store·8 video pages and the character set.
    · The character set is modifiable by using serial commands. (You don't need to reprogram the SX).
    · Commands to draw lines and circles.
    · Very low power (shooting for 50mA @ 3.3V)
    ··On-board voltage regulator (runs from 3.6V to 9V)


    Enjoy everyone. Long Live SX/B...

    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

    "People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin


    Post Edited (Bean (Hitt Consulting)) : 10/26/2006 8:09:21 PM GMT
  • JavalinJavalin Posts: 892
    edited 2006-11-02 19:15
    Hi Bean,

    Way cool sharing this - especially the PAL stuff for us Europeans!

    Questions
    - I see you only pickup the sync (pin1) and the page (pin7) from the LM1881 sync chip? I assume then that's all thats needed to get the overlay in the right place?
    - Would this work (the circuit at least) on the Propeller? Or at least can you see any issues?
    Something like the attached circuit?

    Long live the SX and Propellers!

    Cheers,

    James

    EDIT - added circuit diagram

    Post Edited (Javalin) : 11/2/2006 8:03:51 PM GMT
  • BeanBean Posts: 8,129
    edited 2006-11-03 00:43
    James,
    All you need is SYNC from the LM1881. The page just goes to a pin for the user to sample.
    On the SX I use SYNC to generate an INTERRUPT (on the propeller you would just use WAITPEQ).
    When SYNC goes low, you wait a little while (6uSec I think), and if the SYNC is still low then you are in vertical blanking, so you reset your line counter.
    If SYNC is no longer low, then you are on a video line. You increament the line counter and output pixels as needed.

    I'm sure it could be done on the propeller, but I just don't have time right now to do it.

    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

    "People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
    ·
  • JavalinJavalin Posts: 892
    edited 2006-11-03 16:05
    thanks Bean.
Sign In or Register to comment.