macintosh.world | Log In | Register

Today | News | Books | Recipes
Notes | QuickTake | Wiki | Browse
Maps | Reference | Reddit | YouTube
Chat | Games | About

Making a dumb TV just smart enough - Quentin Santos

Open Original Page

Making a dumb TV just smart enough - Quentin Santos


Quentin Santos
Obsessed with programming since 2002


Portfolio
Favorites



← The USB interposer

The Acova / Zehnder ComfoRF radiator protocol →



Making a dumb TV just smart enough





I own an old, cheap TV. It has no Internet connection, no fancy smart features that make you want to install a Pi-hole, and no ask-me-again-later updates.

Quite basic, but it does its job well
However, it is connected to my own desktop computer through an HDMI cable, so I can watch movies and TV series from the couch. Setting it up used to involve going to my desk, enabling the secondary monitor, opening the relevant application, moving its window to the secondary monitor, setting it in fullscreen, going back to the couch, remembering I forgot my wireless keyboard, getting off the couch, grabbing my wireless keyboard, going back to the couch again, and then pressing the Space bar.

The most important quality of a programmer is laziness.

So, of course, I vowed never to get off the couch unnecessarily. And that meant controlling everything from the TV remote.

My TV remote: for some reason, the TV came with a universal remote of a different brand
So, I got myself an IR transmitter and an IR receiver to tinker with:

Then, I fished out an ESP32-C3 Mini devboard, a mini-breadboard, and a handful of jumper wires, and made the most basic device that could solve my woes:

The great thing about Espressif MCUs is the integrated Wi-Fi radio, which makes it trivial to make devices that you connect to your Wi-Fi network.
I have played around with Espressif MCUs before, including for early versions of the OmniMorse, but I must admit that Claude is just faster at it than I am. With the help of Opus 5.5, I identified the RC-5 IR codes for each remote button, and set up a few scripts so that a single button press on the remote would do the whole dance I described above.

But this first success unlocked much more.

I also own a bunch of old consoles. Getting everything hooked up is a chore, and makes a mess of wires. It would be much simpler to run an emulator on my computer and show it on the TV.

Not mine, but this gives you an idea.
Thus, I installed DuckStation, PCSX2, Dolphin, Cemu and ES-DE, configured two Xbox controllers on each of them, and got Claude to start everything from a single button on the remote.

At this point, I was using two of the four colored buttons of the TV remote. So, of course, I had to come up with two more modes. I got Claude to add a Fireplace mode, which just plays 10-hour videos, the most important one being a fireplace. And also Steam, in Big Picture mode.

Soon, there were regular issues with windows opening on the wrong screen, so I switched approaches. Instead of a large desktop on two screens, I resorted to multiseat, which I had always wanted to use, with two separate X sessions, one on each screen. This also allows using both screens at the same time without interference.

But that did mean I could not directly control the windows on the TV from my regular session. So, again, I got Claude to make me an admin panel:

The virtual TV remote actually works, by sending directly through the device I cobbled together. The device also tracks volume being changed from the real remote, so things stay in sync. The rest is just commands to my computer, including a virtual gamepad, and a real-time stream of what is being displayed (mouse clicks work too!). Also, turning on an Xbox controller switches to the emulator or Steam mode, and turning the last one off goes back to the fireplace.

Last, but not least, I took a significant amount of time making (telling Claude to make) everything fast. The whole thing took me about 10 hours in total, most of which was setting up console emulators.

Claude still needs to be kept on a tight leash: it sometimes wanted to go in the wrong direction, left obvious bugs, or suggested fixes that did not address the root cause. However, it saved me a bunch of time on the original problem, and lowered the effort enough to go above and beyond!

I have always been fascinated with computers. Nowadays, I mostly use Rust, but I started out with a QuickBASIC book from the local library when I was in elementary school. I also got a Master in computer science from ENSL and a PhD in cryptography from ENS.

Contact me at qsantos@qsantos.fr.



Hacking radiators for fun and no profitNovember 20, 2026


The Acova / Zehnder ComfoRF radiator protocolNovember 20, 2026


Making a dumb TV just smart enoughNovember 19, 2026


The USB interposerSeptember 17, 2026


My first PCB: AIC3204 eval boardSeptember 6, 2026


A few spikes in Pico cos()August 15, 2026


The RP2350 is too fastMay 15, 2026


Asynchronous I²C in CJanuary 24, 2026


(No) alternatives to the RP2350-USB-AJanuary 7, 2026


The RP2350-USB-A cannot see devices disconnectJanuary 1, 2026


Fixing the RP2350-USB-A not working as USB hostNovember 21, 2025


The serial TX path seems to be downAugust 11, 2025


Transistors in reverse and redundant circuitsJuly 6, 2025


The missing part of Espressif's reset circuitJuly 2, 2025


Reproducing Espressif's reset circuitJune 28, 2025


The ESP32-S2 reset pinMay 17, 2025


Talking to Espressif's BootloaderMay 15, 2025


Espressif's Automatic ResetMay 9, 2025


Linux always toggles DTR & RTSMay 3, 2025


Arduino's Automatic ResetMay 1, 2025


How to use "real" UARTApril 10, 2025


IndexedDB is WeirdMarch 3, 2025


Rust Gotcha: last() on DoubleEndedIteratorJanuary 1, 2025


Rust Strings for C ProgrammersDecember 9, 2024


You can move !UnpinDecember 4, 2024


On-Die ECCNovember 11, 2024


AMD CPUs, CCDs and CCXsOctober 3, 2024


Upgrading to Debian TrixieSeptember 27, 2024


Beware Rust BufferingSeptember 16, 2024


Interactive FlamegraphsSeptember 8, 2024


Linux Pipes are SlowAugust 25, 2024


Git Super-Power: The Three-Way MergeMay 1, 2024


Merging ResponsiblyApril 28, 2024


ViHN: Vim for Hacker NewsFebruary 24, 2024


Rewriting NHK Easier in RustJanuary 13, 2024


Dynamic Programming is not Black MagicJanuary 4, 2024


The Secret to a Green CI: Efficient Pre-commit Hooks with checkout-indexNovember 8, 2023


Learning Morse with KochOctober 2, 2023

Links

Open - Quentin Santos
Open - Portfolio
Open - Favorites
Open - ← The USB interposer
Open - The Acova / Zehnder ComfoRF radiator protocol →
Open - old, cheap TV
Open - The most important quality of a programmer is laziness.
Open - OmniMorse
Open - RC-5 IR codes
Open - Not mine

Browse another page:

URL