A small PCB is shown plugged into an RCA connector and a USB-C cable. The PCB has no separate connectors mounted on; the board itself plugs into both connectors.

Building A Single-Chip USB GPU

Considering how powerful they’ve become and how many other tasks they’ve been repurposed for, it’s easy to forget that a GPU’s primary purpose is to generate graphics. With this definition in mind, and accepting a somewhat lower standard of performance, it’s entirely possible to build a twenty-cent GPU, as [bitluni] demonstrated with this USB to analog video converter.

The converter is built into one tiny PCB with only one active component, a CH570 microcontroller, and a few passive components. Not only is the USB-C connector made out of the PCB itself, the analog RCA connector is also: the PCB is designed with several copper-plated cutouts which let it plug into a female RCA port. There is a quirk with this approach, though: many RCA ports apparently only have one wire to make contact with the internal pin, making this somewhat sensitive to orientation. Of the passive components, the most important was a crystal oscillator to keep the generated signal in sync with the display’s refresh rate; timing was this project’s main constraint.

To keep up with the necessary rate, all high-speed operations had to be done with SRAM; an odd performance drop turned out to be caused by the compiler using flash memory. The actual analog signal is generated with PWM. The device appears as a USB CDC device, and can display greyscale text and rudimentary graphics; [bitluni] wrote a program to use it as a serial terminal. Interestingly, when the TV he was using as a display was in wireless reception mode, it was able to pick up on the PWM signal transmitted by a jumper wire. This inspired [bitluni] to search for more transmission options; it turns out that with SPI and overclocking, the system might be able to transmit a PAL colour signal.

This isn’t [bitluni]’s first time getting video out of an unlikely microcontroller; he’s also driven VGA with an ESP32. On a bit of a larger scale, he’s also built several coprocessors out of microcontroller clusters.

ESP32 Drives MDA Display For Wireless Terminal

Don’t you miss the days where you had to point a particle accelerator at your face for a full shift? Well, maybe not when we think of it that way, but we still love the amber glow of the Monochrome Display Adapter (MDA) monitor [Chad Boughton] has hooked up to an ESP32 wireless terminal.

The particular ESP32 dev board he’s using comes with PS/2 input and VGA output, but of course VGA is not compatible with the TLL signal the old monochrome monitors are looking for, so he’s had to do a little bodge work– though aside from the one wire, this is evidently a software project. It took a bit of trial-and-error with the oscilloscope to get the timings right, but now that he has them he’s willing to share. [Chad] built that into a fork of FabGL’s terminal he has up on GitHub.

What he’s displaying on the terminal is equally fun, as he’s got a lovely command-line interface styled to look like IBM OfficeVision running on his server, complete with word processor and Lotus 1-2-3 spreadsheet editor– though it can also control the Plex server that carries [Chad]’s tunes. That’s also up on GitHub for anyone who wants it.

If you prefer green, check out the last CRT/ESP32 combo project we featured. For those of you with the opposite problem– a TLL output and no accompanying screen– there’s a project for that, too. 

Thanks to [Chad] for the tip!

Continue reading “ESP32 Drives MDA Display For Wireless Terminal” →

Automation For The Swimming Pool

Swimming pools demand constant maintenance if they are to avoid becoming disgusting pools of fetid, bacterial soup. [ingTacchelli] has been working on an automation system for this very purpose.

Swimming Pool System Open (SPSO) is, as the name suggests, an open-source design for a swimming pool automation controller. It’s intended to be simple, low-cost, and easy to understand. It uses a custom board running an ESP32-S3 microcontroller to measure pH and chlorine probes to determine the state of the water, and it also monitors temperature, filter pressure, flow, and tank levels. Dosing and filtration pumps are then controlled to deliver the proper chemicals and filter the water when needed, with careful attention to safety to avoid dangerous conditions. The interface is via a 7″ Waveshare touchscreen, and the whole system can also be hooked up to Home Assistant if so desired. Files are on GitHub for those eager to dive in the deep end.

If you’re sick of manually sampling your pool water and applying the necessary chemicals, this could be a system that appeals to you. We’ve featured similar projects before, too. If you’re working on similar projects to maintain your pool, garden, fish tank, or fancy Bond-esque shark trap, don’t hesitate to notify the tipsline. We might tell the authorities about the shark thing if you’re foolish enough to do so, though.

ESP32 WIFI Jam Detector Finds The Raspberry

We’ve seen plenty of ESP32 WiFi projects that test wifi systems with attacks such as Deauth, and even jamming. Today’s project is a bit different. [TheDigital1] created an ESP32 project that uses SDR to detect interference in the WiFi bands.  The detector builds on the popular ESPARGOS ESP-SDR project that we have previously featured, to scan for any interference. The hardware is based on an ESP32-C5, so it covers both the 2.4GHz and 5GHz bands. [TheDigital1] used a Waveshare ESP32-C5-Touch-LCD-3.5, but since the project is open source, you should be able to port it to other devices.

The system doesn’t just detect noise. It can categorize the interference into four types: wideband, narrowband, pulsed wideband, and frequency-swept. [TheDigital1] notes that while the system can detect interference, it can’t detect intent, so it’s up to the user to determine if they have a leaky microwave or hackers trying to shut down their WiFi.

The system works great as a portable standalone device. In fact, the interface is pretty slick. Connecting it to a PC via USB opens up even more features. It can be used with Home Assistant as a WiFi Jammer detector. It can even detect if a room is occupied by sensing the noise floor increase from humans moving around.

With all these new ESP32 SDR projects coming up, we can’t wait to see what’s next!

Follow The Grid With An Arduino Uno

We all know the frequency of our AC grid. 60Hz for Americans, or 50Hz for Europeans, for example.  But the real story has some complexity. In a plural but interconnected grid such as Europe’s, that frequency can drift around a nominal center value. To keep track of this, [Jeroen Brinkman] has created a grid monitor that can show long-term trends as well as instantaneous frequencies.

Hardware-wise, it’s somewhat old-school, with an Arduino Uno and a ubiquitous 2×16 character LCD, but the interest here lies not in the microcontroller. Sensing mains frequency is fraught with spicy high-voltage danger if done directly, so [Jeroen] is performing the task using an optocoupler that toggles an interrupt pin on the Arduino. The monitor stores long-term data by the week, using only four bytes per week. That means the monitor can hold up to 240 weeks, or about 4.6 years, on a Nano R3 and over 2,000 weeks, or around 39 years on a Nano R4. The data can be retrieved via serial transfer over the Arduino’s USB port.

The subject of grid monitoring is a fascinating one, as geopolitical events can show up in it. Back in 2018, we covered the moment when Europe lost six seconds as a result.

A Smart Alarm Clock That Doesn’t Sell Your Soul

Devices from the likes of Google and Amazon can be used as high-tech alarm clocks that can show the weather and family photos in addition to telling you what time it is. But they’re also used to push ads out and potentially do other shady things that you’d probably just as soon not have in your bedroom.

If you like the features offered by devices like these but not the hidden costs that come with them, take a look at Rouse. This firmware, which can be installed on common ESP32 development boards such as the Waveshare ESP32-S3-Touch and the ubiquitous Cheap Yellow Display, provides some of those same features in a DIY package.

There’s no user account, no subscription, and no app for your phone that will inevitably stop working some day. The firmware offers up a web interface for configuration that can be accessed by anything with a web browser, and while it can perform firmware updates over the network, it only does so with your approval. It might seem odd that we have to double check to make sure our alarm clocks aren’t leaking any of our information onto the Internet, but that’s the world we live in apparently.

In addition to the basic ESP32 board, you’ll probably want to add some buttons and a speaker, all of which is documented in a fantastic build guide. There’s even files for you to 3D print your own enclosure for the finished clock, though you could certainly put it in an enclosure of your own choosing should you want to customize the build further.

Hackers and makers love clock projects, and at this point we’ve covered more than we can even keep track of. As part of that we’ve seen a number of alarm clocks builds, but as is so often the case around these parts, they tend to be one-off builds. The fact that Rouse has been built with community in mind really makes it stand out, and we’d love to hear in the comments if any of you already have one of these ticking away on your nightstand.

Proper Linux, On An ESP32

The ESP32 series of microcontrollers feature a lot on these pages, offering as they do a significantly powerful processor and in most cases, wireless connectivity. One recent member of the bewilderingly large family is the ESP32-S31, It’s a dual-core RISC-V unit with WiFi 6, and if that’s not interesting enough there’s the news that it runs Linux. Not -nommu Linux, but the full-fat version, as it has a memory management unit.

Before you imagine a superlative experience, it’s worth the reminder that the available resources will not give it much when it comes to computing power. But there’s an Espressif GitHub repository, and work on a port of a 6.x kernel, so you should be able to do something with it. A quick look on AliExpress finds dev boards at a range of prices, so the cost of experimenting shouldn’t be too high.

This moment at which the paths of microcontroller and full-fat SoC start to cross has been on the horizon for quite a while, and it’s exciting to see it finally arrive. Expect more similar chips in competition with this one, and more power too. Meanwhile see our noting the launch of the S31.