A thermostat unit and a replacement PCB for it

Custom Thermostat PCB Connects Boiler To Home Assistant

Thanks to Home Assistant, automating the various systems that run your home is easier than ever. But you still need to make a connection between those systems and your Home Assistant setup, which can be tricky if the manufacturer didn’t have this use case in mind. When [Simon] wanted to automate his home heating system, he discovered that most Home Assistant-enabled thermostats that he could find didn’t support his two separate heating zones connected to a single boiler. The easiest solution turned out to be to design his own.

The original heating system consisted of two control boxes that each had a 230 V mains connection coming in and a “request heat” control line going to the boiler. [Simon] considered replacing these with a simple off-the-shelf ESP8266 relay board and a 12 V power supply, but figured this would look messy and take up quite a bit of space. So he bought a neat DIN-rail mounted enclosure instead, and designed a custom PCB to fit inside it.

A Home Assistant screen showing two thermostatsThe PCB holds a Wemos D1 Mini connected to two relays that switch the two heating circuits. The D1 runs ESPhome and needs just a few lines of configuration to connect it to [Simon]’s home network. There’s no separate power supply — the 230 V line is connected directly to a 12 V DC power module mounted on the PCB, so the new system is plug-and-play compatible with the old.

Complete PCB design files are available on [Simon]’s website and GitHub page. There are several other ways to make custom thermostats for your home, with an Arduino for example. If you’re interested in repairing your own heating system, or want to optimize it even further, there’s a whole community out there to help you.

An ATX motherboard sits on a grey surface with the I/O in the foreground. Behind the I/O is a large image of Tux, the Linux penguin, taking up most of the PCB and winding its way around different components on the board. Tux is part of the PCB itself, with his feet, beak, and outline in gold, body in black silkscreen, and belly in green soldermask.

Designing Aesthetically-Pleasing PCBs

We’ve seen our share of custom PCBs here on Hackaday, but they aren’t always pretty. If you want to bring your PCB aesthetics up a notch, [Ian Dunn] has put together a guide for those wanting to get into PCB art.

There are plenty of tutorials about making a functional PCB, but finding information about PCB art can be more difficult. [Ian] walks us through the different materials available from PCB fabs and how the different layer features can affect the final aesthetic of a piece. For instance, while black and white solder mask are opaque, other colors are often translucent and affected by copper under the surface.

PCB design software can throw errors when adding decorative traces or components to a board that aren’t connected to any of the functional circuitry, so [Ian] discusses some of the tricks to avoid tripping up here. For that final artistic flair, component selection can make all the difference. The guide has recommendations on some of the most aesthetically pleasing types of components including how chips made in the USSR apparently have a little bit of extra panache.

If you want to see some more on PCB art, check out this work on full-color PCBs and learn the way of the PCB artist.

Hackaday Links Column Banner

Hackaday Links: January 15, 2023

It looks like the Martian winter may have claimed another victim, with reports that Chinese ground controllers have lost contact with the Zhurong rover. The solar-powered rover was put into hibernation back in May 2022, thanks to a dust storm that kicked up a couple of months before the start of local winter. Controllers hoped that they would be able to reestablish contact with the machine once Spring rolled around in December, but the rover remains quiet. It may have suffered the same fate as Opportunity, which had its solar panels covered in dust after a planet-wide sandstorm and eventually gave up the ghost.

What’s worse, it seems like the Chinese are having trouble talking to the Tianwen-1 orbiter, too. There are reports that controllers can’t download data from the satellite, which is a pity because it could potentially be used to image the Zhurong landing site in Utopia Planitia to see what’s up. All this has to be taken with a grain of dust, of course, since the Chinese aren’t famously transparent with their space program. But here’s hoping that both the rover and the orbiter beat the odds and start doing science again soon.

Continue reading “Hackaday Links: January 15, 2023”

Stadia Says Goodbye With Bluetooth And Crap Game

In just a few days time, Google’s Stadia game streaming service will finally shut down for good. But not for any technical reason, mind you. Microsoft has managed to demonstrate that streaming modern games over home and even mobile Internet connections is viable with their immensely popular Game Pass Ultimate service, and NVIDIA is making similar inroads with GeForce Now. No, like so many of Google’s failed experiments, they’ve simply decided they don’t want to play anymore and are taking their proverbial ball home back with them.

But not all is lost for those who shelled out money for Stadia’s wares. Not only will Google be refunding any money players spent on games, but a company representative has also announced they will be releasing a tool to unlock the latent Bluetooth capabilities of the service’s custom controller — hopefully stemming a surge of e-waste before it starts.

Thanks for playing, chumps.

In a forum thread titled “A Gift from the Stadia Team”, Community Manager [DanFromGoogle] explains that information on how you can enable Bluetooth on the controller will be coming next week. In the meantime, he also announced the immediate release of “Worm Game”, a tech demo that staffers apparently used to test out capabilities of the streaming service before its public release.

That this ridiculously simple game, which looks all the world like something a kid would crank out during an after-school programming class, will be the final title to officially release on Stadia is a stunningly insulting epitaph for the fledgling service. But then, Google seems to have developed a special affinity for mistreating their most loyal cattle users over these last few years.

Enabling Bluetooth on a game controller might not seem like such a big deal, but in this case, it will potentially give the piece of hardware a second chance at life. The Stadia controller is unique in that it uses WiFi to communicate directly over the Internet to Google’s streaming service, so once those servers stop responding, the orphaned device will end up being little more than a curiosity. Although it does technically work over USB, being able to use it wirelessly will not only provide a more modern experience, but help justify its internal batteries.

The last time we mentioned the Stadia controller, it was to document one user’s attempt to rid it of an internal microphone they didn’t feel comfortable with. Now that the service is being put to pasture, we wonder if we’ll start to see more hacks involving the admittedly interesting peripheral. We’ll certainly be keeping an eye out for them, but if you see anything we miss, you know where to send it.

Giving An Old Typewriter A Mind Of Its Own With GPT-3

There was an all-too-brief period in history where typewriters went from clunky, purely mechanical beasts to streamlined, portable electromechanical devices. But when the 80s came around and the PC revolution started, the typewriting was on the wall for these machines, and by the 90s everyone had a PC, a printer, and Microsoft Word. And thus the little daisy-wheel typewriters began to populate thrift shops all over the world.

That’s fine with us, because it gave [Arvind Sanjeev] a chance to build “Ghostwriter”, an AI-powered automatic typewriter. The donor machine was a clapped-out Brother electronic typewriter, which needed a bit of TLC to bring it back to working condition. From there, [Arvind] worked out the keyboard matrix and programmed an Arduino to drive the typewriter, both read and write. A Raspberry Pi running the OpenAI Python API for GPT-3 talks to the Arduino over serial, which basically means you can enter a GPT writing prompt with the keyboard and have the machine spit out a dead-tree version of the results.

To mix things up a bit, [Arvind] added a pair of pots to control the creativity and length of the response, plus an OLED screen which seems only to provide some cute animations, which we don’t hate. We also don’t hate the new paint job the typewriter got, but the jury is still out on the “poetry” that it typed up. Eye of the beholder, we suppose.

Whatever you think of GPT’s capabilities, this is still a neat build and a nice reuse of otherwise dead-end electronics. Need a bit more help building natural language AI into your next project? Our own [Donald Papp] will get you up to speed on that.

Continue reading “Giving An Old Typewriter A Mind Of Its Own With GPT-3”

Inside The Atari 2600

The Atari 2600 was an extremely popular yet very simple game console back in the 1970s. They sold, apparently, over 30 million of them, and, of course, these things broke. We’d get calls from friends and — remember, back then normal people weren’t computer savvy — nine times out of ten, we’d ask them to swap the controllers to show them it was a bad controller, and problem solved. But if you did have to open one up, it was surprising how little there was inside, as [Steve] notes in his recent teardown.

The bulk of the circuit board was switches, the power supply, and a TV modulator if you remember those. The circuit board was a tiny thing with a shrunk-down 6502, a 6532 RIOT chip, and a custom chip called a TIA. If you are familiar with those chips, you might wonder if the TIA had any memory in it. It didn’t. Nearly all the ROM and RAM for the game lived in the cartridge itself. Sure, the RIOT has 128 bytes of memory, but that’s not much.

Continue reading “Inside The Atari 2600”

A Flex Sensor For A Glove Controller Using An LDR

When most of us think of glove controllers, the first which comes to mind is Nintendo’s PowerGlove, which promised much more than it delivered. But the idea persists, and from time to time we see them here at Hackaday. [Gord Payne] has one with an elegant sensor solution, it detects finger movement using a light dependent resistor.

The cleverest designs are those which are the simplest, and this one eschews complex mechanisms and exotic parts for a simple piece of flexible tube. At one end is an LED and at the other the LDR, and when attached to a glove it provides a finger sensor without the fuss. The amount of light reaching the LDR from the LED decreases as the pipe is bent, and with a simple divider circuit a voltage can be read by an Arduino. You can see it in action in the video below the break, where the glove flexing controls a servo.

Perhaps this might revitalize a bit of interest in glove controllers, something we probably don’t see too many of. Those Nintendo PowerGloves do still crop up from time to time though.

Continue reading “A Flex Sensor For A Glove Controller Using An LDR”