element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Experts, Learning and Guidance
  • Technologies
  • More
Experts, Learning and Guidance
Ask an Expert Forum cga to vga converter uPython
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experts, Learning and Guidance to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 46 replies
  • Subscribers 290 subscribers
  • Views 5943 views
  • Users 0 members are here
  • python
  • raspberry pico
  • ask_an_expert
  • microcontrollers
  • teensy
  • vga
Related
See a helpful answer?

Be sure to click 'more' and select 'suggest as answer'!

If you're the thread creator, be sure to click 'more' then 'Verify as Answer'!

cga to vga converter uPython

rlaci
rlaci over 1 year ago

Hi

im new to uPython and needing some help with fast interrupts, port handling, reading into controller, handling the big amount of data and speed

my main aim is to get it working on raspberry pico, as colors 1bit resolution is enought as its an industrial equiment with RGBHV 15.6khz input(output from the machine) need to transfer it to 31khz VGA standard output for an lcd monitor

any help welcome

thanks!

  • Sign in to reply
  • Cancel

Top Replies

  • shabaz
    shabaz over 1 year ago +3
    There's a website listing monitors that support your resolution: http://15khz.wikidot.com/ I think it's far more likely that you'll be able to source a monitor if you search long enough on eBay, than…
  • beacon_dave
    beacon_dave over 1 year ago in reply to shabaz +3
    There is a PIO based implementation of a VGA driver discussed here if anyone is interested: https://www.youtube.com/watch?v=ZXMdZGQzrWg
  • michaelkellett
    michaelkellett over 1 year ago in reply to rlaci +3
    It's very, very difficult. You need to delve quite deeply into the data sheets. The things to look for are the IO toggle rate, maximum clock rate of internal RAM, and maybe some benchmarks of complete…
Parents
  • dougw
    0 dougw over 1 year ago

    Are you looking for something like this RGB to VGA adapter? They cost about $1.

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 1 year ago in reply to dougw

    I think they mean the old IBMPC Color Graphics Array RGBI TTL output

    https://en.wikipedia.org/wiki/Color_Graphics_Adapter#DE-9_connector_for_RGBI_monitor

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz over 1 year ago in reply to dougw

    Hi Doug,

    He needs to change pixel rate, which requires electronics. I suspect the cable in the photo is unlikely to do that, there's no power source connection in the photo (there may be power delivered through a VGA connector, but I believe it's in the direction from PC->monitor, not monitor->PC).

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 1 year ago in reply to rlaci

    Probably just ignoring the intensity bit in that case.

    Perhaps something more like this then:

    https://www.amazon.co.uk/Mcbazel-Arcade-Converter-Monitor-Projector-Black/dp/B078ZDTLBJ/ref=sr_1_1

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz over 1 year ago in reply to beacon_dave

    That looks like it will do the job!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rlaci
    0 rlaci over 1 year ago in reply to shabaz

    i saw that cable before and i predict its from vga to rgb not from rgb to vga

    solutions what i found as standalone products:

    - GBS2019 Xvga box but was highly delayed when i first searched it

    - getting a 15khz monitor, i got one and not working possibly the 63Hz vertical sync messes it up

    - Extron VS 304 looks documented like can work, but at the rgbhv place the resolution was not really documented i got this info here from beacon_dave

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 1 year ago in reply to rlaci
    rlaci said:
    i saw that cable before and i predict its from vga to rgb not from rgb to vga

    It's a bidirectional cable but passive.

    AV installs often ran RGBHV over 5 coax cables whereas PC's used the 15pin Hi Density 'D' type connector with additional I2C DDC data line. Early multisync monitors used to come with the 5x BNC as default as well. These type of cables were common place to convert between the two physical formats.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rlaci
    0 rlaci over 1 year ago in reply to beacon_dave

    i saw a DVS 406 unit in europe, is it better or worse newer older equipment?

    i hope it does not mean the signal just passes throught and no processing done for the output signal :D

    • Scales composite video, S-video, component video, and optional SDI inputs with RGBHV pass-through
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 1 year ago in reply to rlaci

    Similar unit, just more inputs and has the pass through functionality. Looks like it is optimised for PAL / NTSC video though but that might just be the sales pitch.

    The pass through is an input loop feature that allows you to insert the device into an existing signal path without interrupting it. The scaling happens between the inputs on the left and the outputs on the right.

    I don't think either of these boxes are much use to you if you definitely have the original CGA TTL level signals, unless you were to convert the levels first.

    The board I linked to on Amazon, looks a closer match for your needs, as it looks like it has been designed for the 1980s CGA/EGA TTL level signals. Looks like it is aimed at keeping some of the early video gaming systems alive with modern displays. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 1 year ago in reply to rlaci

    Some more to check out

    https://www.serdashop.com/MCE2VGA

    ( https://github.com/lfantoniosi/mce2vga )

    https://www.serdashop.com/MCE2HDMI

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rlaci
    0 rlaci over 1 year ago in reply to beacon_dave

    this card is documented that not working with industrial equipment even if its advertised that it should, i bought one similiar card recently and nothing

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 1 year ago in reply to rlaci

    How about this R-Pi Zero + CPLD based one:

    https://github.com/hoglet67/RGBtoHDMI/wiki

    You would need an HDMI monitor or a HDMI to VGA adapter.

    However it has options to create custom timing profiles or alternatively the design is there to roll your own.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • beacon_dave
    0 beacon_dave over 1 year ago in reply to rlaci

    How about this R-Pi Zero + CPLD based one:

    https://github.com/hoglet67/RGBtoHDMI/wiki

    You would need an HDMI monitor or a HDMI to VGA adapter.

    However it has options to create custom timing profiles or alternatively the design is there to roll your own.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • rlaci
    0 rlaci over 1 year ago in reply to beacon_dave

    Yeah i started it because i think its doable but as using my logic analyzer and looking at different boards and different codes, the signal processing looks pretty erratic for me and the stated cycle clocks are usually different in reality as in theory

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz over 1 year ago in reply to beacon_dave

    An FPGA approach is also a very good one. Lots of VGA example code out there to reuse. Depends on what the OP is comfortable with.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rlaci
    0 rlaci over 1 year ago in reply to shabaz

    i was thinking about it. im an enthusiast who started on arduino, but in school always loved logic circuit design and fpga is something like that, but i would need some pinpointing:

    - is there any arduino like reprogrammable fpga board for learning?

    - what kind of programming languages FPGA-s using to program them and what is the whole approach to make it work?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 1 year ago in reply to shabaz

    I recall that Ben Heck did a project with FPGA to convert to VGA a while back. Might have been the Giant Game Boy episode.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz over 1 year ago in reply to beacon_dave

    That rings a bell. I recall I wanted to do a similar thing for a Game Gear I had lying around, but never had the time for it : ( 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 1 year ago in reply to rlaci
    rlaci said:
    is there any arduino like reprogrammable fpga board for learning?

    For a while, Arduino sold the MKR Vidor 4000 which was a SAMD21 based microcontroller board with an Intel Cyclone 10 FPGA on it. Unfortunately they discontinued it.

    The Lattice Semiconductor iCEstick is back in stock (iCE40 FPGA) and might be worth a look as a starter board. It's a bit more lightweight when it comes to the software side and there is also an open source toolchain available for it.

    Shawn Hymel uses one in Digikey's: Introduction to FPGA series
    https://www.youtube.com/watch?v=lLg1AgA2Xoo&list=PLEBQazB0HUyT1WmMONxRZn9NmQ_9CIKhb

    rlaci said:
    what kind of programming languages FPGA-s using to program them and what is the whole approach to make it work?

    Mainly Verilog or VHDL.

    Whitney Knitter: 2-Minute FPGAs
    /technologies/fpga-group/w/documents/5399/summer-of-fpgas-2-minute-fpgas-with-whitney-knitter

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 1 year ago in reply to shabaz

    I think Ben did two shows with FPGA.

    Ben Heck’s Giant Game Boy Episode -- Episode 225
    /challenges-projects/element14-presents/benheck/ben-heck-exclusive/w/documents/1370/ben-heck-s-giant-game-boy-episode----episode-225

    https://github.com/thebenheckshow/225-tbhs-Giant-Game-Boy/tree/master/DE0_GameBoy_DMG-01_VGA-master/Software

    Ben Heck's FPGA LCD Driver Hack Episode -- Episode 169
    /challenges-projects/element14-presents/benheck/ben-heck-exclusive/w/documents/18694/ben-heck-s-fpga-lcd-driver-hack-episode----episode-169

    https://github.com/thebenheckshow/169-tbhs-FPGA-LCD-Driver-Hack

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz over 1 year ago in reply to beacon_dave

    Amazing how expensive the iCEstick has become. I got it for about £25 a couple of years ago. Now it is >£120. Fortunately easy to replicate, since it's just a TQFP chip.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rlaci
    0 rlaci over 1 year ago in reply to beacon_dave

    looks interesting and did not find by my own

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 1 year ago in reply to shabaz

    Ouch! I must have got mine just in time then. You were lucky to get then a couple of years ago as they were very difficult to get hold of due to the supply chain issues.    

    Something like the Olimex board might be a cheaper alternative these days: 
    https://www.olimex.com/Products/FPGA/iCE40/

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube