Geek House: 10 Hardware Hacking Projects for Around Home (ExtremeTech) - podcast episode cover

Geek House: 10 Hardware Hacking Projects for Around Home (ExtremeTech)

May 09, 202622 min
--:--
--:--
Download Metacast podcast app
Listen to this episode in Metacast mobile app
Don't just listen to podcasts. Learn from them with transcripts, summaries, and chapters for every episode. Skim, search, and bookmark insights. Learn more

Episode description

A technical guide authored by Barry and Marcia Press that empowers enthusiasts to transform a standard residence into a highly automated environment. Published by Wiley, the book provides detailed instructions for building computer-driven appliances and "electronic minions" that manage tasks such as security monitoring, sprinkler control, and media serving. Each chapter focuses on a specific area of the house, utilizing X-10 power line signaling, custom C++ or Java software, and various sensors to achieve functional automation. The authors assume readers possess basic skills in electronics, mechanical construction, and Windows programming, though they offer foundational advice for those looking to expand their expertise. Ultimately, the text serves as a flexible blueprint, encouraging makers to move beyond generic consumer products and use their imaginations to design a truly customized digital home.

You can listen and download our episodes for free on more than 10 different platforms:
https://linktr.ee/cyber_security_summary

Get the Book now from Amazon:
https://www.amazon.com/Geek-House-Hardware-Projects-ExtremeTech/dp/0764579568?&linkCode=ll2&tag=cvthunderx-20&linkId=d440841df822e4ab036737b06667200c&language=en_US&ref_=as_li_ss_tl

Discover our free courses in tech and cybersecurity, Start learning today:
https://linktr.ee/cybercode_academy

Transcript

Speaker 1

Welcome back to the deep dive, especially to you the learner. You know, if you're looking to shortcut the learning curve of home automation and hardware hacking, you are in exactly the right place.

Speaker 2

Yeah. Absolutely, We've got a really fun one today.

Speaker 1

We do because I want you to imagine looking at the walls of your living room right now. You know, you see drywall, you see paint, maybe a few standard plastic power outlets. It all looks so, I don't know, static.

Speaker 2

Right, incredibly ordinary, exactly.

Speaker 1

But what if those plain copper wires inside the walls, like the ones meant to just blindly pump raw electricity, What if they're actually a hidden digital network, just waiting for you to take control.

Speaker 2

It really completely shifts how you view the physical structure you live in. I mean, you stop seeing a house and you start seeing this enormous programmable machine.

Speaker 1

Yeah, and today we are pulling back that drywall to explore this hidden network. We're getting into the mechanics of home automation by looking at excerpts from the book geek House Ten hardware Hacking Projects for a Round Home by Barry and Marcilla Press.

Speaker 2

It's such a great source.

Speaker 1

It is. Specifically, we are focusing on a section called X ten Under the Hood.

Speaker 2

Yeah. It's an incredible guy for anyone who wants to understand not just you know that their house can be automated, but exactly how that automation physically functions behind the scenes.

Speaker 1

Right, Okay, let's unpack this because the core premise the authors lay out here is brilliant. They want to help you take a boring, conventional house and turn it into a custom built geek.

Speaker 2

House minion, a minion that does your bidding.

Speaker 1

I love that, right, But before we get anywhere near the actual hardware, we have to issue a very serious, very crucial safety disclaimer. We are talking about hacking the actual electrical wiring of a house.

Speaker 2

Yeah, and that really cannot be overstated. Powerline control devices operate on hazardous voltages, lethal voltage. Literally, we're talking about one hundred and twenty to two hundred and forty volts of alternating current. If you do not know how to safely work with live home wiring, you need to stick strictly to the plug in modules exactly because touching the wrong wire at the wrong time isn't just a shock hazard, it can literally kill you.

Speaker 1

So keeping that very real physical danger in mind, we have a massive engineering puzzle here. How does this technology actually transmit a delicate digital message through copper wires that were let's face it only ever built to carry raw lethal.

Speaker 2

Power, right, It's not a data cable, no.

Speaker 1

So to understand this we have to look at the foundational level of what engineers call the ISO seven layer communications model, which is essentially the physical layer.

Speaker 2

Yeah, the physical layer's layer one. Before you can get two computers to talk, you need a framework that separates the physical reality of the wire from the grammar of the actual message.

Speaker 1

Right. The physical layer doesn't care what the message means at all.

Speaker 2

Not even a little bit. It's strictly about the physics of moving a bit of information, a single one or a zero, from point A to point B.

Speaker 1

And the challenge for the creators of the X ten pro was doing this reliably using cheap electronics over an electrical grid that was never designed to carry data. So their solution was to literally piggyback on the alternating current.

Speaker 2

Exactly in North America, the power grid operates at sixty hertz.

Speaker 1

Okay, so that means.

Speaker 2

That means the electrical current isn't just flowing constantly like water in a pipe. It's alternating. It's surging back and forth sixty times every single second. It's this massive rhythmic wave of energy.

Speaker 1

And the XTEN system uses that surging sixty hrtz wave as its transportation vehicle. Like whenever it wants to send a one bit, it transmits a one hundred and twenty kilohertz tone, which is basically just a very high pitched electronic squeal.

Speaker 2

Yeah, tiny squeal, and it blasts.

Speaker 1

That tone into the wire for a tiny one millisecond burst. So the physical presence of that high frequency tone equals a one, and the absolute absence of the tone equals a zero.

Speaker 2

But the real genius here isn't the tone itself, it's exactly when the system decides to send that burst, the timing right the timing, It uses a mechanism called zero crossing. As that massive sixty herds alternating current rhythmically rises and falls, it constantly crosses the zero voltage point in the middle.

Speaker 1

Because it's going from positive to negative exactly.

Speaker 2

So the X ten transmitter waits for that exact quiet moment, specifically, it waits for the rising line voltage to cross zero, and it fires its one millisecond tone burst within two hundred microseconds of that exact crossing.

Speaker 1

Wow, that is just so elegant. And then right after that, just to be sure the bit wasn't I don't know, mangled by some random spark in the wire, it does a built in error check.

Speaker 2

Yeah, the inverse rule right on.

Speaker 1

The very next half of the wave, when the voltage crosses zero on the way down, it sends the exact inverse or complement of the bit. So if it blasted the tone to say one on the way up, it guarantees a moment of silence to say zero on the.

Speaker 2

Way down, precisely. Now, that inverse rule doesn't magically fix errors if they happen, but it's a brilliant diagnostic tool. Yes, so well, let's the receiving lamp or switch immediately. I know if a bit got corrupted in transit, if it sees, say, two tones back to back, it knows the rule was broken and the data is just garbage.

Speaker 1

I picture the whole thing like an extreme sport, you know, like you've got this massive, surging, lethal sixty hertze electrical ocean wave that could easily crush you, oh for sure. And the X ten system is trying to perfectly surf a tiny one hundred and twenty killer hertz ripple right on the lip of that wave exactly at the moment it crests the zero line.

Speaker 2

That's a really good analogyh.

Speaker 1

Wait, if I run the math on that you're telling me, it sends exactly one bit of data perhaf cycle of the PowerWave. Yes, at sixty herdz. That means the raw transmission speed is a mere sixty bits per second. Isn't that incredibly slow for a computer. I mean, a standard dial up modem from the nineties was thousands of times faster than that.

Speaker 2

It is slow. But what's fascinating here is that this agonizingly slow speed isn't a mistake. It is a highly deliberate engineering trade off.

Speaker 1

Wait, really deliberately slow.

Speaker 2

Yeah, because in any digital communication network, timing is everything. Usually, microchips need complex, expensive internal quartz clocks to keep their signals perfectly synchronized with each other. Right, But by tying the data bursts strictly to the physical zero crossings of the AC power line, the X ten devices don't need to generate their own timing.

Speaker 1

Oh, I see the sixty hertz power grid itself, like the literal hum of the utility company, acts as a massive, free and incredibly precise clock for every single device in the house.

Speaker 2

Exactly. They essentially outsource the system's internal clock to the power company, and that brilliant shortcut meant they could strip the expensive timing components out of the hardware, which keeps the cost of the receivers incredibly low.

Speaker 1

That is clever, but I mean it completely shifts the burden. Right. If your transmission speed is locked into glacial sixty bits per second, you cannot afford long chatty messages no one at all. Every single microsecond is precious real estate. So how does it format the data so the receiver understands it without getting confused?

Speaker 2

So that moves us up a step in the ISO model, straight into the link and presentation layers. If the physical layer is the raw sound of a voice, the link layer is the grammar.

Speaker 1

The stuttering grammar. As we'll see right.

Speaker 2

It dictates how you frame the messages. So a listening outlet knows exactly when a command is starting and stopping, and X ten handles this using a very specific start code, which is the sequence one one zero, so three.

Speaker 1

Tone bursts followed by silence exactly. But wait a second. If the start code is one one zero, that means the first two cycles are sending a one followed immediately by another one. But the physical layer rules we just talked about absolutely demand that every bit is followed by its exact inverse. If you send a one on the rising wave, you must send a zero on the falling wave.

Speaker 2

You're exactly right, and that is the absolute beauty of the start code. The first two cycles of that sequence intentionally violate the protocol's own foundational rule.

Speaker 1

Oh wow, they make their own rule on purpose.

Speaker 2

Yes, they are mathematically invalid sequences. In engineering, we call this out of band signaling.

Speaker 1

Because it's impossible for actual valid data to ever accidentally generate that pattern.

Speaker 2

Exactly, because those first bits purposefully break the laws of the physical layer, the receiving device instantly knows, without a shadow of a doubt that it isn't looking at random electrical noise and it isn't looking at regular data. It's like a flare in the sky exactly. It's a guaranteed flare that says a new message is starting right now. It prevents the receiver from mistaking a random fragment of a passing message for the start of a command.

Speaker 1

Okay, so the start code flashes that signal, the outlet snaps to attention. Logically, once it's listening, you'd have to tell it two things, right, who you're talking to and what you want it to do.

Speaker 2

That's exactly how it's structured. Immediately following that start code, the system transmits exactly nine bits of data, just nine bits, just nine. The first four bits represent the house code, which is assign a letter from the next five bits represent either the key code, which is a number from one to sixteen targeting a specific lamp, or they represent a function.

Speaker 1

Code, and the function code is the actual action like on, off or dim. But because you only have nine bits to work with, you can't fit the who and the what in the same block, Like you can send lamp B twelve or you can send B turn on, but you can't send them together. So how do you build a full command out of this? Do you just chain them?

Speaker 2

You do, but the reality of sending data over a power line makes it much clunkier than just chaining them. The electrical grid is so inherently noisy. The protocol demands extreme redundancy to ensure the message survives.

Speaker 1

Okay, so what does that look like.

Speaker 2

You don't just transmit the address and then the command. The rules state that every single message block must be transmitted twice back to back with no gaps. Wow, And then you have to leave a mandatory three cycle gap of empty silence before you can send the next part.

Speaker 1

Okay, so the final instruction is basically a highly redundant stutter to turn on one light. It's not sending B twelve on. It's literally broadcasting B twelve B twelve long gap beyond ye on.

Speaker 2

Yes, it requires at least four separate message blocks to complete one single functional command.

Speaker 1

And at sixty bits per second, that actually takes a noticeable fraction of a second.

Speaker 2

It does. And the downside is that if any single piece of that four part transmission gets swallowed by electrical noise, the receiving lamp might flicker erratically, or it might just ignore you entirely.

Speaker 1

Just to put this in perspective for everyone listening, imagine trying to type an urgent email but your keyboard physically restricts you to typing one single letter per second sounds awful, It gets worse, and the rules of the email program state you have to type the recipient's entire name twice, pause for three seconds, and then type the actual body of the message twice. That is the agonizing, stuttering digital reality this protocol lives in.

Speaker 2

It is slow, and the grammar is incredibly rich, but it had to be designed that way because the environment it was deployed in is outright hostile.

Speaker 1

Which leads right into the next major hurdle. We have this rigidly structured grammar intentionally rule breaking, star codes, massive repetition. So why do these X ten signals still sometimes just vanish?

Speaker 2

Why do you press the button and nothing happens exactly?

Speaker 1

Why does the lamp in the bedroom do absolutely nothing? What's because the actual physical copper wiring of your house is essentially an obstacle.

Speaker 2

Course it is an incredibly harsh environment for a delicate one hundred and twenty killerhertz data signal, and the first major physical obstacle is a house's power transformer itself, the one outside well. The high voltage power coming from the utility pole comes into your breaker panel, and then it gets split into two separate one hundred and twenty volt rails.

Speaker 1

Right, So half the circuits in your house draw from one rail and the other have draw from.

Speaker 2

The other rail exactly, and the power transformer sitting between those two rails is highly efficient at passing that raw sixty hertz power. But to the tiny high frequency X ten signal, that transformer behaves completely differently.

Speaker 1

It blocks it.

Speaker 2

Yeah, it has what engineers call high impedance to that specific frequency.

Speaker 1

Let me clarify that term for a second. Impedance is essentially electrical resistance. That change is based on the frequency of the wave.

Speaker 2

Correct.

Speaker 1

So to the massive sixty herz power wave, the transformer looks like a wide open highway, but to the delicate one hundred and twenty kiloberts data tone, that exact same transformer suddenly acts like a thick par wall.

Speaker 2

That's a perfect analogy. The signal simply cannot pass easily from one side of your breaker panel to the other. If you plug a transmitter into an outlet on rail A and the lamp is on rail B, the signal might degrade so severely bouncing against that brick wall that the lamp never even hears the start code.

Speaker 1

So how do you fix that.

Speaker 2

You basically have to build a detour. You go into the breaker panel and install a coupler or a repeater. It catches the signal on one rail bypasses the transformer entirely and shuttles it directly over to the other rail.

Speaker 1

Okay, but even once you build that bridge, the eye obstacles don't stop because ironically, modern electronics are actually the natural predators of this data.

Speaker 2

Oh this is one of the biggest headaches in home automation. Think about switching power supplies.

Speaker 1

Like the power bricks for laptops.

Speaker 2

Yeah, the power bricks on your computer, your flat screen TV, basically any modern digital device. Inside those power supplies are capacitors designed to smooth out and filter the electrical power. But to a high frequency one hundred and twenty Killerherz signal, those specific capacitors act as a zero impedance black hole.

Speaker 1

Wait, a black hole, meaning there is literally zero resistance. The signal just falls right in.

Speaker 2

It completely eats the signal. You could buy a brand new flat screen TV, plug it into the wall, and suddenly the automated lights in the living room completely stop responding just.

Speaker 1

Because the TV is physically swallowing the data tones right out of the copper wiring.

Speaker 2

It literally absorbs the signal before it can reach the lamp.

Speaker 1

That is wild. So what's the solution to solve that?

Speaker 2

You have to deploy inline filters. You plug little box, which is basically specialized inductor coil, into the wall, and then plug the TV into the box.

Speaker 1

Ah, so it acts like a nightclub bouncer. Yeah, it happily lets the bulky sixty hertz power flow right into the TV, but it violently blocks the one hundred and twenty kill herds of data from entering the TV and getting eaten.

Speaker 2

Exactly. But wait, if your signal isn't getting blocked by a transformer or absorbed by a television, it's probably getting shouted over because.

Speaker 1

The electrical grid inside a home is incredibly noisy, very noisy.

Speaker 2

Fluorescent lamps, for instance, are terrible offenders. The electrical arc inside a fluorescent tube actually dies and re strikes itself at every single zero crossing of the power.

Speaker 1

Line, which is the exact microsecond or x ten signal is trying to quietly surf the wave.

Speaker 2

Exactly, So every time that fluorescent tube sparks, it blasts wide band high frequency noise all over the grid, and I.

Speaker 1

Imagine large motors are just as bad.

Speaker 2

Oh yeah, anything with commutators and brushes like a vacuum cleaner or a blender, generates chaotic electrical spikes. And remember, the wires don't stop at your house. Even your neighbor's X ten system can bleed over through the shared utility transformer and start randomly turning your kitchen lights on and off.

Speaker 1

Here's where it gets really interesting. Think of the X ten signal like someone trying to whisper a delicate secret code across a massive echoing house. Okay, except while they' whispering someone else is running a blender. Your television is physically absorbing the sound waves out of the air, and the guy next door is shouting his own secret codes through the open window.

Speaker 2

If we connect this to the bigger picture, this entire struggle is the ultimate illustration of the clash between the messy, chaotic analog real world and the rigid needs of digital communication. Right, the digital world demands perfection, but the analog power grid is a violent storm of energy. Making the two cooperate takes a lot of engineering duct tape.

Speaker 1

So let's say you've a play all that duct tape. You've installed the repeaters, You've plugged in the bouncers to protect the signal from your TV. You've waited for the blender to stop, and your whispered digital signal actually arrives safely at the physical wall switch.

Speaker 2

You're still not out of the woods.

Speaker 1

Right, because if you have installed the wrong hardware modules behind the dry wall, you might actually destroy your expensive appliances.

Speaker 2

This is a critical distinction the authors make. When you buy these automated switches, you have to understand the fundamental difference between simple appliance modules and dimmer switches.

Speaker 1

Okay, break that down for us.

Speaker 2

An appliance module is essentially a digital relay. It has a physical mechanical contact inside it violently clicks on or violently clicks off. It doesn't modify the electricity. It just acts as a simple gait.

Speaker 1

But dimmers are completely different animals, right.

Speaker 2

Dimmers don't use mechanical clicks that use a solid state semiconductor called triac, and a triac doesn't just lower the voltage smoothly like turning down a water faucet.

Speaker 1

It doesn't.

Speaker 2

No, it actually violently chops off a portion of the wave it waits a fraction of a second after the zero crossing, and then suddenly slams the power on.

Speaker 1

So it's rapidly chopping the electrical wave of one hundred and twenty times a second.

Speaker 2

Yes, and that constant truncation introduces chaotic new frequency components into the power line.

Speaker 1

But wait, if dimmers are that effective at controlling light levels, why bother with basic on off switches at all? Wouldn't it be easier to just use dimmers universally across the whole house. Then you always have the option to dim whatever is plugged in.

Speaker 2

You really can't, and it comes entirely down to physics. You have to understand the critical difference between resistive loads and reactive loads. A standard old school incandescent light bulb is a resistive load. It's literally just a piece of wire that gets hot and glows. It doesn't care if the power wave is smoothly rolling or violently chopped up. It just takes whatever energy it gets and clows a little less brightly.

Speaker 1

So TRIACs work beautifully for pure resistive loads exactly.

Speaker 2

But most modern devices plugged into our walls aren't just hot, glowing wires.

Speaker 1

Right, Things like fan motors, fluorescent tubes or high end halogen lamps with internal magnetic transformers. Those are reactive loads, right.

Speaker 2

Yes, they contain magnetic coils or capacitors that expect a smooth, continuous wave of power to function.

Speaker 1

So to put it, simply, feeding a chopped up wave from a dimmer to a motor is like trying to push a child on a swing by randomly and violently jerking the chains instead of giving them smooth, rhythmic pushes.

Speaker 2

That's exactly what happens. The magnetic field inside the motor collapses and spikes unpredictably. The motor will stall, it'll violently overheat, and eventually it will burn out. Wow, a transformer will start buzzing loudly and destroy itself. You must only ever use dimmer modules on pure resistive loads.

Speaker 1

It sounds like a hardware hacker's absolute nightmare if you don't know what you're doing.

Speaker 2

It really is.

Speaker 1

But if you follow the rules, if you meticulously map out your resistive and reactive loads, if you filter your TVs and bridge your transformer, you get the ultimate payoff. Yeah, total automated control. That's the dream, And the book finishes this deep dive by showing how you can give this entire sprawling ecosystem a brain by tying it all together with a PC.

Speaker 2

Right, Because the ultimate goal isn't just to use a remote control, it's to automate. And to do that you use a computer interface controller like the X ten cmlven.

Speaker 1

A and that connects to the computer via an RS two thirty two serial port.

Speaker 2

Right, Yeah, that classic deeply reliable multipin connector. It acts as a translator. The PC sends complex logic through the serial port into the controller, and the controller translates those software commands into the tiny one hundred and twenty killerhertz power line, whispers that the wall outlets understand.

Speaker 1

And once your PC is actively talking to your house wiring, the possibilities are wild. The authors detail a project using a piece of software called homes here. And you aren't just telling the software to turn the lights on at six pm.

Speaker 2

No, you actually punch your exact geographic latitude and longitude coordinates into the computer.

Speaker 1

And based on your physical location on the globe, the PC mathematically calculate it's the exact minute of the sun rising and setting for your specific.

Speaker 2

House, automatically updating every single day of the year as the seasons.

Speaker 1

Change, which is so cool. It uses the network to automatically trigger your outdoor lights precisely at dusk and off at dawn. But it gets even better. Oh so, because a perfectly timed house it triggers at the exact same minute every day, is a dead giveaway to a burglar watching from the street. They know it's just a dumb timer. So the home sier software injects mathematical randomness into the schedule.

Speaker 2

Oh that's smart.

Speaker 1

Yeah, it might decide to turn the ports light on twelve minutes early on a Tuesday and six minutes late on a Wednesday. It might turn the living room light on for twenty minutes at two am, just to make it look like someone got up for a glass of water.

Speaker 2

It perfectly bridges the gap between complex software logic and physical hardware action. Your house becomes this dynamic, unpredictable entity that looks completely lived in, even when you are a thousand miles away on vacation.

Speaker 1

It is an incredible technical time journey. I mean, think about the path we just walked. We started with the raw danger of hacking lethal AC voltage. We dove into them and the reward.

Speaker 2

For understanding all of that is a home that acts autonomously on your behalf. When you take the time to look under the hood, the mundane infrastructure we take for granted really becomes extraordinary.

Speaker 1

So what does this all mean. It means your home is no longer just a static shelter of dry wall and copper wire. When you understand the layers of communication running beneath it, your house becomes a dynamic, programmable minion waiting.

Speaker 2

For your instructions beautifully set, which.

Speaker 1

Leads me with one final thought, freedom all over today. If our old, crude, chaotic analog power lines can successfully harbor hidden digital messages to completely automate a house, what other invisible, everyday physical infrastructures around you right now might be secretly doubling as vast undiscovered communication networks. Keep your eyes open.

Transcript source: Provided by creator in RSS feed: download file
For the best experience, listen in Metacast app for iOS or Android