Build Your Own P-Brain

I don’t think we’ll call virtual assistants done until we can say, “Make me a sandwich” (without adding “sudo”) and have a sandwich made and delivered to us while sitting in front of our televisions. However, they are not completely without use as they are currently – they can let you know the time, weather and traffic, schedule or remind you of meetings and they can also be used to order things from Amazon. [Pat AI] was interested in building an open source, extensible, virtual assistant, so he built P-Brain.

Think of P-Brain as the base for a more complex virtual assistant. It is designed from the beginning to have more skills added on in order to grow its complexity, the number of things it can do. P-Brain is written in Node.js and using a Node package called Natural, P-Brain parses your request and matches it to a ‘skill.’ At the moment, P-Brain can get the time, date and weather, it can get facts from the internet, find and play music and can flip a virtual coin for you. Currently, P-Brain only runs in Chrome, but [Pat AI] has plans to remove that as a dependency. After the break, [Pat AI] goes into some detail about P-Brain and shows off its capabilities. In an upcoming video, [Pat AI]’s going to go over more details about how to add new skills. Continue reading “Build Your Own P-Brain”

A Heart For His Girlfriend

[Decino] made a nice LED animated blinking heart box for his girlfriend. That’s a nice gesture, but more to the point here, it’s a nice entrée into the world of custom hardware. The project isn’t anything more than a home-etched PCB, a custom 3D-printed case, a mess of LEDs and current-limiting resistors, a shift register, and a microcontroller. (OK, we’re admittedly forgetting the Fifth Element.) The board is even single-sided with pretty wide traces. In short, it’s a great first project that ties together all of the basics without any parts left over. Oh, and did we mention Valentine’s day?

Once you’ve got these basics down, though, the world is your oyster. Building almost anything you need is just a matter of refining the process and practice. And if you’ve never played around with shift registers, a mega-blinker project like this is a great way to learn hands-on.

Not everything we write up on Hackaday has to be neural nets and JTAG ports. Sometimes a good beginner project that hits the fundamentals with no extra fat is just the ticket. What’s your favorite intro project?

3D Printing Makes Electronics A Snap

For just about as long as there have been electronics, there’s been a search for a way to let students and hobbyists build projects without a lot of effort. A board with Fahnestock clips was probably the first attempt. Today, it is more often the ubiquitous solderless breadboard. In between, we’ve seen copper pipe pieces and rubber bands, components mounted on magnets that hold them and make connections, and other even less probable schemes. A few years back, a new method appeared: Snap Circuits. The name almost says it all. A baseboard has mounting holes for different components. All the components make their electrical connections and mechanical connections through a common snap like you might find on clothing. Even the wires are little segments with snaps at both ends.

One problem with any system like this is how to integrate custom components. Of course, with the snaps, that’s not very hard, but [Chuck Hellebuyck] got creative with TinkerCad and worked out how to 3D print custom modules for the system. You can see his video, below.

Continue reading “3D Printing Makes Electronics A Snap”

Add Broken Tool Detection To Your CNC Mill

A tool breaking in the midst of a CNC machining operation is always a disaster. Not only do you have a broken tool (no small expense), but if the program continues to run there is a good chance it’ll end up ruining your part too. In particularly bad cases, it’s even possible to for this to damage the machine itself. However, if the breakage is detected soon enough, the program can be stopped in time to salvage the part and avoid damage to your machine.

Many new machining centers have the ability to automatically detect tool breaks, but this is a feature missing from older machines (and inexpensive modern machines). To address this issue, [Wiley Davis] came up with a process for adding broken tool detection to an older Haas mill. The physical modifications are relatively minor: he simply added a limit switch wired to the existing (but unused) M-Function port on the Haas control board. This port is used to expand the functionality of the machine, but [Wiley] didn’t need it anyway.

Continue reading “Add Broken Tool Detection To Your CNC Mill”

PCB Design Guidelines To Minimize RF Transmissions

There are certain design guidelines for PCBs that don’t make a lot of sense, and practices that seem excessive and unnecessary. Often these are motivated by the black magic that is RF transmission. This is either an unfortunate and unintended consequence of electronic circuits, or a magical and useful feature of them, and a lot of design time goes into reducing or removing these effects or tuning them.

You’re wondering how important this is for your projects and whether you should worry about unintentional radiated emissions. On the Baddeley scale of importance:

  • Pffffft – You’re building a one-off project that uses battery power and a single microcontroller with a few GPIO. Basically all your Arduino projects and around-the-house fun.
  • Meh – You’re building a one-off that plugs into a wall or has an intentional radio on board — a run-of-the-mill IoT thingamajig. Or you’re selling a product that is battery powered but doesn’t intentionally transmit anything.
  • Yeeeaaaaahhhhhhh – You’re selling a product that is wall powered.
  • YES – You’re selling a product that is an intentional transmitter, or has a lot of fast signals, or is manufactured in large volumes.
  • SMH – You’re the manufacturer of a neon sign that is taking out all wireless signals within a few blocks.

Continue reading “PCB Design Guidelines To Minimize RF Transmissions”

A Personal Fight Against The Modern Laptop

If you haven’t gone laptop shopping recently, you’re in for a big shock when you do. While the current generation of MacBook Pros is rightly torn to shreds for being an overpriced machine with a stupid gimmick of a Touch Bar, there are issues with laptops across the industry. No one has figured out how to take a high-res iPad screen and add a keyboard, most laptops with a display smaller than 13 inches are capped at 720 resolution, new features are introduced at the expense of old ones, binary blobs are cast into a web of BIOS whitelists and missing drivers, No, the Microsoft Surface doesn’t count, because while it’s a nice machine it’s a tablet with a keyboard, not a laptop.

After months of searching, [Hamish Coleman] found the closest thing to a perfect laptop. It’s a Thinkpad X230 from the ancient days of yore, or 2012 depending on how you’re counting. It’s close to perfect, though: aside from an old CPU and GPU, the only real show stopper is the keyboard. Replacing that keyboard was [Hamish]’s personal fight against the modern laptop (YouTube, embedded below), and he’s making it easier for us to fight against the current crop of craptops, too.

Continue reading “A Personal Fight Against The Modern Laptop”

The Zimmermann Telegram

World War I began in 1914 as a fight among several European nations, while the United States pursued a policy of non-intervention. In fact, Woodrow Wilson was reelected President largely because “He kept us out of war”. But as the war unfolded in Europe, an intercepted telegram sent by the German Foreign Secretary, Arthur Zimmermann, to the Mexican government inflamed the U.S. public opinion and was one of the main reasons for the entry of the U.S. into WWI. This is the story of the encrypted telegram that changed the last century.

Continue reading “The Zimmermann Telegram”