Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:59 02 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : vga working now need resistors  wondering is test program for colors

Author Message
tenij000
Newbie

Joined: 30/05/2025
Location: Netherlands
Posts: 26
Posted: 08:18pm 30 Jun 2025
Copy link to clipboard 
Print this post




is there a program to test te colors
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2522
Posted: 10:11pm 30 Jun 2025
Copy link to clipboard 
Print this post

 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2522
Posted: 10:23pm 30 Jun 2025
Copy link to clipboard 
Print this post

I got a breakout board like that and hdmi the same .
wiring vga is a pain

 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2579
Posted: 10:31pm 30 Jun 2025
Copy link to clipboard 
Print this post

Dim integer w = MM.HRES \ 16, h = MM.VRES, b, g, r, n=0
For b = 0 To 1
  For g = 0 To 3
   For r = 0 To 1
    Box n*w,0,w,h,,, RGB(r*255,g*64,b*255)
    Print w,h,n,r,g,b,RGB(r*255,g*64,b*255)
    Inc n
   Next
  Next
Next
End

Edited 2025-07-01 08:38 by phil99
 
tenij000
Newbie

Joined: 30/05/2025
Location: Netherlands
Posts: 26
Posted: 10:33pm 30 Jun 2025
Copy link to clipboard 
Print this post

if figure out how find vga connector and footprint that match gone try to make it more smoother
Edited 2025-07-01 08:38 by tenij000
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2522
Posted: 10:42pm 30 Jun 2025
Copy link to clipboard 
Print this post

the manual resistors match the vga colours. have I got wots this is about wrong?
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2579
Posted: 10:47pm 30 Jun 2025
Copy link to clipboard 
Print this post

Your picture shows the Pico pins connected directly to the VGA socket. That will overload the Pico and may damage it. The resistors are needed to limit the current.
 
tenij000
Newbie

Joined: 30/05/2025
Location: Netherlands
Posts: 26
Posted: 03:22am 01 Jul 2025
Copy link to clipboard 
Print this post

ok
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7820
Posted: 07:04am 01 Jul 2025
Copy link to clipboard 
Print this post

As Phil says, the resistors are needed to limit the current, but they do more than that. They act as a resistive mixer for green, allowing up to three green levels plus off. The four "colour" pins then act as a binary value to give 15 colours plus black.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9585
Posted: 07:45am 01 Jul 2025
Copy link to clipboard 
Print this post

Agreed.  The resistors are there for a reason.    

  stanleyella said  wiring vga is a pain


Why?

Analog VGA is much more forgiving then even SLOW speed HDMI.

MHOO....(my humble opinion only)
Smoke makes things work. When the smoke gets out, it stops!
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7820
Posted: 08:15am 01 Jul 2025
Copy link to clipboard 
Print this post

I've no problems with either. :)  Half the time I only use the console anyway.

The Adafruit breakout board makes DVI/HDMI very easy. It uses two more GPIO pins than VGA but it's far more flexible. In my experience the HDMI wiring isn't always critical. We aren't pushing the HDMI system anywhere close to what it can handle.

VGA is equally easy if you use a breakout board, just four resistors. I made my own by hot gluing a VGA connector upside down onto padboard and put the resistors from pads up to the VGA pins. It's ugly but it works fine. :)  You can also run VGA over CAT5 so some very cheap and reasonably flexible leads are available. :)



It's more hassle remembering which firmware I loaded...   :(
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Martin H.

Guru

Joined: 04/06/2022
Location: Germany
Posts: 1220
Posted: 10:22am 01 Jul 2025
Copy link to clipboard 
Print this post

  tenij000 said  
is there a program to test te colors

Mode 2
Dim Col(15) As Integer :Restore colors:For f=1 To 15:Read Col(f):Next
CLS :For f=0 to 15:read c$
Box 0,f*15,320,16,,Col(f),Col(f)
Text 32,f*15,c$
next
colors:
'--Colorscheme accordung to Spritecolors
Data RGB(BLUE),RGB(GREEN),RGB(CYAN),RGB(RED)
Data RGB(MAGENTA),RGB(YELLOW),RGB(WHITE),RGB(MYRTLE)
Data RGB(COBALT) ,RGB(MIDGREEN),RGB(CERULEAN),RGB(RUST)
Data RGB(FUCHSIA),RGB(BROWN),RGB(LILAC)

Data "BLACK","BLUE","GREEN","CYAN","RED"
Data "MAGENTA","YELLOW","WHITE","MYRTLE"
Data "COBALT" ,"MIDGREEN","CERULEAN","RUST"
Data "FUCHSIA","BROWN","LILAC"



Edited 2025-07-01 20:30 by Martin H.
'no comment
 
javavi

Guru

Joined: 01/10/2023
Location: Ukraine
Posts: 453
Posted: 02:31pm 01 Jul 2025
Copy link to clipboard 
Print this post

@tenij000
For the VGA video output of the PicoMite, you can make a resistor switch to switch between two 16-color palettes.
I think that even the Windows palette is even more applicable in practice due to the two shades of gray.

 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2522
Posted: 02:57pm 01 Jul 2025
Copy link to clipboard 
Print this post

  Grogster said  Agreed.  The resistors are there for a reason.    

  stanleyella said  wiring vga is a pain


Why?

Analog VGA is much more forgiving then even SLOW speed HDMI.

MHOO....(my humble opinion only)

it's just not strip board friendly. my first vga when a multi turn pot was in the circuit but I posted adjusting it did nothing and it was removed.
cheap vga lead from ebay just for the sockets.

 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7820
Posted: 03:14pm 01 Jul 2025
Copy link to clipboard 
Print this post

Interesting, Javavi. That's not the same diagram that you posted last time. R6 went to G1, not G0. It looks like the correction fairy has been round to visit. :)

A couple of things I don't like about the Windows colours is that 5 & C are very similar and orange is missing. It certainly has its uses though.
.
Edited 2025-07-02 01:30 by Mixtel90
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
javavi

Guru

Joined: 01/10/2023
Location: Ukraine
Posts: 453
Posted: 04:38pm 01 Jul 2025
Copy link to clipboard 
Print this post

  Mixtel90 said  Interesting, Javavi. That's not the same diagram that you posted last time. R6 went to G1, not G0. It looks like the correction fairy has been round to visit. :)
A couple of things I don't like about the Windows colours is that 5 & C are very similar and orange is missing. It certainly has its uses though.
.

Hi Mick,
Yes, there was a mistake in the previous diagram, I corrected the diagram here.
And also corrected color 5 in the color chart, this seems to be correct:
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7820
Posted: 06:08pm 01 Jul 2025
Copy link to clipboard 
Print this post

Thanks. That looks a lot better. :)

I'm just using your switching scheme on my Multi2 design.  :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025