July 30, 2014 at 2:04 pm #1963
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);
// 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 ;DJuly 30, 2014 at 2:21 pm #1964
Keep trying — looks like you are very close!July 30, 2014 at 3:10 pm #1965
Keep trying — looks like you are very close!
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!!July 31, 2014 at 2:47 pm #1969
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.August 16, 2014 at 3:04 pm #1987
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…
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!!August 17, 2014 at 12:35 am #1985August 17, 2014 at 1:31 pm #1991
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?August 17, 2014 at 2:21 pm #1992
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:August 17, 2014 at 2:27 pm #1993
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!!!August 17, 2014 at 2:43 pm #1994
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!!August 17, 2014 at 9:47 pm #1997
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
I added TMZ (Zulu Time) under DTZ… so video is not up to date but it shows how the result would be….
again…. FPS… 😀 😀 😀 😀 😀August 17, 2014 at 10:57 pm #1998
don’t ask that much about FPS…. Arduino MEGA R3 does what it can hahahahahaha!!!!
but I declare it a success!!!
🙂 🙂 🙂August 17, 2014 at 11:36 pm #1999
Absolute success! Very cool for such low end hardware. Great job!August 18, 2014 at 12:12 am #2000
Absolute success! Very cool for such low end hardware. Great job!
Thank you very much!!!
The next step…. Arduino Due… 😮 😮 😮 😮 😮August 18, 2014 at 5:04 am #2001
- You must be logged in to reply to this topic.