Laser Etching Stainless Steel with Mustard

[Brain] wanted to mark some scissors with his Ortur laser engraver. The problem? The laser won’t cut into the hard metal of the scissors. His solution? Smear the scissors with mustard. No kidding. We’ve heard of this before, and apparently, you can use vinegar, as well, but since the mustard is a paste it is easier to apply. You can see the result in the video, below.

In case you think you don’t need to watch because we’ve already told you the trick, you should know that [Brian] also goes into a lot of detail about preparing single line fonts to get a good result, among a few other tips like improvements to his air assist setup. On a laser cutter, the air assist blows away charred material leaving a clear field of view between the laser and the remaining uncut material. Using a proper air assist can really expand the capabilities of these inexpensive laser cutters — something we recently saw upgraded with a 3D-printed air assist nozzle.

You can buy a commercial marking solution called CerMark Black, but you probably already have mustard. If you are super cheap, you can probably pick up a packet next time you buy a burger somewhere. After all, you don’t need much. Although the video talks about the Ortur, this technique would work with any engraver. We’ve also heard you can do something similar with plaster and alcohol.

source https://hackaday.com/2021/01/02/laser-etching-stainless-steel-with-mustard/

A Gesture Recognizing Armband

Gesture recognition usually involves some sort of optical system watching your hands, but researchers at UC Berkeley took a different approach. Instead they are monitoring the electrical signals in the forearm that control the muscles, and creating a machine learning model to recognize hand gestures.

The sensor system is a flexible PET armband with 64 electrodes screen printed onto it in silver conductive ink, attached to a standalone AI processing module.  Since everyone’s arm is slightly different, the system needs to be trained for a specific user, but that also means that the specific electrical signals don’t have to be isolated as it learns to recognize patterns.

The challenging part of this is that the patterns don’t remain constant over time, and will change depending on factors such as sweat, arm position,  and even just biological changes. To deal with this the model can update itself on the device over time as the signal changes. Another part of this research that we appreciate is that all the inferencing, training, and updating happens locally on the AI chip in the armband. There is no need to send data to an external device or the “cloud” for processing, updating, or third-party data mining. Unfortunately the research paper with all the details is behind a paywall.

The obvious use case for this technology lies in prosthetics, but it can also be a handy as a general computer input for anyone. Alternative input devices featured heavily in the 2020 Hackaday Prize, including a universal remote for those who suffer from Cerebral Palsy, and Byte, a joystick for your mouth.

 

Thanks for the tip [Qes]!

source https://hackaday.com/2021/01/02/gesture-recognizing-armband/

Metal Plating Plastic or Metal Parts

Like most of us, [Clem] wants to 3D print in metal. Metal 3D printers do exist, but they are generally way out of reach for most of us garage hackers. As an alternative, [Clem] uses a homebrew electroplating system to get prints with a metallic coating.

The setup is quite simple. Small glass jars to act as the plating tanks and the machine uses an Arduino controller along with a PCB to hold things like a relay to control the 24V used for electroplating. To keep everything tidy, [Clem] designed a 3D printed box that stores all the cables and chemicals when you aren’t using them. Since the parts might get hot, the plastic is PETG.

The trick is that parts need to be conductive in order to use electroplating — typically plastic isn’t conductive. [Clem] paints the plastic parts to grant them conductivity. Graphite paint didn’t give great results. However, an iron-based paint worked better but obscures detail on the print. In addition to galvanization (plating with zinc or steel) you can see copper plating of a nail at around the 12 minute mark, with a plastic plating demo a minute later. The machine can even plate gold using an expensive gold-bearing electrolyte. In the video comments, someone also mentioned that it would be interesting to try plating conductive filament without using the paint. [Clem] tried to remove rust from a big part, but the power supply wasn’t up to the task.

Copper plating is often used as a step to make a part conductive so you can then plate with another metal. In addition to copper sulfate, you can use copper acetate. Sometimes, getting metal into fine details can be tough and it is easier to use a pen to plate those areas directly.

source https://hackaday.com/2021/01/01/metal-plating-plastic-or-metal-parts/

Simple Christmas Tree Christmas Tree Ornament

When the only tool you have is a hammer, every problem looks like a nail. An LED ornament for the Christmas tree can be built in any manner of simple, easy implementations. You certainly don’t need an ARM Cortex M4 CPU running at 120MHz having a mouthful of three letter features like FPU, ETM, ETB, ECC, RWW, TCM, EIC, AES, CAN bus and much, much more. But [Martin Held] built a super simple LED Christmas tree ornament using the ATSAME51 series micro-controller, which he regularly works with and had on hand, and lots of bi-color LEDs. He already had schematic symbols and programmers for the device from other projects where he uses it more extensively, so putting it all together in time for the festive season was that much faster for him, despite the fact that the micro-controller was most likely the cheapest part of the BOM, besides the passives.

At this point it might be tempting to argue that it would have been so much simpler to use addressable LED’s, such as the WS2812B or the APA102C. You can drive them using a more basic micro-controller, and not require so many GPIO pins. But using such “smart pixel” LED’s for hand assembled prototypes can sometimes lead to unexpected results. If they are not stored in sealed tape/reel form, then storage conditions can have an adverse effect leading to dead pixels. And, they need a specific baking procedure before being soldered. Doing that for a few LEDs at home can be tricky.

So for the LED’s, he again went a bit off the beaten path, selecting to use three different color styles of bi-color LED’s with easy to hand-solder, 1206 footprints. This allows him to get a fairly random mix of colors in the completed ornament.

The LED array is pseudo-charlieplexed. One terminal of each LED goes to a GPIO pin on the micro-controller and the other terminal of all the LED’s are connected to a single complimentary pair of N-channel/P-channel MOSFETs — connected in totem-pole fashion. Depending on which MOSFET is switched on via a GPIO pin driving the gate pin high or low, the second terminal of each LED gets connected to either supply or ground. In combination with the GPIO pins being driven high/low, this allows the bi-color LED to be biased in either direction. Getting each LED to emit one color is simple enough — setting all LED GPIOs low, and MOSFET gate GPIO high will bias the LEDs in one direction. Reverse the GPIO logic, and the LEDs will be biased in the other direction. If this is done slow enough, the two colors can be differentiated easily. If the driving logic is made fast, changing states every 10us, the two separate colors merge to form a third hue. With some clever bit of code, he also adds some randomness in the GPIO output states, resulting in a more appealing twinkling effect. [Martin] does a detailed walk through in the video embedded below.

If you have the same bunch of parts lying around and wish to replicate the project, be warned that the KiCad source files will need some work to clean up errors — [Martin] was in a hurry and knew what he was doing so there are some intentional mistakes in the schematic such as using the same symbol for the N-channel and P-channel MOSFETs, and uni-directional LED symbol in place of the bi-directional one. And for programming, you will need one of these pricey pogo-pin style cables, unless you decide to edit the PCB before sending off the Gerbers.

[Martin] built just three of these bespoke ornaments, retaining one and giving away the other two to a neighbour and a co-worker. But if you would really like to build a tree ornament with addressable LEDs, then check out the Sierpinski Christmas Tree which can be cascaded to form an array of tree ornaments.

source https://hackaday.com/2021/01/01/simple-christmas-tree-christmas-tree-ornament/

The Internet Of Christmas Tree Watering

There’s nothing quite like a real Christmas tree, but as anyone who’s had one will know there’s also nothing like the quantity of needles that a real tree can shed when it runs short of water. It’s a problem [RK] has tackled, with a Christmas tree water level monitor that has integration with Adafruit’s cloud service to give a handy phone notification when more watering is required.

The real interest in this project lies in the sensor development path. There are multiple ways of water level sensing from floats and switches through resistive and light scattering techniques, but he’s taken the brave step of using a capacitive approach. Water can be used as a dielectric between two parallel metal plates, and the level of the water varies the capacitance. Sadly the water from your tap is also a pretty good conductor, so the first attempt at a capacitive sensor was not effective. This was remedied with a polythene “sock” for each electrode constructed with the help of a heat sealer. The measurement circuit was simply a capacitive divider fed with a square wave, from which an Adafruit Huzzah board could easily derive an amplitude reading that was proportional to the water level. The board then sends its readings to Adafruit.io, from which a message can be sent to a Slack channel with the notification enabled. All in all a very handy solution.

Plant care is a long-running theme in Hackaday projects, but not all of them need a microcontroller.

source https://hackaday.com/2021/01/01/the-internet-of-christmas-tree-watering/

The Internet Of Christmas Tree Watering

There’s nothing quite like a real Christmas tree, but as anyone who’s had one will know there’s also nothing like the quantity of needles that a real tree can shed when it runs short of water. It’s a problem [RK] has tackled, with a Christmas tree water level monitor that has integration with Adafruit’s cloud service to give a handy phone notification when more watering is required.

The real interest in this project lies in the sensor development path. There are multiple ways of water level sensing from floats and switches through resistive and light scattering techniques, but he’s taken the brave step of using a capacitive approach. Water can be used as a dielectric between two parallel metal plates, and the level of the water varies the capacitance. Sadly the water from your tap is also a pretty good conductor, so the first attempt at a capacitive sensor was not effective. This was remedied with a polythene “sock” for each electrode constructed with the help of a heat sealer. The measurement circuit was simply a capacitive divider fed with a square wave, from which an Adafruit Huzzah board could easily derive an amplitude reading that was proportional to the water level. The board then sends its readings to Adafruit.io, from which a message can be sent to a Slack channel with the notification enabled. All in all a very handy solution.

Plant care is a long-running theme in Hackaday projects, but not all of them need a microcontroller.

source https://hackaday.com/2021/01/01/the-internet-of-christmas-tree-watering/

The Internet Of Christmas Tree Watering

There’s nothing quite like a real Christmas tree, but as anyone who’s had one will know there’s also nothing like the quantity of needles that a real tree can shed when it runs short of water. It’s a problem [RK] has tackled, with a Christmas tree water level monitor that has integration with Adafruit’s cloud service to give a handy phone notification when more watering is required.

The real interest in this project lies in the sensor development path. There are multiple ways of water level sensing from floats and switches through resistive and light scattering techniques, but he’s taken the brave step of using a capacitive approach. Water can be used as a dielectric between two parallel metal plates, and the level of the water varies the capacitance. Sadly the water from your tap is also a pretty good conductor, so the first attempt at a capacitive sensor was not effective. This was remedied with a polythene “sock” for each electrode constructed with the help of a heat sealer. The measurement circuit was simply a capacitive divider fed with a square wave, from which an Adafruit Huzzah board could easily derive an amplitude reading that was proportional to the water level. The board then sends its readings to Adafruit.io, from which a message can be sent to a Slack channel with the notification enabled. All in all a very handy solution.

Plant care is a long-running theme in Hackaday projects, but not all of them need a microcontroller.

source https://hackaday.com/2021/01/01/the-internet-of-christmas-tree-watering/

Domino Layer Lets You Focus On Toppling

Knocking dominoes down is a fun pastime for a rainy afternoon, but setting them all up can be a drag. Thankfully, [Lewis] of [DIY Machines] has built a helpful machine to do the job for you, letting you focus on the fun part instead!

The machine is run by an Arduino Uno, that can be pre-programmed with a layout or controlled over Bluetooth in real time. It uses a geared-down DC motor to drive around a smooth surface, with a servo for steering. A second servo is used to turn a carousel loaded with up to 130 dominoes, allowing the machine to lay long runs without needing a refill. It’s designed to be easy to change so multiple carousels can be printed to quickly run courses of extended lengths.

The build is a great example of a machine capable of doing a tricky task with ease, thanks to 3D printing and smart design. We’re particularly impressed with the simple domino transport mechanism integrated into the drive system without requiring extra motors or servos. It’s not the first domino layer we’ve seen, either. Video after the break.

source https://hackaday.com/2021/01/01/domino-layer-lets-you-focus-on-toppling/

Number Bases Stretch the Mind

Some of us might solve crossword puzzles or Sudoko games to exercise our minds, but [Nathan Nichols] plays with exotic number systems to keep the brain cells in shape. He wrote the Hanoi C99 library while in high school, implementing several of his favorites.

We have all been using decimal (base 10) and duodecimal (base 12, as in clocks) since before grade school. Us computer geeks are also adept at various computer-friendly systems like binary, octal, and hexadecimal. The true nerds among us will be familiar with systems like vigesimal (base 20 Mayan numerals) and sexagesimal (base 60 Babylonian numbers). We ourselves espoused the virtues of seximal (base 6) a couple of years ago. But if you really want to stretch your mind, take a dive into the weird number systems that [Nathan] has been exploring.

Negabinary (base -2)

The lowest level of weirdness in the group, this one is almost normal. Its the same as binary, except the bit weights have alternating signs: { 0, -2, 4, -8, ... }.

Binarions (base -1+i)

Or base -1+j if you studied electrical engineering. The use of complex numbers as radices was proposed by Donald Knuth way back in 1955. We find it really hard to imagine this one being helpful.

Fibonacci base

Numbers can also be represented by the summation of a sequence of Fibonacci numbers. Using this system, a number can sometimes be represented more than one way, so watch out.

Stern-Brocot tree

A number is represented by its path down the Stern-Brocot tree. One feature of this system is that numbers can be exact. For example, the Stern-Brocot tree representation of one-third has a finite number of digits.

While [Nathan]’s library only performs conversion at input or output, we wonder if someone will take this further and implement an arithmetic unit inside an FPGA. Besides being a fun exercise, it would baffle someone casually trying to reverse engineer your secret calculations. Let us know of any strange number systems you have used or encountered.

source https://hackaday.com/2021/01/01/number-bases-stretch-the-mind/

Transforming Drone Can Be A Square Or A Dragon

When flying drones in and around structures, the size of the drone is generally limited by the openings you want to fit through. Researchers at the University of Tokyo got around this problem by using an articulating structure for the drone frame, allowing the drone to transform from a large square to a narrow, elongated form to fit through smaller gaps.

The drone is called DRAGON, which is somehow an acronym for the tongue twisting description “Dual-Rotor Embedded Multilink Robot with the Ability of Multi-Degree-of-Freedom Aerial Transformation“. The drone consists of four segments, with a 2-DOF actuated joint between each segment. A pair of ducted fan motors are attached to the middle of each segment with a 2-DOF gimbal that allows it to direct thrust in any direction relative to the segment. For normal flight the segments would be arranged in the square shape, with minimal movement between the segments. When a small gap is encountered, as demonstrated in the video after the break, the segments rearrange into a dragon-like shape, that can pass through a gap in any plane.

Each segment has its own power source and controller, and the control software required to make everything work together is rather complex. The full research paper is unfortunately behind a paywall. The small diameter of the propellers, and all the added components would be a severe limiting factor in terms of lifting capacity and flight time, but the concept is to definitely interesting.

The idea of shape shifting robots has been around for a while, and can become even more interesting when the different segment can detach and reattach themselves to become modular robots. The 2016 Hackaday Grand Prize winner DTTO is a perfect example of this, although it did lack the ability to fly.

source https://hackaday.com/2021/01/01/transforming-drone-can-be-a-square-or-a-dragon/

DIY 8-Bit Computer Knows All the Tricks

Some projects are a rite of passage within their respected fields. For computer science, building one’s own computer from scratch is certainly among those projects. Of course, we’re not talking about buying components online and snapping together a modern x86 machine. We mean building something closer to a fully-programmable 8-bit computer from the ground up, like this one from [Federico] based on 74LS logic chips.

The computer was designed and built from scratch which is impressive enough, but [Federico] completed this project in about a month as well. It can be programmed manually through DIP switches or via a USB connection to another computer, and also includes an adjustable clock which can perform steps anywhere from 1 Hz to 32 kHz. Complete with a 1024 byte memory, a capable ALU, four seven-segment LEDs and (in the second version of the computer) a 2×16 LCD disply, this 8-bit computer has it all.

Not only is this a capable machine designed by someone who clearly knows his way around a logic chip, but [Federico] has also made the code and schematics available on his GitHub page. It’s worth a read even without building your own, but if you want to go that route without printing an enormous PCB you can always follow the breadboard route.

Thanks to [killergeek] for the tip!

source https://hackaday.com/2020/12/31/diy-8-bit-computer-knows-all-the-tricks/

Robotic Melodica Student Is Enthusuastic But Terrible

Anyone who has through the process of learning to play a musical instrument for the first time, or listening to someone attempting to do so will know that it can be a rather painful and frustrating experience. [Alessandro Perini] apparently couldn’t get enough of the sound of a first-time musician, so he created a robot to play the melodica badly for hours on end, as demonstrated in the video after the break.

The project is appropriately named “AI’ve just started to learn to play”, and attempts to copy every melody it hears in real-time. The robot consists of the cartridge carriage from an old printer, mounted on a wooden frame to hold the melodica. The original carriage used a DC motor with an encoder for accurate movement, but since position accuracy was not desirable, [Alessandro] ditched the encoder. Two small trolley wheels are mounted on the cartridge holder to push down on the melodica’s key. A bistable solenoid valve controls airflow to the melodica from an air compressor. The DC motor and solenoid valve is controlled by an Arduino via a pair of LM298 motor drivers.

A host computer running software written in Cycling ’74 MAX listens to the melody it’s trying to imitate, and send serial commands to the Arduino to move the carriage and open the solenoid to try and match the notes. Of course, it keeps hitting a series of wrong notes in the process. The Arduino code and build instructions have been published, but the main Max software is only described briefly. [Alessandro] demonstrated the robot at a local festival, where it played YouTube tutorial snippets and jammed with a local band for a full 24 hours. You have to respect that level of endurance.

If listening to less error-prone electronically controlled instruments is more to your taste, listen to this building-sized pipe organ play MIDI files.

source https://hackaday.com/2020/12/31/robotic-melodica-student-is-enthusuastic-but-terrible/

Ambience Lamp Ripples Like Water

After the year humanity has endured, we could all use a little more relaxation in our lives. This atmosphere lamp is just the thing to set a relaxing ambience for work, studying, or hanging out. Just touch the surface and the light ripples to life, resembling the concentric circles that form on the surface of still water when it is touched. When the light settles, it looks like an inviting pool that’s ready for a nighttime swim.

There aren’t really any surprises inside — the lamp is operated via capsense by touching the center of the top. Three NeoPixel rings and an RGB LED strip provide the lighting, and an Arduino UNO runs the show. [Qttting_F] used an inexpensive ceramic bowl with a piece of acrylic for a lid, but this could just as easily be printed in white PLA or something. Check it out in action after the break.

Ambience is nice, but sometimes you need something more functional. Those types of lamps can be printed, too.

source https://hackaday.com/2020/12/31/ambience-lamp-ripples-like-water/

Remoticon Video: The Mechanics of Finite Element Analysis

Hardware hacking can be extremely multidisciplinary. If you only know bits and bytes, but not solder and electrons, you’re limited in what you can build. The same is true for mechanical design, where the forces of stress and strain suddenly apply to your project and the pile of code and PCBs comes crashing to the ground.

In the first half of his workshop, Naman Pushp walks you through some of the important first concepts in mechanical engineering — how to think about the forces in the world that act on physical objects. And he brings along a great range of home-built Jugaad props that include a gravity-defying tensegrity string sculpture and some fancy origami that help hammer the topics home.

In the second half of the workshop, Naman takes these concepts into computer simulation, and gives us good insight into the way that finite-element analysis simulation packages model these same forces on tiny chunks of your project’s geometry to see if it’ll hold up under real world load. The software he uses isn’t free by any definition — it’s not even cheap unless you have a student license — but it’s nonetheless illuminating to watch him work through the flow of roughly designing an object, putting simulated stresses and strains on it, and interpreting the results. If you’ve never used FEA tools before, or are looking for a compressed introduction to first-semester mechanical engineering, this talk might be right up your alley.

Naman is a hacker and student who is currently working on a ridiculously inexpensive laptop-in-a-box for the Indian market, and a drone delivery startup. We’re sure we’ll be hearing more from him in the future.

source https://hackaday.com/2020/12/31/remoticon-video-the-mechanics-of-finite-element-analysis/

Remoticon Video: The Mechanics of Finite Element Analysis

Hardware hacking can be extremely multidisciplinary. If you only know bits and bytes, but not solder and electrons, you’re limited in what you can build. The same is true for mechanical design, where the forces of stress and strain suddenly apply to your project and the pile of code and PCBs comes crashing to the ground.

In the first half of his workshop, Naman Pushp walks you through some of the important first concepts in mechanical engineering — how to think about the forces in the world that act on physical objects. And he brings along a great range of home-built Jugaad props that include a gravity-defying tensegrity string sculpture and some fancy origami that help hammer the topics home.

In the second half of the workshop, Naman takes these concepts into computer simulation, and gives us good insight into the way that finite-element analysis simulation packages model these same forces on tiny chunks of your project’s geometry to see if it’ll hold up under real world load. The software he uses isn’t free by any definition — it’s not even cheap unless you have a student license — but it’s nonetheless illuminating to watch him work through the flow of roughly designing an object, putting simulated stresses and strains on it, and interpreting the results. If you’ve never used FEA tools before, or are looking for a compressed introduction to first-semester mechanical engineering, this talk might be right up your alley.

Naman is a hacker and student who is currently working on a ridiculously inexpensive laptop-in-a-box for the Indian market, and a drone delivery startup. We’re sure we’ll be hearing more from him in the future.

source https://hackaday.com/2020/12/31/remoticon-video-the-mechanics-of-finite-element-analysis/

This Week in Security: Deeper Dive Into SolarWinds, Bouncy Castle, and Docker Images

Merry Christmas and happy holidays! I took Christmas day off from writing the security roundup, coming in a day early with this week’s installment, dodging New year’s day. The SolarWinds story has continued to dominate the news, so lets dive into it a bit deeper.

Microsoft has published their analysis of Solorigate, and the details are interesting. The added code was carefully written to blend in with the rest of the code, using the name OrionImprovementBusinessLayer.Initialize, which sounds like a perfectly boring-yet-legitimate function. The actual backdoor is obfuscated using zip compression and base64 encoding.

Once this bootstrap code begins, it runs a series of checks before actually doing anything malicious. It waits 2 weeks after installation to do anything, and then checks the system domain name for any indication it’s running in a test environment. It then checks for certain security applications, like Wireshark, and refuses to run if they are detected. This series of checks all seem to be an effort to avoid detection, and to only run in a deployed environment. Even the Command and Control URL that the backdoor uses is constructed to appear benign. Beyond this, it seems that the malware simply waited for instructions, and didn’t take any automated actions. All the attacks were performed manually.

One of the side-effects of the sudden attention given to SolarWinds devices is that a whole slew of other problems will be found and fixed, like CVE-2020-10148, an authentication bypass. The most surprising finding, however, is a *second* backdoor in the SolarWinds code, nicknamed Supernova. It’s possible that this was an earlier backdoor from the same actors as Solarigate, but the current theory is that it’s a backdoor installed by yet another, unrelated attacker.

Pi-hole Logs Vulnerability

If you have a Raspberry Pi running the Pi-hole software, you might want to patch a newly discovered vulnerability in the administrative interface. The issue, CVE-2020-35659, is a cross site scripting vulnerability, where viewing the logfile could allow arbitrary JS to run. The payload is JS embedded in a DNS name, which gets triggered by the log view. While it takes user interaction to view the log file, it’s frighteningly easy to get the malicious DNS request in the log. All it takes is a single resource request in any website visited by any device on the network. The PoC hasn’t been published yet, to give everyone time to update. This isn’t a sophisticated attack, so once the rest of the details are released, it should be easy to adapt the sample for real-world attacks. That said, it’s unclear how useful it is to be able to run arbitrary JS in the context of a Pi-hole.

Bouncy Castle Bypass Bug

“Don’t roll your own encryption” is still a worthy principle, but it doesn’t mean that well-known implementations can’t have problems. In this case, Bouncy Castle’s Java implementation has a coding mistake in the OpenBSDBcrypt routines. doCheckPassword is the vulnerable function, and it has a particular problem. So first, know that this routine compares Unix password hashes, which are base64 encoded, in the form of $y$j9T$fUtLoMA0qexwXogYTTY0K.$/jkWehjtTOASsLbYP5CVBxIiEY903Mukb7wtjjpIx4A. Now, take a look at the vulnerable Java code, and see if you see the problem:

boolean isEqual = sLength == newBcryptString.length();
for (int i = 0; i != sLength; i++)
{
    isEqual &= (bcryptString.indexOf(i) == newBcryptString.indexOf(i));
}
return isEqual;

Java isn’t my “first” programming language, but this isn’t particularly hard code to understand, so let’s walk through it. The first line declares the boolean variable isEqual, which serves as a state storage for the loop. This will always return true, because earlier code, not shown here, already checks for a length of 60. The meat of this snippet is the for loop, which iterates from 0 to 59. The problem is the use of indexOf(i). The programmer apparently thought this method would return the character at index i, comparing the two strings one character at a time. The problem is that indexOf actually does a search for the specified character, and returns the location where it was first found, or -1 if it doesn’t exist. When there is a single integer parameter given to this method, it indicates the character to search for — as a unicode value.

So the above snippet is actually comparing the location of unicode 0 (U+0000) in the two strings, and then comparing the location of unicode 1 (U+0001), through Unicode 59 (U+0059). Unicode is a descendent of ASCII, and inherits its first 128 characters directly from ASCII. Hence, characters 0 through 31 are control codes that will never be part of a password hash. Characters 32-35, 37-45, and 58 and 59 are all symbols that will never be part of the string. 36 is the “$” character, and while that character does appear in the compared strings, it will always be in the same position, as Unix password hashes use it as a separator symbol. Thus, the set of characters that this broken implementation actually checks are the period, the slash, and 0-9. And even then, only the first appearance of each are checked. Since “2” is part of the string indicating that the hash is using bcrypt, it’s also effectively ignored, as indexOf() only returns the *first* location a character is found. That leaves us only 11 out of 64 characters that are actually checked, and only their first appearance.

Researchers at Synopsys discovered this bug back in October. In their testing, they determined that every password that used Bouncy Castle’s broken bcrypt implementation was vulnerable to attack. They estimate that about 20% of such hashes can be bypassed in under 1000 guesses. Version 1.67 was released in November, addressing the issue. Ironically, the vulnerability was introduced in a set of changes adding constant-time comparisons. Not only is the code broken as discussed, it’s also not time-constant. It took almost an entire year for someone to notice the problem, because the function *almost* does the right thing.

This and That

Threatnix reports on a new phishing campaign, primarily targeting Facebook credentials. This particular story is interesting because it’s the first time I remember GitHub pages being used to host such a campaign. A bit of sleuthing let the researchers download the list of phished credentials, totalling over 600k.

Friends don’t let friends run untrusted Docker images, at least according to Prevasio. Researchers there put together a process to test all four million images on Docker Hub for problems. The results shouldn’t be surprising. About half of those images contain known vulnerabilities. Over 6,000 of those images tested were classified as malicious or “potentially harmful”.

Possibly related to Solarigate, The US’s CISA has published Sparrow, a tool for detecting compromised Azure infrastructure. Because it was written by government employees, the code is in the public domain.

source https://hackaday.com/2020/12/31/this-week-in-security-deeper-dive-into-solarwinds-bouncy-castle-and-docker-images/

A Novel Micro Desktop Display For Your Raspberry Pi

Since its debut back in 2012 there have been a variety of inventive displays used with the Raspberry Pi. Perhaps you remember the repurposed Motorola phone docks, or you have one of those little displays that plugs into the expansion port. Inevitably the smaller options become disappointing as desktop displays, because while the advert triumphantly shows them sporting a Raspberry Pi OS desktop the reality is almost unusable. Until now.

Along comes [igbit] with a solution in the form of a little SPI display with a different approach to displaying a desktop. Instead of displaying a matchbox-sized desktop over the whole screen it divides into two halves. At the top is a representation of the desktop, while below it is a close-up on the area around the mouse pointer.

Unexpectedly its mode of operation is very accessible to the non-Linux guru, because it works through a Python script that takes screenshots of both areas and passes them as a composite to the display. An area the size of the magnified window is drawn around the mouse pointer, allowing it to be easily located on the tiny desktop. It relies on the main display being pushed to the HDMI output, so if the Pi is otherwise headless then its configuration has to be such that it forces HDMI use. The result isn’t something that would help you with the more demanding desktop tasks, but it provides a neat solution to being able to use a Pi desktop on a tiny screen.

Of course, in a pinch you can always use your mobile phone.

source https://hackaday.com/2020/12/31/a-novel-micro-desktop-display-for-your-raspberry-pi/

Augmented Reality On The Cheap With ESP32

Augmented reality (AR) technology hasn’t enjoyed the same amount of attention as VR, and seriously lags in terms of open source development and accessibility.  Frustrated by this, [Arnaud Atchimon] created CheApR, an open source, low cost AR headset that anyone can build at home and use as a platform for further development

[Arnaud] was impressed by the Tilt Five AR goggles, but the price of this cutting edge hardware simply put it out of reach of most people. Instead, he designed and built his own around a 3D printed frame, ESP32, cheap LCDs, and lenses from a pair of sunglasses. The electronics is packed horizontally in the top of the frame, with the displays pointed down into a pair of angled mirrors, which reflect the image onto the sunglasses lenses and into the user’s eyes. [Arnaud] tested a number of different lenses and found that a thin lens with a slight curve worked best. The ESP32 doesn’t actually run the main software, it just handles displaying the images on the LCDs. The images are sent from a computer running software written in Processing. Besides just displaying images, the software can also integrate inputs from a MPU6050 IMU and  ESP32 camera module mounted on the goggles. This allows the images to shift perspective as the goggles move, and recognize faces and AR markers in the environment.

All the design files and software is available on GitHub, and we exited to see where this project goes. We’ve seen another pair of affordable augmented reality glasses that uses a smartphone as a display, but it seems the headset that was used are no longer available.

source https://hackaday.com/2020/12/31/augmented-reality-on-the-cheap-with-esp32/

LEDs-On-Chips Will Give Us Lower Cost Optoelectronics

The LED is one of those fundamental building block components in electronics, something that’s been in the parts bin for decades. But while a simple LED costs pennies, that WS2812 or other fancy device is a bit expensive because internally it’s a hybrid of a silicon controller chip and several LEDs made from other semiconductor elements. Incorporating an LED on the same chip as its controller has remained something of a Holy Grail, and now an MIT team appear to have cracked it by demonstrating a CMOS device that integrates a practical silicon LED. It may not yet be ready for market but it already displays some interesting properties such as a very fast switching speed. Perhaps more importantly, further integration of what have traditionally been discrete components would have a huge impact on reducing manufacturing costs.

Anyone who has read up on the early history of LEDs will know that the path from the early-20th-century discoveries of semiconductor luminescence through the early commercial devices of the 1960s and up to the bright multi-hued devices of today has been a long one with many stages of the technology reaching the market. Thus these early experimental silicon LEDs produce light in the infrared spectrum often useful in producing sensors. Whether we’ll see an all-silicon Neopixel any time soon remains to be seen, but we can imagine that some sensors using LEDs could be incorporated on the same die as a microcontroller. It seems there’s plenty of potential for this invention.

This research was presented earlier this month at the IEDM Conference in a talk entitled Low Voltage, High Brightness CMOS LEDs. We were not able to find a published paper, we’d love read deeper so let us know in the comments below if you have info on when this will become available. In the meantime, anyone with any interest in LED technology should read about Oleg Losev, the inventor of the first practical LEDs.

source https://hackaday.com/2020/12/30/leds-on-chips-will-give-us-lower-cost-optoelectronics/

Magnetocuring: Curing Epoxy With A Magnetic Field

Who doesn’t love epoxy? Epoxy resins, also known as polyepoxides, are an essential adhesive in many applications, both industrially and at smaller scales. Many polyepoxides however require the application of heat (around 150 °C for most types) in order to cure (harden), which can be complicated when the resin is applied to or inside layers of temperature sensitive materials. Now researchers at Nanyang Technological University (NTU) in Singapore have found a way to heat up resins using an alternating magnetic field (PDF), so-called magnetocuring.

As detailed in the research article by R. Chaudhary et al., they used commercially available epoxy resin and added nano particles of a MnxZn1-xFe2O4 alloy. This mixture was exposed to an alternating magnetic field to induce currents in the nano particles and subsequently produce heat that served to raise the temperature of the surrounding resin to about 160 °C in five minutes, allowing the resin to cure. There is no risk of overheating, as the nano particles are engineered to reach their Curie temperature, at which point the magnetic field no longer affects them. The exact Curie temperature was tweaked by changing the amount of manganese and zinc in the alloy.

After trying out a number of different alloy formulations, they settled on Mn0.7Zn0.3Fe2O4 as the optimal formulation at which no resin scorching occurred. As with all research it’s hard to tell when (and if) it will make it into commercial applications, but if this type of technology works out we could soon be gluing parts together using epoxy resin and an EM field instead of fumbling with the joys of two-component epoxy.

(Thanks, Qes)

source https://hackaday.com/2020/12/30/magnetocuring-curing-epoxy-with-a-magnetic-field/

Unbricking A SEGGER J-Link v9 Debug Probe

Last year [Emil] found themselves in the situation where a SEGGER J-link debug probe suddenly just stopped working. This was awkward not only because in-circuit debuggers are vital pieces of equipment in embedded firmware development, but also because they’re not that cheap. This led [Emil] to take the device apart to figure out what was wrong with it.

After checking voltages on the PCB, nothing obvious seemed wrong. The Tag-Connect style JTAG header on the PCB appeared to be a good second stop, requiring only a bit of work to reverse-engineer the exact pinout and hook up an ST-Link V2 in-circuit debugger to talk with the STM32F205RC MCU on the PCB. This led to the interesting discovery that apparently the MCU’s Flash ROM had seemingly lost the firmware data.

Fortunately [Emil] was able to flash back a version of the firmware which was available on the internet, allowing the J-Link device to work again. This was not the end of the story, however, as after this the SEGGER software was unable to update the firmware on the device, due to a missing bootloader that was not part of the firmware image.

Digging further into this, [Emil] found out a whole host of fascinating details about not only these SEGGER J-Link devices, but also the many clones that are out there, as well as the interesting ways that SEGGER makes people buy new versions of their debug probes.

(Thanks Zelea for the tip)

source https://hackaday.com/2020/12/30/unbricking-a-segger-j-link-v9-debug-probe/

Alien Inspired Cyberdeck Packs Vintage Atari 800XL

Sticking a Raspberry Pi in a Pelican-style case and calling it a cyberdeck has become something of a meme these days, and while we certainly don’t look down on such projects, we recognize they can get a bit repetitive. But we think this one is unique enough to get a pass. Sure [eizen6] mounted a Pi inside of a rugged waterproof case, but it’s simply serving as a display for the real star of the show: a vintage Atari 800XL computer.

The overall look of the build, from the stenciled Nostromo on the back to the self-destruct warning sticker over the display is a reference to Alien. Partly because both the film and the Atari 800 were released in 1979, but also because [eizen6] says this particular aesthetic is simply the way computers should look. The visual style is also meant to signify that the project embraces the old ways despite the sprinkling of modern technology.

A custom cable lets the 800XL run on USB power.

To that end, retro aficionados will be happy to hear that the Atari appears to be completely unmodified, with [eizen6] going as far as nestling the nearly 40 year old computer in foam rather than permanently mounting it to the case. The various cables for power, video, and data have all been terminated with the appropriate connectors as well, so everything can be easily unplugged should the 8-bit machine need to be returned to more pedestrian use.

In the top half of the case, [eizen6] has mounted the Raspberry Pi 3B+, a seven inch touch screen, a USB hub, and a SIO2SD that allows loading Atari disk images from an SD card. Using a USB capture device, video from the Atari can be shown on the Pi’s display with a simple VLC command. With a USB keyboard plugged into the hub, the Pi can be put to more advanced use should the need arise. It’s also worth noting that, thanks to a custom cable, the Atari is running off of a USB power bank. With a second USB power bank dedicated to running the Pi and its LCD display, this retro cyberdeck is fully mobile.

We’ve seen plenty of modern builds that try and recapture the look and feel of retro computers, but very few that actually integrate the genuine article.

source https://hackaday.com/2020/12/30/alien-inspired-cyberdeck-packs-vintage-atari-800xl/

Solar Flares and Radio Communications — How Precarious are Our Electronics?

On November 8th, 2020 the Sun exploded. Well, that’s a bit dramatic (it explodes a lot) — but a particularly large sunspot named AR2781 produced a C5-class solar flare which is a medium-sized explosion even for the Sun. Flares range from A, B, C, M, and X with a zero to nine scale in each category (or even higher for giant X flares). So a C5 is just about dead center of the scale. You might not have noticed, but if you lived in Australia or around the Indian Ocean and you were using radio frequencies below 10 MHz, you would have noticed since the flare caused a 20-minute-long radio blackout at those frequencies.

According to NOAA’s Space Weather Prediction Center, the sunspot has the energy to produce M-class flares which are an order of magnitude more powerful. NOAA also has a scale for radio disruptions ranging from R1 (an M1 flare) to R5 (an X20 flare). The sunspot in question is facing Earth for the moment, so any new flares will cause more problems. That led us to ask ourselves: What if there were a major radio disruption?

Sol Versus Ionospheric Propagation

This happens more often than you might think. In October, AR2775 set off two C flares and while plasma from the flare didn’t hit Earth, UV radiation caused a brief radio outage over South America. The X-ray and UV radiation travel at the same speed as light, so by the time we see a flare, it is too late to do anything about it, even if we could.

The effects are mostly related to the propagation of radio waves via the ionosphere. In the 1700s, who would care? In the mid 20th century, though, lots of things relied on this property of high-frequency radio waves. Today, it might not matter nearly as much.

If you own a shortwave radio, you may have noticed there isn’t as much to listen to broadcast-wise as there was decades ago. Broadcasters that want to reach an international audience use the Internet to do that now unless they are targeting a part of the world where Internet is rare or restricted. Even the AM radio band isn’t the mainstay it used to be. Many people listen to FM (which propagates differently), satellite radio, or they stream audio from the Internet. Sure, that uses radio, but not ionosphere propagation.

Intercontinental Transit

Perhaps the biggest commercial users of the radio bands now are transoceanic aviation and ships at sea, but even then, many of those uses are now using satellites and much higher frequencies. Ham radio operators are still there, of course, as are some time and frequency standard stations like WWV. While there were some radio frequency navigation systems like LORAN and Gee, these are nearly all gone in favor of GPS.

Would a disruption of these services be a big deal? Probably not, although if you are on a plane or at sea, you might get a little tense. Then again, it just depends on how important that radio device is to you and how many alternatives you have.

Then again, truly big events — so-called Carrington events — can affect a lot of electronics directly. The insurance industry thinks it could run up to $2.6 trillion in damages. Worried? Maybe keep an eye on the space weather channel. If you are interested in what the United States government would do if we had another Carrington-level event, they have it all written out. Honestly, though, the plan seems to be, in summary, do better forecasts and develop new technology. FEMA has an info-graphic that asserts that a solar flare could affect your toilet, although it seems like it would take quite a while for that to happen. It is a bit more interesting to read their excellent but unreleased memo on the topic. The maps on page 16 and 17 showing where the power grid is vulnerable to geomagnetic storms is particularly interesting.

source https://hackaday.com/2020/12/30/solar-flares-and-radio-communications-how-precarious-are-our-electronics/

Solar Flares and Radio Communications — How Precarious are Our Electronics?

On November 8th, 2020 the Sun exploded. Well, that’s a bit dramatic (it explodes a lot) — but a particularly large sunspot named AR2781 produced a C5-class solar flare which is a medium-sized explosion even for the Sun. Flares range from A, B, C, M, and X with a zero to nine scale in each category (or even higher for giant X flares). So a C5 is just about dead center of the scale. You might not have noticed, but if you lived in Australia or around the Indian Ocean and you were using radio frequencies below 10 MHz, you would have noticed since the flare caused a 20-minute-long radio blackout at those frequencies.

According to NOAA’s Space Weather Prediction Center, the sunspot has the energy to produce M-class flares which are an order of magnitude more powerful. NOAA also has a scale for radio disruptions ranging from R1 (an M1 flare) to R5 (an X20 flare). The sunspot in question is facing Earth for the moment, so any new flares will cause more problems. That led us to ask ourselves: What if there were a major radio disruption?

Sol Versus Ionospheric Propagation

This happens more often than you might think. In October, AR2775 set off two C flares and while plasma from the flare didn’t hit Earth, UV radiation caused a brief radio outage over South America. The X-ray and UV radiation travel at the same speed as light, so by the time we see a flare, it is too late to do anything about it, even if we could.

The effects are mostly related to the propagation of radio waves via the ionosphere. In the 1700s, who would care? In the mid 20th century, though, lots of things relied on this property of high-frequency radio waves. Today, it might not matter nearly as much.

If you own a shortwave radio, you may have noticed there isn’t as much to listen to broadcast-wise as there was decades ago. Broadcasters that want to reach an international audience use the Internet to do that now unless they are targeting a part of the world where Internet is rare or restricted. Even the AM radio band isn’t the mainstay it used to be. Many people listen to FM (which propagates differently), satellite radio, or they stream audio from the Internet. Sure, that uses radio, but not ionosphere propagation.

Intercontinental Transit

Perhaps the biggest commercial users of the radio bands now are transoceanic aviation and ships at sea, but even then, many of those uses are now using satellites and much higher frequencies. Ham radio operators are still there, of course, as are some time and frequency standard stations like WWV. While there were some radio frequency navigation systems like LORAN and Gee, these are nearly all gone in favor of GPS.

Would a disruption of these services be a big deal? Probably not, although if you are on a plane or at sea, you might get a little tense. Then again, it just depends on how important that radio device is to you and how many alternatives you have.

Then again, truly big events — so-called Carrington events — can affect a lot of electronics directly. The insurance industry thinks it could run up to $2.6 trillion in damages. Worried? Maybe keep an eye on the space weather channel. If you are interested in what the United States government would do if we had another Carrington-level event, they have it all written out. Honestly, though, the plan seems to be, in summary, do better forecasts and develop new technology. FEMA has an info-graphic that asserts that a solar flare could affect your toilet, although it seems like it would take quite a while for that to happen. It is a bit more interesting to read their excellent but unreleased memo on the topic. The maps on page 16 and 17 showing where the power grid is vulnerable to geomagnetic storms is particularly interesting.

source https://hackaday.com/2020/12/30/solar-flares-and-radio-communications-how-precarious-are-our-electronics/

Solar Flares and Radio Communications — How Precarious are Our Electronics?

On November 8th, 2020 the Sun exploded. Well, that’s a bit dramatic (it explodes a lot) — but a particularly large sunspot named AR2781 produced a C5-class solar flare which is a medium-sized explosion even for the Sun. Flares range from A, B, C, M, and X with a zero to nine scale in each category (or even higher for giant X flares). So a C5 is just about dead center of the scale. You might not have noticed, but if you lived in Australia or around the Indian Ocean and you were using radio frequencies below 10 MHz, you would have noticed since the flare caused a 20-minute-long radio blackout at those frequencies.

According to NOAA’s Space Weather Prediction Center, the sunspot has the energy to produce M-class flares which are an order of magnitude more powerful. NOAA also has a scale for radio disruptions ranging from R1 (an M1 flare) to R5 (an X20 flare). The sunspot in question is facing Earth for the moment, so any new flares will cause more problems. That led us to ask ourselves: What if there were a major radio disruption?

Sol Versus Ionospheric Propagation

This happens more often than you might think. In October, AR2775 set off two C flares and while plasma from the flare didn’t hit Earth, UV radiation caused a brief radio outage over South America. The X-ray and UV radiation travel at the same speed as light, so by the time we see a flare, it is too late to do anything about it, even if we could.

The effects are mostly related to the propagation of radio waves via the ionosphere. In the 1700s, who would care? In the mid 20th century, though, lots of things relied on this property of high-frequency radio waves. Today, it might not matter nearly as much.

If you own a shortwave radio, you may have noticed there isn’t as much to listen to broadcast-wise as there was decades ago. Broadcasters that want to reach an international audience use the Internet to do that now unless they are targeting a part of the world where Internet is rare or restricted. Even the AM radio band isn’t the mainstay it used to be. Many people listen to FM (which propagates differently), satellite radio, or they stream audio from the Internet. Sure, that uses radio, but not ionosphere propagation.

Intercontinental Transit

Perhaps the biggest commercial users of the radio bands now are transoceanic aviation and ships at sea, but even then, many of those uses are now using satellites and much higher frequencies. Ham radio operators are still there, of course, as are some time and frequency standard stations like WWV. While there were some radio frequency navigation systems like LORAN and Gee, these are nearly all gone in favor of GPS.

Would a disruption of these services be a big deal? Probably not, although if you are on a plane or at sea, you might get a little tense. Then again, it just depends on how important that radio device is to you and how many alternatives you have.

Then again, truly big events — so-called Carrington events — can affect a lot of electronics directly. The insurance industry thinks it could run up to $2.6 trillion in damages. Worried? Maybe keep an eye on the space weather channel. If you are interested in what the United States government would do if we had another Carrington-level event, they have it all written out. Honestly, though, the plan seems to be, in summary, do better forecasts and develop new technology. FEMA has an info-graphic that asserts that a solar flare could affect your toilet, although it seems like it would take quite a while for that to happen. It is a bit more interesting to read their excellent but unreleased memo on the topic. The maps on page 16 and 17 showing where the power grid is vulnerable to geomagnetic storms is particularly interesting.

source https://hackaday.com/2020/12/30/solar-flares-and-radio-communications-how-precarious-are-our-electronics/