Raspberry Pi Offers Soulless Work Oversight

If you’re like us, you spend more time than you care to admit staring at a computer screen. Whether it’s trying to find the right words for a blog post or troubleshooting some code, the end result is the same: an otherwise normally functioning human being is reduced to a slack-jawed zombie. Wouldn’t it be nice to be able to quantify just how much of your life is being wasted basking in the flickering glow of your monitor? Surely that wouldn’t be a crushingly depressing piece of information to have at the end of the week.

With the magic of modern technology, you need wonder no longer. Prolific hacker [dekuNukem] has created the aptly named “facepunch”, which allows you to “punch in” with nothing more than your face. Just sit down in front of your Raspberry Pi’s camera, and the numbers start ticking away. It’s like the little clock in the front of a taxi: except at the end you don’t have to pay anyone, you just have to come to terms with what your life has become. So that’s cool.

It doesn’t take much hardware to play along at home. All you need is a Raspberry Pi and the official camera accessory. Though for the full effect you should add one of the displays supported by the Luma.OLED driver so you can see the minutes and hours ticking away in real-time.

To get the facial recognition going, all you need to do is take a well-lit picture of your face and save it as a 400×400 JPEG. The Python 3 script will take care of the rest: checking the frames from the camera every few seconds to see if your beautiful mug is in the frame, and incrementing the counters accordingly.

Even if you’re not in the market for an Orwellian electronic supervisor, this project is a great example to get you started in the world of facial recognition. With a little luck, you’ll be weaponizing it in no time.

Fooling Speech Recognition With Hidden Voice Commands

It’s 2018, and while true hoverboards still elude humanity, some future predictions have come true. It’s now possible to talk to computers, and most of the time they might even understand you. Speech recognition is usually achieved through the use of neural networks to process audio, in a way that some suggest mimics the operation of the human brain. However, as it turns out, they can be easily fooled.

The attack begins with an audio sample, generally of a simple spoken phrase, though music can also be used. The desired text that the computer should hear instead is then fed into an algorithm along with the audio sample. This function returns a low value when the output of the speech recognition system matches the desired attack phrase. The input audio file is gradually modified using the mathematics of gradient descent, creating a result that to a human sounds like one thing, and to a machine, something else entirely.

The audio files are available on the site for your own experimental purposes. In a noisy environment with poor audio coupling between speakers and a Google Pixel, results were poor – OK Google only heard the human phrase, not the encoded attack phrase. Given that the sound quality was poor, and the files were generated with a different speech model, this is not entirely surprising. We’d love to hear the results of your experiments in the comments.

It’s all a part of [Nicholas]’s PhD studies around the strengths and pitfalls of neural networks. It highlights the fact that neural networks don’t always work in the way we think they do. Google’s Inception is susceptible to similar attacks with images, as we’ve seen recently.

[Thanks to Wolfgang for the tip!]

3D Printing A Better Quadcopter Frame

Before you smash the “Post Comment” button with the fury of Zeus himself, we’re going to go ahead and say it: if you want to build a decent quadcopter, buy a commercial frame. They are usually one of the cheaper parts of the build, they’re very light for how strong they are, and replacement parts are easily available. While you could argue the cost of PLA/ABS filament is low enough now that printing it would be cheaper than buying, you aren’t going to be able to make a better quadcopter frame on a 3D printer than what’s available on the commercial market.

The frame features a surprisingly low part count.

Having said that, [Paweł Spychalski] has recently shown off his 3D printed FPV racing quadcopter frame with some surprising results. The frame ended up being surprisingly stiff, and while the weight is a bit high, it’s actually lighter than he expected. If you’re looking to build a quad with the absolute minimum of expense his design might be something to look into.

Of course, [Paweł] is hardly the first person to think about printing a quad frame. But he did give his design some extra consideration to try and overcome some of the shortcomings he noticed in existing 3D printed designs. For one, rather than have four separate arms that mount to a central chassis, his design has arms that go all the way across with a thick support that goes between the motors. The central chassis is also reassuringly thick, adding to the overall stiffness of the frame.

The key here is that [Paweł] printed all the parts with 2 mm thick walls. While that naturally equates to longer print times and greater overall weight, it’s probably more than worth it to make sure the frame doesn’t snap in half the first time it touches the ground.

Beyond the printed parts, all you need to assemble this frame are about a dozen M3 nuts and bolts. Overall, between the hardware and the plastic you’re looking at a total cost of under $5 USD. In the video below [Paweł] puts the frame through its paces doing some acrobatic maneuvers, and it looks like 5 bucks well spent to us.

If you want to go all-in on 3D printed quadcopter parts, you can pair this frame with some printed propellers. Perhaps even a printed camera gimbal while you’re at it. Continue reading “3D Printing A Better Quadcopter Frame”

Iro3d 3D Prints In Powdered Metal

Printing with plastic and even resin is getting fairly common. Metal printing, though, is still in the realm of the exotic. A company called Iro3D is aiming to change that with a steel printer that you can buy in beta for about $5000. That seems steep when you can get plastic printers for under $200, but it is sheer bargain basement for something that can print in real metal.

Of course, there’s a catch. The printer doesn’t create a solid metal object right away. What it does is prepares a crucible using sand and metal powder. You then place the crucible in a kiln and what comes out is the final product. You can see a video review of their prototype machine, below from [3D Printing Nerd]. The company’s promotional video that shows a part coming out of the kiln is also below.

Continue reading “Iro3d 3D Prints In Powdered Metal”

Is That Part A Counterfeit? Here Are A Few Pointers

If you order an electronic component, how do you know what it is you are receiving? It has the right package and markings, but have you got the real thing from the original manufacturer or have you got an inferior counterfeit? We hear so much about counterfeit parts, and sometimes the level of effort put in by the fraudsters is so high that from either a visual or electrical standpoint they can be hard to spot.

[Robb Hammond] writes for Aeri, with an extremely interesting guide to some of the cues for spotting a counterfeit semiconductor part. In doing so he gives us something of an insight into the techniques used by the fraudsters.

The first feature of a package to be examined are the indents. Relabeled chips often have their old markings sanded off and a coating applied to simulate the surface of an unmolested chip, and this coating can either obliterate or partially fill any indentations. Using comparison photos we are shown discernable hidden indents, and partially filled indents.

We’re shown textures and paints, and how markings can sometimes be shown as counterfeit by washing with solvent. A Cypress-marked part is found to be a cheaper Altera one under the paint, and other parts are shown with misaligned markings and markings placed over indents. Wildly varying countries of origin are claimed while seemingly retaining the same batch codes, an impossibility confirmed by manufacturers.

If you order your parts from legitimate distributors then it’s likely that what you receive will be the genuine article. However with the popularity of online auction sites and online bazaars the possibility has become ever more likely of being left with a counterfeit. Knowing some of these tips might just make the difference between the success or failure of your work, so it’s an interesting read.

Have you had any dodgy parts on your bench? Tell us about them in the comments. Meanwhile, it’s a subject we’ve covered before.

Via Hacker News.

Spectre And Meltdown: How Cache Works

The year so far has been filled with news of Spectre and Meltdown. These exploits take advantage of features like speculative execution, and memory access timing. What they have in common is the fact that all modern processors use cache to access memory faster. We’ve all heard of cache, but what exactly is it, and how does it allow our computers to run faster?

In the simplest terms, cache is a fast memory. Computers have two storage systems: primary storage (RAM) and secondary storage (Hard Disk, SSD). From the processor’s point of view, loading data or instructions from RAM is slow — the CPU has to wait and do nothing for 100 cycles or more while the data is loaded. Loading from disk is even slower; millions of cycles are wasted. Cache is a small amount of very fast memory which is used to hold commonly accessed data and instructions. This means the processor only has to wait for the cache to be loaded once. After that, the data is accessible with no waiting.

A common (though aging) analogy for cache uses books to represent data: If you needed a specific book to look up an important piece of information, you would first check the books on your desk (cache memory). If your book isn’t there, you’d then go to the books on your shelves (RAM). If that search turned up empty, you’d head over to the local library (Hard Drive) and check out the book. Once back home, you would keep the book on your desk for quick reference — not immediately return it to the library shelves. This is how cache reading works.

Continue reading “Spectre And Meltdown: How Cache Works”

Coin Cell Hacks That Won The Coin Cell Challenge

It’s amazing what creative projects show up if you give one simple constraint. In this case, we asked what cool things can be done if powered by one coin cell battery and we had about one hundred answers come back. Today we’re happy to announce the winners of the Coin Cell Challenge.

Continue reading “Coin Cell Hacks That Won The Coin Cell Challenge”