VGA library - now with TV output

Anyway you explored a new way! I hoped I was wrong because it would be useful to have 5V from almost any monitor.
Unfortunately it seems the 5V cames only from graphic cards.
We must rely in USB ports or something else.

Hi, is there any possibility to use 640x480 mode?

Thanks

And one more question... can I somewehere download older version of DueVGA which doesn't use DMA?

Hi, is there any possibility to use 640x480 mode?

Not with color, I tried even only 400x240 and that was not successful.

HelloWorld.ino DueVGA lib example uses 640x480 monochrome.

See above in this thread that you can go much higher than the "normal" 800x600 VGA (1152x768 WXGA, with duplicate area), my favorite monochrome resolution is 1024x675.

And one more question... can I somewehere download older version of DueVGA which doesn't use DMA?

Unrelated to DueVGA, this short video shows the benefits of DMA:

Hermann.

Thank you very much for your answer. Using DMA has one advantage (speed) but some disadvantages too - pin assignment is fixed, library is closely tied to DUE and flexibility of algorithm change is lost. For my project I need color output and at least 64 characters per line.

Anyway I have to say that DueVGA is great library.

If I remember, the first versions of DueVGA don't use DMA, isn't there any archive to download these older versions?

Thanx

I cannot help on the older lib, Stimmer should be able to answer that.

For color you have maximally 320x240, and you need 64 characters, so you require a 4xH font, here is a 4x6 font just as a sample that gives you 320/5=64 characters per row, and 240/7=34 rows:

You can get even 80 characters per row with this 3x5 (not that easy to read) font, with 40 rows:
http://robey.lag.net/2010/01/23/tiny-monospace-font.html

Hermann.

Maybe this 0.222 version?

HermannSW and zoomx, your answers are very useful to me, thank you verymuch.

@stimmer,
I want small size (right now size of font you add 8x8) and big size font (say 30px X 50px) on same sketch, than what changes i have to made. and if it not possible with your library than what i have to do if i want big size of font.

DueVGA lib provides 8x8 font.

For 32x32 font see "void drawText32(char *text, int x, int y)" from sketch of this previous posting in this thread:
https://forum.arduino.cc/index.php?topic=150517.msg2575055#msg2575055

Hermann.

Great Hermann, it's work.Thank you so much.
But is this possible to display proper shape of font, so it's look like good.right now Square are appear at the corner.

Hey folks,
I wanted the share the project I am working on. Its a video synthesizer based on an Arduino Due, which is making use of Stimmers DueVGA lib.

I wasn't able to add rotary encoders because of conflicting interrupts, so I switched to push buttons, wich works flawless and will also add to the design (I hope ::slight_smile: ). I am also panning on using slide faders at the RGB output signal from the Arduino, so I can change the color the analog way. I tested it with rotary resistors and it worked. The resolution is 800x600 at the moment. I dont think it would make much sense to go higher, the "video" would be lagging very hard.
Thanks for all the work you guys are putting into helping others here! Much Appreciated

DIVISYNO - An Arduino based video synthesizer

Once the project is done I will release a documentation of it.

@Stimmer : great library ! It is what I was looking for! I'm gonna test it right now !
@Revolverduino : Amazing patterns !! Waiting to see your progress

It is also possible to do something like the following video

Using an Arduino Nano and a VGA monitor

Its a completely crazy concept, but it seems to work nicely

:slight_smile:

1 Like

WOW! Looks very nice and stable. It's possible to enable composite PAL/NTSC tv output? What language do you use? What about cpu utilization, is there any free CPU power?

Composite is a long way from VGA.. not easily exchangable, there is not the power in an arduino UNO to do this with PAL/NTSC. Manily written in C, but with time critical parts done in Asm, with very little CPU time left.. but it is only 16MHz ! :slight_smile:

I found something like that. What do you think?
http://mail.blockyourid.com/~gbpprorg/mil/vga/vga2comp.png

cdxa:
I found something like that. What do you think?
http://mail.blockyourid.com/~gbpprorg/mil/vga/vga2comp.png

URL not found :frowning:

I thought about Analog Devices AD725 RGB to NTSC/PAL encoder. What maximum resolution can you achive on ATmega328? It is hard to convert it to eg. ATSAM3X8E like in arduino DUE?

You can forget the 8bit Arduinos, none of those will ever be able to generate VGA signals (the library is named DueVGA because it uses special hardware features of the Due for driving VGA, mainly 84MHz CPU frequency and DMA).

If you want VGA, you need to invest 12$ for an Arduino Due (free shipping):
http://www.aliexpress.com/wholesale?catId=0&initiative_id=SB_20160819153919&SearchText=arduini+due

And you do not need any converter, DueVGA can drive NTSC as well:
https://stimmer.github.io/DueVGA/

Hermann.