Pages: 1 ... 3 4 [5]   Go Down
Author Topic: VGA library - now with TV output  (Read 26522 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 92
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@Stimmer,
    I updated the circuit using the closest resistors I could find handy.  It didn't make much difference to the overall picture.  It's still just greyscale; no color whatsoever.

   I also tried to use a different TV in the house which is much newer (late '90s, early 2000s).  The picture stability was better, but the output was still black and white. 

    I'll try to get some digital pictures of my circuit and the TV output and post on here.

BKnight760
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 92
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I uploaded the "DrawingTestNTSC" sketch provided with the library.  It also comes out black and white on both TVs.
Logged

Offline Offline
God Member
*****
Karma: 32
Posts: 507
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Which version of the Arduino software are you using? I'm using 1.5.6r2 on Linux and it is working in colour on a fairly recent monitor (although is has to be said that the picture quality is not very good - if you know what 8-bit computer TV output used to look like in the 80s you'll know what to expect; if not, be prepared to lower your standards smiley )

Make sure you are connected via the programming port - the NTSC code clashes with the Native port causing flicker and hangs.
Logged


0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 92
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm using Arduino IDE version 1.5.3.  After uploading the sketch, I disconnect the Arduino board from the computer entirely.  I have it connected to the TV via the RCA cable, and to the power outlet via the DC barrel jack.  I'm feeding it the picture data from a second Arduino over software serial.  So, the data comes in on Serial1 on the DUE.  Would using the second hardware serial port conflict with it somehow?

    The picture quality isn't an issue here.  I know what the resolution and color palette is, and am aware that the graphics will look somewhat old-school.  I did graphics programming in BASIC in 4 colors on an 8088 computer a long while back, and this is certainly better than that.  I can mess with the color palette once I get it to display any color at all.

Logged

Offline Offline
God Member
*****
Karma: 32
Posts: 507
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Serial1 shouldn't cause a problem, it's no worse than using Serial via the programming port and that works fine.

It just sounds like the signal generated is too far out of spec for a TV that old. Those TVs use crystals in the colour circuit so the signal has to be accurate to a few ppm - newer TVs do the NTSC decoding on a FPGA/ASIC and the signal can be out by almost 1% and it still gives colour.

Unfortunately this is not something I am likely to fix. The code for the library is getting too difficult to maintain. If I did it all again I now know better ways to get a more accurate signal (and more easily maintainable code)
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I need output to VGA but in Mega 2560.
Is possible?
Logged

Québec
Offline Offline
God Member
*****
Karma: 17
Posts: 673
Hey bien!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello Stimmer

I was looking around the net before starting to weld my VGA wire, cause I always look before do. And I have note that the is a DDC I2C signal Chanel on the connector at pin 12 and 15.

http://en.wikipedia.org/wiki/VGA_connector

My question is, in the near future, do you plan to exploited it in a future version of you library? And if so, what colour of Wire do you plan to use? Usually, my I2C use Grey(SDA) and Brown(SCL).
« Last Edit: May 07, 2014, 09:45:08 am by Frédéric_Plante » Logged

As we fight our way northward into the great unknown, only that one thing remains certain...

Offline Offline
God Member
*****
Karma: 32
Posts: 507
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I wasn't going to add VGA I2C support to the library itself. I guess if someone else did I could add the code as an example but it wouldn't be part of the core library.

I've not had much success with I2C on the Due - I can't get any I2C device to work! I think the VGA I2C is just an EEPROM which should be quite simple. Processing the data from the EEPROM is harder - getting the make and model strings is quite easy, getting the sync ranges and native resolution is more difficult.
Logged


Québec
Offline Offline
God Member
*****
Karma: 17
Posts: 673
Hey bien!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well I have this on my list,

Finish the tlg10ua03 procedure explaining
Get this ov528 cam thing to work

Then I will start this, since the DUE has finally got in I will be able to co-experiment. smiley-wink
Logged

As we fight our way northward into the great unknown, only that one thing remains certain...

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Stimmer
In first place, great work!
I have an Arduino Mega 2560. Is it possible to run DueVGA on my board?
Thanks in advance
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is this working in Mega 2560 ??  smiley
Logged

Pages: 1 ... 3 4 [5]   Go Up
Jump to: