USB Comes To The ESP32

Since the ESP8266 came on the scene a few years ago and revolutionized the way microcontrollers communicate with other devices, incremental progress on this chip has occurred at a relatively even pace. First there was the realization that code could be run on the chip itself. Next the ESP32 was released which built more on that foundation. The next step in that process of improvement may be here now as well, with this project which turns the ESP32 into a USB host.

USB is not a native feature on all microcontrollers or even Arduino-compatible boards. While some do have it built in like those based on the 32u4 for example, most either don’t have it at all or rely on a separate on-board chip to do some form of translating. The ESP32 is lacking this advanced feature so the USB needs to be cobbled together from scratch if you want this specific board to be able to interface directly with peripherals. This project does just that, allowing for four USB 1.1 devices to be connected directly to the ESP32 without a separate dedicated chip.

If you’ve been waiting for USB on this tiny, capable microcontroller this might be your chance to try it out. All of the project’s code is available on the project page. And, while it is limited in scope, it’s easily able to handle a keyboard or mouse. This might be a more cost-effective way of doing something like a KVM switch rather than doing it with three Arduinos.

 

Undocumented X86 Instructions Allow Microcode Access

For an old CPU, finding all the valid instructions wasn’t very hard. You simply tried them all. Sure, really old CPUs might make it hard to tell what the instruction did, but once CPUs got illegal instruction traps, you could quickly just scan possible op codes and see what didn’t throw an exception. Modern processors, though, are quite another thing. For example, you might run a random instruction that locks up the machine or miss an instruction that would have been valid but the CPU is in the wrong mode. [Can Bölük] has a novel solution: By speculatively executing the target instruction and then monitoring the microcode sequencer, he can determine if the CPU is decoding an instruction even if it refuses to execute it.

Some unknown instructions may have power for good or evil, such as the recently announced undocumented instructions that can apparently rewrite the microcode. We expect to see a post soon on how to reprogram your Intel processor to run as a 6502 natively.

Continue reading “Undocumented X86 Instructions Allow Microcode Access”

Data Blaster Is A Hip RPi Cyberdeck

Cyberdecks were once a science fiction approximation of what computing might look like in the future. In the end, consumer devices took a very different path. No matter, though, because the maker community decided cyberdecks were too awesome to ignore and started making their own. After lusting after some of the amazing builds already out there, [Zach Freedman] decided it was time to start his own build, resulting in the Data Blaster.

Epoxy holds the printed parts to the Pi 400

The Raspberry Pi has always been popular in the nascent cyberdeck scene, providing real Linux computing power in a compact, portable package. Now, we have the Raspberry Pi 400, which is exactly that, built into a shell that is, approximately, half of a cyberdeck. This formed the base of [Zach]’s build, coming in handy with its full-sized keyboard.

To that, he added a widescreen 1280×480 LCD, wearable display, and a USB powerbank, turning it into a true go-anywhere terminal. The 3D-printed handles are a particularly nice touch, making it easy to use the deck from a standing position, something that no laptop really does well. As a bonus, there’s even a tiny software defined radio on the side, complete with a collapsible antenna for that added cool factor. 

It’s a fun build, and a useful one too. We suspect the chunky plastics and grabbable design might actually make the Data Blaster preferable to a laptop in rugged field use versus a more traditional laptop. We’ve seen some other great work in this area, too. Video after the break.

Speaker Is Fully 3D Printed

[Thomas] is always up to some kind of 3D printing project. His latest? A fully 3D printed speaker. This is possible because of designs by [Paul Ellis] that use 3D printed materials for nearly all parts of the speaker.  You can see and hear the speaker in the video below.

You might expect different parts of the speaker use different filaments. There are also different techniques such as the use of single-wall printing that makes the speaker possible.

Continue reading “Speaker Is Fully 3D Printed”

Earth Day Challenge: A Better Way To Wrangle Water

How far do you have to go for a glass of clean water? Not very? Just go to a sink and turn on the faucet? We would venture to guess that is the case for most Hackaday readers. Maybe you even have a water softener, or a filter on your tap to make your drinking water even more palatable and free of heavy metal.

In Ethiopia and many other countries, people do not have access to clean, flowing water and must walk several kilometers to fetch it from somewhere that does. And they’re not doing this on paved roads, either — these women are cutting treacherous paths across mountains and through muddy, rocky terrain that make wheeled transport nearly impossible. How do you comfortably lug around 25 kg (~55 lbs) worth of sloshing water? You don’t, unless you have [Anteneh Gashaw]’s ingenious jerrycan.

As you can see in the video below, the current crop of jerrycans are just big plastic jugs that have to be carried on top of the head or the shoulder, both of which are bad for bodies. [Anteneh]’s can evenly distributes the weight by wrapping it completely around the person carrying it and suspending it from both shoulders like a beer-and-peanuts vendor’s carrying case. Basically, it’s a PVC inner tube with shoulder straps. Simple, cheap, and effective = absolute genius in our book. Ideally, everyone would have free access to clean water, both cold and hot. Until that time, [Anteneh]’s entry into our Earth Day Challenge is a great workaround that will no doubt save a lot of spines.

Potable water may be closer than you think. Build a portable potability predictor and you might not have to travel so far.

Continue reading “Earth Day Challenge: A Better Way To Wrangle Water”

Vibration Isolation Helps Improve FPV Video Feed

First-person view technology has become hugely popular in the RC community, letting the user get a vantage point as though they were actually within their tiny scale vehicle. It can be difficult to get a good, clean video feed though, particularly in models that have a lot of drivetrain vibration. [Engineering After Hours] decided to tackle this problem with a simple vibration isolator design. (Video, embedded below.)

The first step is to analyse the vibration to get an idea of the frequencies that are most important to target. WIth that done, a simple 3D printed camera mount is designed with three flexible joints between the camera and the base which is rigidly coupled to the RC boat or car’s body. The modal analysis tools in Fusion 360 were used to get a rough idea of the frequency response of the system, helping to get things in the ballpark with a minimum of fuss.

The final design does help cut down on vibrations, though it is unable to counteract heavy vibration from driving on extremely rough surfaces. In these cases, [Engineering After Hours] recommends the use of a gimbal instead. Proper damping can be a godsend in many applications; bricks can make a huge difference for your 3D printer, for example.

Continue reading “Vibration Isolation Helps Improve FPV Video Feed”

CNC Scroll Saw Add-On Cuts Beautiful Wooden Spirals

If there’s one thing that woodworkers have always been good at, it’s coming up with clever jigs and work-holding solutions. Most jigs, however, are considerably simpler and more static than this CNC-controlled scroll saw add-on that makes cool wooden spirals a snap.

As interesting as the products of this setup are, what we like about this is the obvious care and craftsmanship [rschoenm] put into making what amounts to a hybrid between a scroll saw and a lathe. Scroll saws are normally used to make narrow-kerf cuts in thin, delicate materials, often with complicated designs using very tight radius turns. In this case, though, stock is held between centers on the lathe-like carriage. The jig uses a linear slide driven by a stepper and a lead screw to translate the workpiece perpendicular to the scroll saw blade while a geared headstock rotates it. Starting with the blade inserted into a through-hole, the saw slowly cuts a beautiful nested spiral down the length of the workpiece. An Uno, a GRBL shield, and some stepper drivers let a little G-code control the two axes of the jig.

The video below shows it in action; things do get a bit wobbly as the cut progresses, but in general the jig works wonderfully and results in some lovely pieces. At first we thought these would purely be objets d’art, but then we thought about this compression screw grinder for DIY injection molding machines and realized these wooden screws look pretty similar.

Continue reading “CNC Scroll Saw Add-On Cuts Beautiful Wooden Spirals”