Edging Ahead When Learning On The Edge

“With the power of edge AI in the palm of your hand, your business will be unstoppable.

That’s what the marketing seems to read like for artificial intelligence companies. Everyone seems to have cloud-scale AI-powered business intelligence analytics at the edge. While sounding impressive, we’re not convinced that marketing mumbo jumbo means anything. But what does AI on edge devices look like these days?

Being on the edge just means that the actual AI evaluation and maybe even fine-tuning runs locally on a user’s device rather than in some cloud environment. This is a double win, both for the business and for the user. Privacy can more easily be preserved as less information is transmitted back to a central location. Additionally, the AI can work in scenarios where a server somewhere might not be accessible or provide a response quickly enough.

Google and Apple have their own AI libraries, ML Kit and Core ML, respectively. There are tools to convert Tensorflow, PyTorch, XGBoost, and LibSVM models into formats that CoreML and ML Kit understand. But other solutions try to provide a platform-agnostic layer for training and evaluation. We’ve also previously covered Tensorflow Lite (TFL), a trimmed-down version of Tensorflow, which has matured considerably since 2017.

For this article, we’ll be looking at PyTorch Live (PTL), a slimmed-down framework for adding PyTorch models to smartphones. Unlike TFL (which can run on RPi and in a browser), PTL is focused entirely on Android and iOS and offers tight integration. It uses a react-native backed environment which means that it is heavily geared towards the node.js world.

Continue reading “Edging Ahead When Learning On The Edge”

This Arduino Pen Plotter Is Built For Speed

We see a lot of simple pen plotter projects around here, and while we appreciate them one and all, most of them are a little on the slow side. That’s OK — a glacial pace is sometimes all that’s needed, as long as it gets the job done. But there’s nothing wrong with putting the pedal to the metal, so to speak. And that’s exactly what this super-fast Arduino-based plotter is all about.

As the story goes, [IV Projects] felt the need for speed after building an earlier pen plotter project that worked, but failed to excite. With the additional goal of keeping the plotter easy to build with cheap parts, the design centers on a “grit roller drive” for the Y-axis — the one that actually moves the paper back and forth. And move it does, using Dremel tool sanding drums on a lightweight shaft to maximize acceleration. In fact, all the moving parts are kept as lightweight as possible, and the results really show — the three steppers really sing when this plotter is in action.

There are some really clever details in [IV Projects]’ design. We particularly like the way the pen lift mechanism works, and the surprise appearance of a clothespin spring as a belt tensioner was a real treat. Judging by the pile of rejected prototype parts, it took quite a bit of work to get this design right. If you’d like to build your own, STLs are available for the printed parts.

If you’re interested in what the other end of the speed scale looks like, check out this bare-minimum pen plotter.

Continue reading “This Arduino Pen Plotter Is Built For Speed”

Mining And Refining: Helium

With a seemingly endless list of shortages of basic items trotted across newsfeeds on a daily basis, you’d be pardoned for not noticing any one shortage in particular. But in among the shortages of everything from eggs to fertilizers to sriracha sauce has been a growing realization that we may actually be running out of something so fundamental that it could have repercussions that will be felt across all aspects of our technological society: helium.

The degree to which helium is central to almost every aspect of daily life is hard to overstate. Helium’s unique properties, like the fact that it remains liquid at just a few degrees above absolute zero, contribute to its use in countless industrial processes. From leak detection and welding to silicon wafer production and cooling the superconducting magnets that make magnetic resonance imaging possible, helium has become entrenched in technology in a way that belies its relative scarcity.

But where does helium come from? As we’ll see, the second lightest element on the periodic table is not easy to come by, and considerable effort goes into extracting and purifying it enough for industrial use. While great strides are being made toward improved methods of extraction and the discovery of new deposits, for all practical purposes helium is a non-renewable resource for which there are no substitutes. So it pays to know a thing or two about how we get our hands on it.

Continue reading “Mining And Refining: Helium”

Simple Snap Action Mechanism Is 100% 3D Printed

Plastics are wonderous materials, much loved for their ability to elastically deform and spring back to their original shape. They’re a category of materials perfect for creating things like living hinges and similar mechanisms, and this 3D printed snap action device shows that off admirably.

The device consists of an outer housing, into which two printed springs are inserted. These leaf springs are curved and protrude towards the center of the housing. A slide is then inserted into the housing with a cam in its middle. The cam allows the slide to push past the springs when actuated, while also holding it in place at rest.

As demonstrated the mechanism reliably snaps back and forth between its two positions in a satisfying manner. It’s shown with one side of the housing removed so we get a good idea of how it works. It’s 100% 3D printed, as well. Anyone looking to replicate the design should note the importance of printing orientation, particularly in the case of the spring pieces, which won’t work if layered up in the wrong way.

Overall, it’s a neat design that could prove useful for those eager to build printed switches or other mechanical devices. It’s also simply a great way to learn about 3D printed springs and working with deformable plastic structures. Video after the break.

Continue reading “Simple Snap Action Mechanism Is 100% 3D Printed”

PyScript: Python In The Web Browser

A chainsaw can make short work of clearing out the back forty. It can also make a good horror movie. So while some people will say we don’t need another tool to allow more malicious scripting in the browser, we also know that, like any tool, you can use it or abuse it. That tool? PyScript, which is, of course, Python in the browser.

The tool is in the early experimental phase, so the project doesn’t suggest using it in a production environment yet. However, if it works well, the promise is not just that you can write browser-based applications in Python — you’ll have a handy way to reuse existing Python code and even be able to run the same code on the browser that currently runs on the server. This has a lot of implications for improved client/server applications, or cases where you want to be able to run against a local backend when disconnected and a remote backend when you do have a connection. Of course, you can interoperate with JavaScript, too.

Continue reading “PyScript: Python In The Web Browser”

3D-Printed Power Loom Shows How Complex Weaving Really Is

The seemingly humble flying-shuttle loom, originally built to make the weaving of wide cloth faster and easier, stood at the threshold between the largely handcrafted world of the past and the automated world that followed. And judging by how much work went into this miniature 3D-printed power loom, not to mention how fussy it is, it’s a wonder that we’re not all still wearing homespun cloth.

Dealing with the warp and the weft of it all isn’t easy, as [Fraens] discovered with this build. The main idea with weaving is to raise alternate warp threads, which run with the length of the fabric, to create a virtual space, called the shed, through which a shuttle carrying the weft thread is passed. The weft thread is then pressed in place by a comb-like device called the reed, the heddles carrying the warp threads shift position, and the process is repeated.

[Fraens]’ version of the flying-shuttle loom is built mostly from 3D-printed parts, with a smattering of aluminum and acrylic. There are levers, shafts, and cams galore, not to mention the gears and sprockets that drive the mechanism via a 12-volt gear motor. The mechanism that moves the shuttle back and forth in the shed is particularly interesting; it uses cams to release the tension stored in elastic bands to flick the shuttle left and right. Shuttle timing is critical, as a few of the fails later in the video show. [Fraens] had to play with cam shape and lever arm length to get the timing right, not to mention having to resort to a chain drive to get enough torque to move the shuttle.

We’ve seen power looms before, but mainly those that operate at a somewhat more stately pace than this one. Hats off to [Fraens] for showing the true complexity involved in automating weaving.

Continue reading “3D-Printed Power Loom Shows How Complex Weaving Really Is”

Practical Transistors: JFETs

Transistors come in different flavors. Tubes used an electric field to regulate current flow, and researchers wanted to find something that worked the same way without the drawbacks like vacuum and filament voltages. However, what they first found — the bipolar transistor — doesn’t work the same way. It uses a small current to modulate a larger current, acting as a switch. What they were looking for was actually the FET — the field effect transistor. These come in two flavors. One uses a gate separated from the channel by a thin layer of oxide (MOSFETs), and the other — a junction or JFET — uses the property of semiconductors to deplete or enhance carriers in the channel. [JohnAudioTech] takes a decidedly practical approach to JFETs in a recent video that you can watch below.

The idea for the FET is rather old, with patents appearing in 1925 and 1934, but there were no practical devices at either time. William Shockley tried and failed to make a working FET in 1947, the same year the first point-contact transistor appeared, which was invented while trying to create practical FETs. In 1948, the bipolar junction transistor hit the scene and changed everything. While there were a couple of working FETs created between 1945 and 1950, the first practical devices didn’t appear until 1953. They had problems, so interest waned in the technology while the industry focused on bipolar transistors. However, FETs eventually got better, boasting both very high input impedance and simplified biasing compared to bipolar technology.

Continue reading “Practical Transistors: JFETs”