MakerPickedMachine translation, not yet reviewed

A 20-Cent Single-Chip USB GPU

bitluni built a roughly 20-cent USB-to-analog-video GPU using a CH570 microcontroller and PCB-integrated USB-C.

GPUs now handle more and more computing tasks, so it is easy to forget that their original job is still generating graphics. Lowering the performance bar, a "graphics card" can be made for twenty cents: bitluni used a single CH570 microcontroller to build a USB-to-analog-video converter.

A small PCB is plugged into both an RCA port and a USB-C cable at the same time, with no separate connectors mounted on the board

One PCB is all the interface

The whole small board has only one active component, the CH570 microcontroller; the rest are a few passive components. More unusual is the connection method: the USB-C port is formed directly from the PCB edge, and the analog RCA connection has no separately mounted socket either; instead it is made from several copper-plated notches on the board that can be plugged into a female RCA port. This approach has a small drawback: many RCA female sockets appear to have only one wire inside contacting the center pin, so the board's insertion orientation affects the signal.

The most critical passive component is the crystal oscillator. It keeps the generated video signal synchronized with the monitor's refresh rate, and timing is also the project's main constraint.

Timing is the biggest challenge

To keep up with the required rate, all high-speed operations must be executed in SRAM. During debugging there was once a strange performance drop, which turned out to be caused by the compiler placing the relevant code in flash. The actual analog signal is generated by PWM.

From serial terminal to PAL color

On the computer side the device appears as a USB CDC device and can display grayscale text and simple graphics. bitluni also wrote a program to use it as a serial terminal. Interestingly, when the television used as the monitor was in wireless reception mode, it could actually pick up the PWM signal emitted by the jumper wires. This led him to look for more transmission methods; tests indicate that, with SPI and overclocking, the system might also be able to output PAL color signals.

This is not the first time bitluni has squeezed video signals out of microcontrollers that seem unsuitable; he previously also got an ESP32 to drive VGA. In a larger-scale project, he also used a cluster of microcontrollers as coprocessors.

Listed

Comments

0 comments

More in this category

Maker