Debugging PCBs With Augmented Reality

Mihir Shah has designed many a PCB in his time. However, when working through the development process, he grew tired of the messy, antiquated methods of communicating design data with his team. Annotating photos is slow and cumbersome, while sending board design files requires everyone to use the same software and be up to speed. Mihir thinks he has a much better solution by the name of InspectAR, it’s an augmented reality platform that lets you see inside the circuit board and beyond which he demoed during the 2019 Hackaday Superconference.

The InspectAR package makes it easy to visualise signals on the board.

The idea of InspectAR is to use augmented reality to help work with and debug electronics. It’s a powerful suite of tools that enable the live overlay of graphics on a video feed of a circuit board, enabling the user to quickly and effectively trace signals, identify components, and get an idea of what’s what. Usable with a smartphone or a webcam, the aim is to improve collaboration and communication between engineers by giving everyone a tool that can easily show them what’s going on, without requiring everyone involved to run a fully-fledged and expensive electronics design package.

The Supercon talk served to demonstrate some of the capabilities of InspectAR with an Arduino Uno. With a few clicks, different pins and signals can be highlighted on the board as Mihir twirls it between his fingers. Using ground as an example, Mihir first highlights the entire signal. This looks a little messy, with the large ground plane making it difficult to see exactly what’s going on. Using an example of needing a point to attach to for an oscilloscope probe, [Mihir] instead switches to pad-only mode, clearly revealing places where the user can find the signal on bare pads on the PCB. This kind of attention to detail shows the strong usability ethos behind the development of InspectAR, and we can already imagine finding it invaluable when working with unfamiliar boards. There’s also the possibility to highlight different components and display metadata — which should make finding assembly errors a cinch. It could also be useful for quickly bringing up datasheets on relevant chips where necessary.

Obviously, the electronic design space is a fragmented one, with plenty of competing software in the market. Whether you’re an Eagle diehard, Altium fanatic, or a KiCad fan, it’s possible to get things working with InspectAR. Mihir and the team are currently operating out of office space courtesy of Autodesk, who saw the value in the project and have supported its early steps. The software is available free for users to try, with several popular boards available to test. As a party piece for Supercon, our very own Hackaday badge is available if you’d like to give it a spin, along with several Arduino boards, too. We can’t wait to see what comes next, and fully expect to end up using InspectAR ourselves when hacking away at a fresh run of boards!

DIY Clapper Lets You Pick Your Components

One thing that always means the end of the year is close is the reappearance of TV ads for “The Clapper.” After all, who needs home automation when you can clap on and clap off? While we’re partial to our usual home automation solutions, [Utsource123] shows us that building a clapper can be a fun and easy project using several similar circuits. One with a few transistors and another one with a 555 because, after all, what can’t a 555 do?

Of course, these circuits usually have a microphone. We were trying to think of how you could make a sound-sensitive element out of common parts. After all, you don’t care about the fidelity of the microphone pickup, just that it hears a loud noise. The circuits are about what you’d expect. The transistor version uses one to amplify the microphone and another to switch on the LED. You’d need a bit more to trigger a relay. The 555 uses an even simpler preamp transistor as a trigger.

While we aren’t bowled over with the idea of a clapper, we imagine these circuits aren’t far removed from the ones you buy in stores. For about $16 you also get enough switching to handle a simple AC load, though. Maybe Alexa and Google should allow making clapping a wake up word?

This is sure simpler than the last clapper clone we saw. Then there’s the deluxe DIY version.

Computer Algebra For Electronic Design

Don’t get me wrong. Like most people, there’s nothing I enjoy more than solving a long, involved math problem by hand. But, sometimes, a few pages of algebraic scratches on paper is just a means to an end. I find this especially true during electronic design sessions, be it circuit design or PCB layout; I just need the answer, and any time spent finding it distracts me from the larger task at hand. For me, at least, this seems to happen at least once a week, and about five years ago I decided to do something about it. I had heard of computer algebra packages, of course, but they weren’t taught as part of the undergraduate engineering curriculum when I went to school. So, I set about learning one: let the computers do the math!

The package I chose is wxMaxima, a document-based front-end to the Maxima computer-algebra system. Descended from code originally written in the late 1960s, it’s a general-purpose package supporting symbolic computation for algebra and calculus. There’s solid, mature code underneath with a modern UI veneer on top. Plus, it’s FOSS.

As I’ve progressed, I’ve found that some additional functions make the Maxima environment especially convenient for circuit design. A few are simple enough that I’d typically just re-create them as needed, so I never really got organized – there were several versions of my “library” floating around on various machines. I finally got my act together, cleaned up the most-frequently used functions, and put them into a GitHub repo.

Let’s have a look at how we can use them to take the tedium out of math for some design problems.

Continue reading “Computer Algebra For Electronic Design”

Designing Circuits With Switching Algebra

We return once again to the work of Dr. Claude E. Shannon, this time to his Masters thesis on relay switching circuit design. This thesis introduced switching algebra that allows the systematic design and optimization of logical circuits. While Shannon’s work applied to switches and relays, it is equally applicable to all the modern forms of digital circuits. His thesis received widespread notice when published as “A Symbolic Analysis of Relay and Switching Circuits” in 1938. This work built on the Boolean algebra developed by George Boole and an analysis of logic by Augustus De Morgan which these mathematicians published nearly simultaneously in 1847. To some extent, it was the beginning of the age of modern digital logic. Continue reading “Designing Circuits With Switching Algebra”

A Breadboard In A Browser

[Flownez] sent in a tip that a port of the venerable Falstad circuit simulator is now available that doesn’t require Java (it uses HTML 5). This is a welcome port since some modern browsers (particularly Chrome) make it difficult to run Java applets and prevented the Falstad simulator’s execution.

spice2Like the original simulator, this one is great to show a classroom circuits and encourage building or studying circuits in the browser. There’s no extra software to install, which is handy for an impromptu demo. Another cool feature is the visualization of current flow as animated dots. The dots move in the direction of the current flow and the speed of motion is proportional to the amount of current. Watching a capacitor charge with the moving dots is very illustrative. You can also view data in a scope format or hover the mouse over things to read their values.

You can open a blank circuit and add quite a few components (use the right click button on your mouse or the menu to add components and wires). However, you can also pick from a number of predefined circuits ranging from the simple (a voltage divider, for example) to the illustrative (a PLL frequency doubler comes to mind). There’s even an AM radio (see below) that you can tune to find several “stations” by varying the tuning capacitor’s value. Circuit elements include many types of analog and digital components.

Continue reading “A Breadboard In A Browser”

Altium Gives Away The Farm With New Circuit Maker Software

Things are about to get interesting in the world of PCB design software for the open source hardware community. This week, Altium launched the open public beta for its new Circuit Maker software, and it’s a major change from what we looked at previously. Everything is free.

You heard that right, free. Unlimited board size, and unlimited layers – all free. And this isn’t some stripped-down, bare-bones software here. They’ve thrown in almost everything under the sun; a 3D viewer, team project collaboration, EagleCAD and DFX import, integrated Octopart supplier and pricing information, no commercial usage limits, and project sharing. And if that isn’t enough, the “engine” seems to be the exact same back-end that is used in the full $10,000 Altium Designer as well(with a bit easier to use user interface on top). This is a major departure from the pre-beta we covered back in September. Altium was going have board size and layer limits, with the ability to “upgrade” at a cost. So by now you’re thinking to yourself “OK, what’s the catch?” Well there are a few gotchas – but only a few.

The software uses cloud based storage for your project files, and is community based. It won’t work without an Internet connection, there is no local storage, and it forces you to share your projects with the world. You do get two “Sandbox” designs that you can hide from the world before you generate your gerber files, but after that, your project is online for the whole world to see. Will that be a deal killer for the OSHW community? We’ll find out soon enough.

One thing is for sure, anyone with a doggy Internet connection is not going to enjoy using Circuit Maker (we’re hoping they remove that limitation in the final product). And as with any cloud based service, we wonder how many people will be willing to trust their designs to a free service that could be turned off on a whim? Or will the unlimited board size and layers, combined with Altium’s name and robust software win people over in the end?

If you want to see in-depth review of Circuit Maker, we highly recommend you watch the video after the break.  [Dave Jones] of the eevblog, gives you a full rundown on the beta version. Dave’s in a unique place to review this software, not only has he been using Altium since the mid-80’s as a professional engineer, he’s also a former Altium employee.

Continue reading “Altium Gives Away The Farm With New Circuit Maker Software”

Volumetric Circuits

Building a circuit Manhattan style with small bits of copper and solder is a skill all its own, and building a prototype dead bug style is close to a black art. [Anderson] is taking it to the next level with his volumetric circuits. Not only is he building a free-form circuit that’s also a one-bit ALU, he’s also designing software to make these sort of circuits easy to design and build.

[Anderson] is calling his 3D circuit design software Pyrite, and it does exactly what it says on the tin: creates three-dimensional, grid-aligned physical circuits. Automating the construction of a circuit  is not a trivial task, and soldering all these components together even more so.

With the first prototype of his software, [Anderson] entered the schematic of a simple one bit ALU. The resulting layout was then carefully pieced together with solder and hot glue. It didn’t work, but that’s only because the schematic was wrong. Designing the software is still an incredible accomplishment, and now that [Anderson] has a rudimentary system of automatically designing free form and dead bug circuits, there are a lot of interesting possibilities. Ever wonder if the point to point wiring found in old radios was the most efficient layout? [Anderson] could probably tell you.

You can check out a few videos of [Anderson]’s work below.

Continue reading “Volumetric Circuits”