Shop OBEX P1 Docs P2 Docs Learn Events
SX project to Mirror a video image??? — Parallax Forums

SX project to Mirror a video image???

Jim FouchJim Fouch Posts: 395
edited 2005-07-22 19:03 in General Discussion
I know some of you guys have been using the SX to generate a video signal and create text/graphics.

Does anyone know how hard it would be create a project on the SX to mirror a video image coming from a camera. Or maybe there is a device out that already does it.

Just wondering.

Also for you video guys, check out this link to a very cheap LCD but very good video monitor. I bought one and ripped out the display and it only needs 12V and your video signal. It also has on screen controls for Color, Brightness, Contrast.

http://www.tigerdirect.com/applications/searchtools/item-Details.asp?EdpNo=1423486&sku=G202-1000

Comments

  • BeanBean Posts: 8,129
    edited 2005-07-21 16:37
    Usually that functionallity is built into the monitor.
    It would not be an easy thing to do. Expecially if you want color.
    Bean.

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

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

    Product web site: www.sxvm.com

    "One experiment is worth a thousand theories"
    ·
  • cbmeekscbmeeks Posts: 634
    edited 2005-07-21 17:21
    mov rc,#incoming_signal
    flip rc
    mov vid_out, rc
    
    




    Sorry...couldn't resist. lol

    But yeah, Bean is correct. Would be very difficult. I imagine you would need some type of analog converter, compressor, etc.

    I *THINK* an Amiga with a Video Toaster can do it....you can get one of those setups on eBay for about $400 in good shape.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://metroidclassic.com

    =========
    DMCA Sucks
    RIAA Sucks
  • dkemppaidkemppai Posts: 315
    edited 2005-07-21 18:10
    Jim Fouch said...
    I know some of you guys have been using the SX to generate a video signal and create text/graphics.

    Does anyone know how hard it would be create a project on the SX to mirror a video image coming from a camera. Or maybe there is a device out that already does it.

    Just wondering.

    Also for you video guys, check out this link to a very cheap LCD but very good video monitor. I bought one and ripped out the display and it only needs 12V and your video signal. It also has on screen controls for Color, Brightness, Contrast.

    http://www.tigerdirect.com/applications/searchtools/item-Details.asp?EdpNo=1423486&sku=G202-1000

    If you're using·a CRT, maybe you could flip the polarity of Horizontal Deflection coil...

    -Dan
    ·
  • Guenther DaubachGuenther Daubach Posts: 1,321
    edited 2005-07-21 18:42
    Following cbmeeks...

    if some of you guys are still familiar with the good old dBase language, I have created two new commands that are good for any application:

    SET BUGS OFF
    DO WHAT I WANT

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Greetings from Germany,

    G
  • Jim FouchJim Fouch Posts: 395
    edited 2005-07-21 20:00
    cbmeeks,

    This is for a motorcycle rear mirror replacement project. Not sure an Amiga would "FIT" well into my design... Maybe an Atari STacy laptop.... wink.gif Boy that brings back some memories.... old ones....
  • cbmeekscbmeeks Posts: 634
    edited 2005-07-22 13:01
    Guenther Daubach said...
    Following cbmeeks...

    if some of you guys are still familiar with the good old dBase language, I have created two new commands that are good for any application:

    SET BUGS OFF
    DO WHAT I WANT

    hehehehe...yeah, I use that version all the time...a lot like:

    /*Windows '98 source code.*/
    /*
     TOP SECRET Microsoft(c) Code
     Project: Chicago(tm)
     Projected release-date: Summer 1998
     */
    
     #include "win31.h"
     #include "win95.h"
     #include "evenmore.h"
     #include "oldstuff.h"
     #include "billrulz.h"
     #define INSTALL_HARD
    
     char make_prog_look_big 1600000 ;
    
     void main()
     {
         while(!CRASHED)
         {
            display_copyright_message();
            display_bill_rules_message();
            do_nothing_loop();
    
            if (first_time_installation)
            {
                make_50_megabyte_swapfile();
                do_nothing_loop();
                totally_screw_up_HPFS_file_system();
                search_and_destroy_the_rest_of_OS/2();
                hang_system();
            }
    
            write_something(anything);
            display_copyright_message();
            do_nothing_loop();
            do_some_stuff();
            if (still_not_crashed)
            {
                display_copyright_message();
                do_nothing_loop();
                basically_run_windows_3.1();
                do_nothing_loop();
                do_nothing_loop();
            }
        }
    
        if (detect_cache())
            disable_cache();
    
        if (fast_cpu())
        {
            set_wait_states(lots);
            set_mouse(speed, very_slow);
            set_mouse(action, jumpy);
            set_mouse(reaction, sometimes);
        }
    
        /* printf("Welcome to Windows 3.11"); */
        /* printf("Welcome to Windows 95"); */
        printf("Welcome to Windows 98");
    
        if (system_ok())
            crash(to_dos_prompt);
        else
            system_memory = open("a:\swp0001.swp", O_CREATE);
    
        while(something)
        {
            sleep(5);
            get_user_input();
            sleep(5);
            act_on_user_input();
            sleep(5);
        }
        create_general_protection_fault();
    
    }
    
    

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://metroidclassic.com

    =========
    DMCA Sucks
    RIAA Sucks
  • Guenther DaubachGuenther Daubach Posts: 1,321
    edited 2005-07-22 15:21
    cbmeeks,

    besides all the SX assembly code I'm mostly looking at right now, I loved to see some real C code again. Thanks for disclosing the secrets of the inner workings of Windoze. This helps me a lot to understand why Win 98 crashed that often on my machine. BTW, I like the way how new software versions are created. Commenting out and inserting a new

    printf("Welcome to Windows xx");

    is the most brilliant method I ever saw, I think I'll make use of it in my future projects (should work with SX code as well).

    Do you think, Win XP has been created the same way, or is it possible that they have switched to an object-oriented approach now, using C++, or possibly C#? smile.gif

    Well, back to the topic:

    Mirroring a video image would mean to capture the data for each frame line from the camera, and while sending it out to the display in reverse order, you would have to capture the data for the next line. IMO, this would require two separate buffers for two lines, alternatively used - one to store the new line data, and one for reading out the last line's data in reverse order. IOW, external memory would be required as the SX does not have enough internal RAM.

    I think, Dan had a good point:

    >> If you're using a CRT, maybe you could flip the polarity of Horizontal Deflection coil...

    Why not? This would be a real KISS solution.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Greetings from Germany,

    G
  • Greg CGreg C Posts: 9
    edited 2005-07-22 16:04
    Guenther Daubach said...

    I think, Dan had a good point:

    >> If you're using a CRT, maybe you could flip the polarity of Horizontal Deflection coil...

    Why not? This would be a real KISS solution.

    Sorry to pipe in, but I was wondering if the CRT could be mounted in a way to reflect off the windscreen of the motorcycle to create a HUD effect?· This would flip the image as well.
  • cbmeekscbmeeks Posts: 634
    edited 2005-07-22 18:19
    Greg C said...
    Sorry to pipe in, but I was wondering if the CRT could be mounted in a way to reflect off the windscreen of the motorcycle to create a HUD effect? This would flip the image as well.

    A HUD on a motorcycle? Those things are tooo dangerous...I will stick to my Rickshaw thank you. :-P

    lol

    cbmeeks

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://metroidclassic.com

    =========
    DMCA Sucks
    RIAA Sucks
  • Jim FouchJim Fouch Posts: 395
    edited 2005-07-22 18:22
    Greg C.,
    That's a neat idea.

    I wonder if I could just pull the LCD away from the backlight and flip it around???

    I have heard of companies that sell a complete system that has a rear facing bullet camera that replaces your rearview mirrors. The have some hind of converter that they feed the signal thru that mirrors the image so you see it like a mirror would.

    I wss pretty sure that the SX would not have enough memory, but I wonder if it would have the speed.

    I'm now pondering my next project for the SX..... Porting Excel to it....· LOL· Come on guys, you'd be amazed what you can do with 136 bytes of ram if you put your head to it.....·· ;-)

    Jim
  • Paul BakerPaul Baker Posts: 6,351
    edited 2005-07-22 19:03
    Why not just buy a product which already does this?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·1+1=10
Sign In or Register to comment.