Menu

Microcontroller to VGA Screen with keyboard input

Anobium
2022-08-24
2022-08-24
  • Anobium

    Anobium - 2022-08-24

    As part of recent game project I need to connect the MCU to a VGA screen and a keyboard.

    I used a ESP32-VGA - what a great result. I have connectivity from the MCU to the VGA screen and the keyboard. The cheap VGA terminal showing the MCU output.

    This post has the resources I used but it is a very low solution, easy to setup and just connect the MCU.


    The ESP32-VGA operates a Serial to VGA converted. So, the MCU just sends serial ( ANSI is supported) the ESP32-VGA does the heavy lifting by taking the serial input and converting to the VGA signal.

    There are no changes needed from a Great Cow BASIC point of view. Serial out and Serial in.

    I used an 18F27Q43 at 3v3, connected the MCU TX to IO34, and MCU RX to IO2 and a common 0v0.

    Easy


    My resources:

    Get a ESP32 VGA32. ESP32 VGA32 V1.4 Controller PS/2 Mouse And Keyboard Controller from eBay, Ali express. The important piece is the V1.4

    https://www.instructables.com/Using-ESP32VGA32-Terminal-for-Z80-MBC2/

    An overview of configuration.

    1. Get a ESP32 VGA. Mine was from here
    2. Connect USB ,VGA and keyboard.
    3. Upload the Sketch using the Instructables project above.
    4. Connect MCU - three connections.
    5. Use and enjoy

    :-)

     

    Last edit: Anobium 2022-08-24
  • Anobium

    Anobium - 2022-08-24

    Picture

     
  • stan cartwright

    stan cartwright - 2022-08-24

    Cheapest on ebay is £14-70 free p&p. Yours £8-70.
    How would I use a mouse with GCB? Is the z80 link an "OS"?
    If it is 320X240 then maybe glcd spi could be adapted.
    I did mention to you using a £4 rpipico with mmbasic and connecting to a pic.
    There is a mmbasic vga version that has graphics, sprites and screen buffers.
    It would be like using a Nextion where you send commands serial using serprint command.
    Just a thought.

     
    • Anobium

      Anobium - 2022-08-24

      You should get one and investigate!!

       
  • stan cartwright

    stan cartwright - 2022-08-24

    I might but what would it do that the terminal can not?
    You mention a game, with graphics ? How do yo do it?

     
  • stan cartwright

    stan cartwright - 2022-08-24

    more info needed

     

    Last edit: stan cartwright 2022-08-24
    • Anobium

      Anobium - 2022-08-24

      The Github site shows example use cases for the board. The GitHub site is listed wi thin the Instructables link. GitHub shows many uses for the board.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.