Overlay-> Seeeduino done! ->Arduino MEGA done->Serial GPS

Store Forums Video Experimenter General Discussion Overlay-> Seeeduino done! ->Arduino MEGA done->Serial GPS

Viewing 15 posts - 16 through 30 (of 31 total)
  • Author
    Posts
  • #1963
    pistolero992000
    Participant

    Tonight I will try changing this:


    // inverted fast pwm mode on timer 1
    TCCR5A = _BV(COM5A1) | _BV(COM5A0) | _BV(WGM11);
    TCCR5B = _BV(WGM13) | _BV(WGM12) | _BV(CS10);

    to this:


    // inverted fast pwm mode on timer 1
    TCCR5A = _BV(COM5A1) | _BV(COM5A0) | _BV(WGM51);
    TCCR5B = _BV(WGM53) | _BV(WGM52) | _BV(CS50);

    as I realised that it was aiming to Timer1… ;D ;D ;D

    #1964
    Michael
    Keymaster

    Keep trying — looks like you are very close!

    #1965
    pistolero992000
    Participant

    @Michael wrote:

    Keep trying — looks like you are very close!

    Thanks!!!

    As most of the things I’ve changed I dont’t really understand them, can you explain to me how the video is rendered? because one thing I noticed is that changing the resolution of the arduino generated video causes a lot of timing issues and distortion.

    I successfully tried a NTSC 248×155 and a PAL 248×186 resolution, but in a stand-alone way.

    When trying that resolution with the LM1881 and the overlay code, I have a lot of Horizontal distorsion, much more than the vertical distortion (which is minimum, not to say zero distortion)…

    152×114 pixel was the best overlaying resolution but again, I’m sure it’s just a matter of timing.

    The assembler code used in videogen.cpp I definetely don’t understand and I’m pretty sure that in that piece of the code I will solve those issues.

    Can you please help me figuring out that?

    thanks a lot!!

    #1969
    Michael
    Keymaster

    The overlay code is not designed for resolutions higher than the default. With such a slow microcontroller, there are only 6 instruction cycles to process each pixel. Higher resolutions just are not possible with the overlay. I can’t do the overlay any faster than it is. Higher resolution would require each pixel to be processed in 5 or 4 instruction cycles, and it just can’t.

    #1987
    pistolero992000
    Participant

    Hi Michael,

    One thing I’ve noticed with the oscilloscope is that out of the vsync pin of the LM1881 there is nothing… Could that be the issue?

    If I unplug the wire from the seeeduino mega pin 18 – INT3 (implementation for SDA/SCL availability from Seeeduino Mega explanation) there is absolutely no change in the screen….

    watch this video…

    http://www.youtube.com/watch?v=tixY17bnVTM

    Maybe the LM1881N I’m using is broken…. ???

    Another thing I’ve noticed is that from LM1881N SYNCOUT PIN, I can read exactly the 64uS VSYNC… wierd???

    [attachment=1:adnpjpq6]LM1881N SYNCOUT PIN.jpg[/attachment:adnpjpq6]

    [attachment=0:adnpjpq6]LM1881N VSYNCOUT PIN.jpg[/attachment:adnpjpq6]

    I actually don’t know what to do, since I’ve bought the seeeduino mega 3.0, followed the wiring instructions and only to achieve the same results as with the arduino mega 2560 R3.

    Have you faced this problem before?

    thanks!!

    #1985
    pistolero992000
    Participant
    #1991
    Michael
    Keymaster

    what resolution are you trying to drive? To do overlay, you are not going to be able to do higher resolution than 128×96. At that resolution do things work?

    #1992
    pistolero992000
    Participant

    Hi,

    Seeeduino mega r3: successfully tested at
    – PAL 192×144 and up to 240×180 with good FPS
    – NTSC 184×115 up to 240×150 with good FPS.

    Arduino Mega R3: successfully tested using timer5, ICP5 (Board pin 48) at:
    – PAL 160×120 up to 240×180 but the higher the resolution the more horizontal flickering although FPS are excellent.
    – NTSC 160×100 (best) up to 240×150 with same considerations of PAL.

    The only strange thing, is that at higher resolutions, the vertical size of the overlayed video is a bit more that half the size of the screen size.
    The highest resolution I’ve tested successfully with seeeduino is 248×186 with very good FPS but almost half the vertical screen size.

    Here’s the video of the bigger screen tested with seeeduino at 192×144 pixels:

    http://youtu.be/r8hLlV0R5ps

    #1993
    pistolero992000
    Participant

    One question,

    Is there a way of making the lines and text more brilliant white?

    I mean, if I see the line over a video with different colours, the line is white but with the background color ghost…. It’s like if the white line is semi-transparent…

    I know there’s a difference between color and bw composite video… Does that have to do with this issue?

    Thanks!!!

    #1994
    pistolero992000
    Participant

    If you JUST want to take advantage of the overlaying capabilities of the VE Shield, the arduino mega r3 should work with the corresponding changes in the TVOutVE library and the correct wiring…. Same as the seeeduino but considering pin 48 (ICP5) as the input capture pin.

    Another thing I’ve realized is that the interrupt pins are not the same as seeeduino… See http://arduino.cc/en/Reference/attachInterrupt to select the correct pin to do the display.scanline=0;

    Cheers!!

    #1997
    pistolero992000
    Participant

    Hi,

    I succesfully tested:
    – Arduino Mega R3
    – Video Overlay–> PAL 160×100
    – IMU MPU-6050
    – Serial GPS to Serial1

    One word—> FPS are somewhat … mmmm … awful…. ;D ;D ;D

    https://www.youtube.com/watch?v=741bk6eP-Lk

    I added TMZ (Zulu Time) under DTZ… so video is not up to date but it shows how the result would be….

    again…. FPS… 😀 😀 😀 😀 😀

    #1998
    pistolero992000
    Participant

    https://www.youtube.com/watch?v=9iqzYv6DUu8

    don’t ask that much about FPS…. Arduino MEGA R3 does what it can hahahahahaha!!!!

    but I declare it a success!!!

    🙂 🙂 🙂

    #1999
    Michael
    Keymaster

    Absolute success! Very cool for such low end hardware. Great job!

    #2000
    pistolero992000
    Participant

    @Michael wrote:

    Absolute success! Very cool for such low end hardware. Great job!

    Thank you very much!!!

    The next step…. Arduino Due… 😮 😮 😮 😮 😮

    #2001
    pistolero992000
    Participant

    Cleaner version and better screen management…

    Surprisingly, at a PAL resolution of 192×208!!!

    http://youtu.be/frtSf0sggEk

Viewing 15 posts - 16 through 30 (of 31 total)
  • You must be logged in to reply to this topic.