Taking A Deep Dive Into SPI

With the prevalence of libraries, it has never been easier to communicate with hundreds of different sensors, displays, and submodules. But what is really happening when you type SPI.begin() into the Arduino IDE? In his most recent video, [Ben Eater] explores the Serial Peripheral Interface (SPI) and how it really works.

Most Hackaday readers probably know [Ben] from his breadboard-based computers, such as the 6502 build we featured in 2019. Since then he has been hard at work, adding new and interesting additions to his breadboard computer, as well as diving into different communication protocols to better understand and implement them. For this video, [Ben] set the goal of connecting the BME280, a common pressure, temperature, and humidity sensor with an SPI interface, to his breadboard 6502 computer. Along the way, [Ben] discusses how exactly SPI works, and why there is so much conflicting nomenclature and operations when looking at different SPI devices.

If breadboard computers aren’t your thing, there are tons of other uses for the BME280, such as helping to modernize a Casio F-91W.

Continue reading “Taking A Deep Dive Into SPI”

Making A Car Key From A Ratcheting Wrench

Car keys these days are remarkably complex beasts. Covered in buttons and loaded with security transponders, they often cost hundreds of dollars to replace if you’re unlucky enough to lose them. However, back in the day, keys used to just be keys — a hunk of metal in a mechanical pattern to move some levers and open a door. Thus, you could reshape a wrench into a key for an old car if that was something you really wanted to do.

The concept is simple. Take a 12mm ratcheting wrench, and shape the flat section into a profile matching that of a key for an older car without any electronic security features. The first step is to cut down the shaft, before grinding it down to match the thickness and width of the original key.

The profile of the key is then drawn onto the surface, and a Dremel used with a cutting disc to create the requisite shape.  Finally, calipers are used to mark out the channels to allow the key to slide into the keyway, before these are also machined with the rotary tool.

Filing and polishing cleans up the final result to create a shiny, attractive ratchet wrench key. Even better, it does a great job of opening the car, too.

Similar machining techniques can be used to duplicate a key from just a photo (something I did back in 2019 to prank my friend). Alternatively, 3D printing can be great for reproducing even high-security keys. Video after the break.

Continue reading “Making A Car Key From A Ratcheting Wrench”

Measuring current draw of home shop tools

Using Homebrew Coils To Measure Mains Current, And Taking The Circuit Breaker Challenge

Like many hackers, [Matthias Wandel] has a penchant for measuring the world around him, and quantifying the goings-on in his home is a bit of a hobby. And so when it came time to sense the current flowing in the wires of his house, he did what any of us would do: he built his own current sensing system.

What’s that you say? Any sane hacker would buy something like a Kill-a-Watt meter, or even perhaps use commercially available current transformers? Perhaps, but then one wouldn’t exactly be hacking, would one? [Matthias] opted to roll his own sensors for quite practical reasons: commercial meters don’t quite have the response time to catch the start-up spikes he was interested in seeing, and clamp-on current transformers require splitting the jacket on the nonmetallic cabling used in most residential wiring — doing so tends to run afoul of building codes. So his sensors were simply coils of wire shaped to fit the outside of the NM cable, with a bit of filtering to provide a cleaner signal in the high-noise environment of a lot of switch-mode power supplies.

Fed through an ADC board into a Raspberry Pi, [Matthias]’ sensor system did a surprisingly good job of catching the start-up surge of some tools around the shop. That led to the entertaining “Circuit Breaker Challenge” part of the video below, wherein we learn just what it really takes to pop the breaker on a 15-Amp branch circuit. Spoiler alert: it’s a lot.

Speaking of staying safe with mains current, we’ve covered a little bit about how circuit protection works before. If you need a deeper dive into circuit breakers, we’ve got that too.

Continue reading “Using Homebrew Coils To Measure Mains Current, And Taking The Circuit Breaker Challenge”

A flip-top foundry for metal casting

Flip-Top Foundry Helps Manage The Danger Of Metal Casting

Melting aluminum is actually pretty easy to do, which is why it’s such a popular metal for beginners at metal casting. Building a foundry that can melt aluminum safely is another matter entirely, and one that benefits from some of the thoughtful touches that [Andy] built into his new propane-powered furnace. (Video, embedded below.)

The concern for safety is not at all undue, for while aluminum melts at a temperature that’s reasonable for the home shop, it’s still a liquid metal that will find a way to hurt you if you give it half a chance. [Andy]’s design minimizes this risk primarily through the hands-off design of its lid. While most furnaces have a lid that requires the user to put his or her hands close to the raging inferno inside, or that dangerously changes the center of mass of the whole thing as it opens, this one has a fantastic pedal-operated lid that both lifts and twists. Leaving both hands free to handle tongs is a nice benefit of the design, too.

The furnace follows a lot of the design cues we’ve seen before, starting as it does with an empty party balloon helium tank. The lining is a hydrid of ceramic blanket material and refractory cement; another nice safety feature is the drain channel cast into the floor of the furnace in case of a cracked crucible. The furnace is also quite large, at least compared to [Andy]’s previous DIY unit, and has a sturdy base that aids stability — another plus in the safety column.

Every time we see a new furnace design, we get the itch to start getting into metal casting. And with the barrier to entry as low as a KFC bucket or an old fire extinguisher, why not give it a try? Although it certainly pays to know what can go wrong before diving in.

Continue reading “Flip-Top Foundry Helps Manage The Danger Of Metal Casting”

What the Antikythera workshop may have looked like

Clickspring Imagines The Workshop That Built The Antikythera Mechanism

When you look at the mechanisms of antiquity, it’s hard not to wonder, “How did they ever do that?” Just a look around our own shops shows how many things are bought from suppliers that benefit from the latest in automated machinery, computer control, and clean, safe electrical power. And that’s not to mention the high-tech stuff like electronics, which were centuries in the future for the ancient master craftsmen.

And yet, they built. Granted, not every artifact was as complex as the Antikythera mechanism, but still, this ancient astronomical computer exists, and must have come from someone’s workshop. What did that place look like? That’s the question [Chris], aka [Clickspring], sets out to answer in his new video.

Like any good academician would, he relies on evidence locked in the device itself to provide clues as to how it was produced, and to make educated guesses as to the contents of the shop (or shops) that made it. For example, the intricacy of the work would have required ample lighting, so the shop was likely at least partially open-air. There must have been a source of heat for working the brass and bronze materials of the original. There had to be workbenches, storage for stock, and probably places for apprentices to turn their hands to simple tasks under their master’s watchful eye. In short, it probably would have been quite recognizable to our eyes, and probably would have been a model of ergonomic efficiency.

[Chris] kindly gave us a sneak peek at the video and a few hours of exclusivity before it goes live to the general public, and we really appreciate that. We’re really looking forward to more of the Antikythera build, and can’t wait to see the finished product.

Continue reading “Clickspring Imagines The Workshop That Built The Antikythera Mechanism”

Pandemic Gives Passersby A Window On Cyborg Control

What’s this? Another fabulous creation from [Niklas Roy] and [Kati Hyyppä] that combines art and electronics with our zeitgeist and a lot of recycled bits and bobs? You got it. Their workshop in eastern Berlin used to be a retail shop and has a large display window as a result. This seems perfect for a pair of artists in a pandemic, because they can communicate with the community through the things they display in the window. Most recently, it was this interactive cyborg baby we are choosing to call Cybaby.

You might recognize Cybaby as one of the very hackable Robosapien robots, but with a baby doll head. (It also has a single red eye that really pulls its look together.) In the window, Cybaby comes alive and toddles around against a backdrop that grew and evolved over several weeks this spring and summer. Passersby were able to join the network and control Cybaby from outside with their smartphone to make it walk around, press various buttons that change its environment, and trigger a few sensors here and there. Robosapien has been around for about 20 years, so there is already Arduino code out there that essentially simulates its R/C signals. [Niklas] and [Kati] used a NodeMCU (ESP12-E) to send pulses to the IR input of the robot.

Back on the zany zeitgeist front, there’s a hair salon, a convenience store, and a nightclub for dancing that requires a successful trip through the testing center first (naturally). Oh, and there’s a lab next door to the nightclub that can’t be accessed by Cybaby no matter what it tries or how it cries. Check it out after the break.

There’s a dearth of Robosapien posts for some reason, so here’s what [Niklas] and [Kati] had in their window before the World of Cybaby — a really cool pen plotter that prints out messages sent by people walking by.

Continue reading “Pandemic Gives Passersby A Window On Cyborg Control”

the introduction page of "a summary of electronics"

This Electronics Overview Guides New Hackers In The Right Direction

Many of us don’t have a formal background to build off when taking on new hacks, we have had to teach ourselves complex concepts and learn by doing (or more commonly, by failing). To help new hackers get off the ground a bit easier, [PhilosopherFar3847] created a fantastic starter’s resource on electronics, The Electroagenda Summary of Electronics.

[PhilosipherFar3847] created Electroagenda with the goal of helping amateurs, students, and professionals alike better understand electronics. The Summary of Electronics, one of the more recent additions to the website, is split across 26 sections each breaking down a different electrical concept into easy-to-understand facts with no math or unfamiliar jargon. The summary covers a broad range of electronics, from simple passive components and their uses, up to the basic operating concepts of a microcontroller.

While this resource on its own will not be enough to get a fledgling hacker started making cool circuits, it does provide a very important skill; knowing how to ask the right questions. This base of knowledge provides enough context and keywords to better articulate a challenge and Google-fu a bit more effectively.

Are you the aforementioned fledgling hacker, looking to learn more? check out these nifty logic gates you can plug into each other to build a basic circuit.

[via r/diyelectronics]