Show Posts
Pages: [1]
1  Using Arduino / Displays / Re: Error: Arduino Mega 2560 - VGA OUTPUT on: November 23, 2012, 03:42:58 pm
hmmm...
Are you shure that the Arduino Mega cant handle it
I want to use 1 Arduino for that VGA, for my LEDs & Buttons and  for my DCF 77 time modul. I thought if I buy the big on he can handle this.
2  Using Arduino / Displays / Re: Error: Arduino Mega 2560 - VGA OUTPUT on: November 22, 2012, 03:10:05 pm
It runs know, but if I put in my code for the LEDs and the random numbers, the Screen is splinted into many black bars. smiley-razz
I think the problem is that the Arduino draw the line, then it edited my code(=no monitor signal) and then it draw a line again.

My question is now:
Can the arduino handle two different codes to the same time?
3  Using Arduino / Displays / Re: Error: Arduino Mega 2560 - VGA OUTPUT on: November 22, 2012, 01:20:45 pm
I GOT IT ^^ smiley-mr-green smiley-mr-green smiley-mr-green
22 Ohm to V& H and it works on both ^^

i can use SET_B_ON_COMPARE or CLEAR_B_ON_COMPARE (same result)

thx for helping  smiley-lol
4  Using Arduino / Displays / Re: Error: Arduino Mega 2560 - VGA OUTPUT on: November 22, 2012, 12:46:38 pm
When you say 473 do you mean 473 ohms (unusual value, but possible if it is a high precision resistor) or does the resistor have 473 written on it (which could mean 47000 ohms)? If you are unsure, check it with a multimeter.

For V and H sync just experiment, the value shouldn't be too critical, try whatever resistors you have between 10 ohms and 100 ohms.

Are the monitors LCD or CRT? Both should work, though LCD monitors can sometimes be a bit random.

473 Ohms smiley-wink
I had check it with a multimeter ( i had only 2 different resistors, that i but together so i checked)
both are LCD monitors
ok i try other resistors for V & H
5  Using Arduino / Displays / Re: Error: Arduino Mega 2560 - VGA OUTPUT on: November 22, 2012, 12:12:42 pm
OK I got some resistors  smiley-wink
V & H sync I got 68,5 ( i had no better one)
RGB I got 473 (also the best I found)
I checked all connection, they are ok.
I heard on all Pins a buzz with my headset (R,G,B ->  HIGH frequency& loud , V Sync -> low frequency & loud, H Sync -> low frequency & very quiet)
Also I checked my monitor and it is ok, but as a precaution I took a second monitor. But also no signal (black screen)
I have no idea what the problem is
Should I give the H Sync a lower resistor?
6  Using Arduino / Displays / Re: Error: Arduino Mega 2560 - VGA OUTPUT on: November 22, 2012, 08:45:58 am
Yes, you should see "Line 000 - hello!" "Line 001 - hello!" etc. Your resistors sound ok, I am using 68R and 470R

Things to try: experiment with the values of the resistors. My monitor refuses to sync if the values are too low.
At lines 283 and 291, try changing CLEAR_B_ON_COMPARE to SET_B_ON_COMPARE for one, other or both lines.
If you have an oscilloscope or frequency meter, check the vsync and hsync outputs to see that you are getting something. Or at least check the vsync output with headphones and make sure you hear a buzz.

Ok
I tried all combinations on lines 283 and 291. It did not work.
I will try to get 68 ohm and 470 ohm resistors and try it again smiley-wink
7  Using Arduino / Displays / Re: Error: Arduino Mega 2560 - VGA OUTPUT on: November 21, 2012, 02:47:43 pm
ok
i change the code like this
Quote
#define UCPHA0 1
const byte pixelPin = 1;     // <------- Pixel data
const byte hSyncPin = 9;     // <------- HSYNC
const byte MSPIM_SCK = 4;    // <-- we aren't using it directly
const byte vSyncPin = 12;    // <------- VSYNC

and I switch DB 3 with 9 and DB 10 with 12

ther should be an output with "Line i - hello!" on the display but i see nothing  smiley-cry

if I put the VGA cable into my output, only the message “NO CONECTION” goes away and the screen gets black.

Or is this a problem with the resistors?
On V & H Sync I have 70 ohm and on RGB I have 475 ohm


8  Using Arduino / Displays / Re: Error: Arduino Mega 2560 - VGA OUTPUT on: November 21, 2012, 06:19:10 am
Hi,
the kompiling works now. THX

If i am at home i will try it on my Arduino. When it works it would by nice ^^

thx for helping smiley-wink

-David
9  Using Arduino / Displays / Error: Arduino Mega 2560 - VGA OUTPUT on: November 20, 2012, 04:12:22 am

Hi,

I have a little problem with my VGA-Output and the Arduino Mega 2560.  smiley
I have built a little display with 26 LED’s, and I display on this random numbers form 0-99.
I want to display different texts that fit to the numbers with the VGA-Output. I tried to do the output like in this TuT
http://www.gammon.com.au/forum/?id=11608
And I got the source from here http://gammon.com.au/Arduino/VGA_output.zip
 
But if I try to upload the code on the Arduino then there is an Error: 
‘UCPHA0’ was not declared in this scope.

I must admit I don’t understand all of the code and I don’t finde the Error smiley-cry

Could somebody help me?
David
Pages: [1]