Bitluni has built a small graphics adapter around the CH570 RISC-V microcontroller, a project that produced a working display output for roughly 20 cents in parts. The work follows an earlier VGA experiment with the CH32V003 microcontroller, which Bitluni found too limiting. He moved to the CH570 after reviewing its spec sheet, drawn by its doubled RAM capacity, integrated USB connectivity and Bluetooth support.
Because the CH570 lacks a digital-to-analog converter, Bitluni generated video using a PWM signal as an approximation of voltage over time. The approach mirrors the principle behind Class D audio amplifiers. He settled on 16 shades of gray rather than the 50 shades others might target. The microcontroller's limited RAM ruled out a full frame of graphics at the outset, so he rendered text at half the possible vertical resolution.
That early text rendering was extremely slow until Bitluni placed the code he intended to run into the CH570's SRAM cache. The fix made picture generation run 24 times faster and let him fit 34 by 37 characters on screen. He then moved on to graphics and, after further optimization, produced a short, low-resolution animation of Rick Astley dancing. The clip ran only a few frames but was clearly recognizable. Throughout this stage, the development kit fed a tiny CRT television through its composite input.
Bitluni then designed a simple PCB sized for the CH570, a USB-C connector and a few assorted parts. A pack of 10 boards cost him $15, and the components on each board came to about $0.20, with the CH570 the most expensive at $0.13. The very small board worked well, including an improvised RCA barrel jack formed from a couple of grooves.
The last step was USB connectivity, which Bitluni wanted to use as a serial bus via USB CDC. It took several attempts, because the CH570's CPU had to handle the newly enabled USB connection and the time slices it required cut into the video signal. After more optimization passes, the TV displayed what he was typing. He also found that a jumper wire on his development kit acted as an impromptu VHF antenna and nearly locked the TV signal onto it.
More hardware news from TechManNews.







