High Current Measurement Probe For Oscilloscopes

A decent current measurement sensor ought to be an essential part of every hacker’s workbench. One that is capable of measuring DC, as well as low and high frequencies with reasonable accuracy. And bonus credits if it can also withstand high bus voltages – such as those found in mains utility or electric vehicle work. [Undersilicon] couldn’t find one that ticked all the boxes, so he built an ACS730 based AC/DC current probe capable of measuring up to 25 A at frequencies up to 1 MHz.

Allegro Microsystems has a wide offering of current sensor IC’s. The ACS730 features a -3 dB bandwidth of 1 MHz, and -1 dB bandwidth of 500 kHz. Since it is galvanically isolated, it can be used in AC mains applications up to 297 Vrms and for DC up to 420 V. And as he intended to use it as an oscilloscope accessory, the analog output suited the application nicely. A pair of precision op-amps provide the voltage output scaled to 100 mV/A. The board is powered off a 1000 mAh LiPo battery that can run the sensor for about 15 ~ 20 hours. The power supply section consists of a charge circuit for the LiPo, and a split rail dual output power supply converter for the op-amps.

The ACS730 has a 2.5 V output when measured current is zero, and is scaled for 40 mV/A. This gives an output voltage swing from -0.5 V for -50 A to +4.5 V for +50 A. This is where the AD823ARZ dual 16 MHz, Rail-to-Rail FET Input Amplifiers step in. One pair is used to obtain a 2.5 V reference from the 5 V supply, and also to buffer the analog output from the ACS730. The second pair subtracts the 2.5 V offset, and applies a gain of 2.5 to get the 100 mV/A output. Dual power supply for the op-amps comes from a TPS65133 Split-Rail Converter, ±5V, 250mA Dual Output Power Supply. Lastly, LiPo charging is handled by the MCP73831 Single Cell, Li-Ion/Li-Polymer Charge Management Controller.

Initial testing of direct currents has shown fairly accurate performance. But he’s observed some noise when measuring currents below 1 A which requires some debugging to figure out the source. [Undersilicon] has provided the CAD files for both the PCB and 3D printed enclosure, giving you access to everything you need to build one yourself. If you’re looking for something a bit more heavy duty, you might be interested in this +/-50 A, 1.5 MHz sensor encased in concrete.

Parts of the automated soil moisture monitoring station

Solar Stevenson Screen For Smart Sprinkler

It’s not infrequent that we see the combination of moisture sensors and water pumps to automate plant maintenance. Each one has a unique take on the idea, though, and solves problems in ways that could be useful for other applications as well. [Emiliano Valencia] approached the project with a few notable technologies worth gleaning, and did a nice writeup of his “Autonomous Solar Powered Irrigation Monitoring Station” (named Steve Waters as less of a mouthful).

Of particular interest was [Emiliano]’s solution for 3D printing a threaded rod; lay it flat and shave off the top and bottom. You didn’t need the whole thread anyway, did you? Despite the relatively limited number of GPIO pins on the ESP8266, the station has three analog sensors via an ADS1115 ADC to I2C, a BME280 for temperature, pressure, and humidity (also on the I2C bus), and two MOSFETs for controlling valves. For power, a solar cell on top of the enclosure charges an 18650 cell. Communication over wireless goes to Thingspeak, where a nice dashboard displays everything you could want. The whole idea of the Stevenson Screen is clever as well, and while this one is 3D printed, it seems any kind of stacking container could be modified to serve the same purpose and achieve any size by stacking more units. We’re skeptical about bugs getting in the electronics, though.

We recently saw an ESP32-based capacitive moisture sensor on a single PCB sending via MQTT, and we’ve seen [Emiliano] produce other high quality content etching PCBs with a vinyl cutter.

Compute Module 4 NAS With Custom Carrier Board

At this point, we’ve seen more Raspberry Pi Network Attached Storage (NAS) builds than we can possibly count. The platform was never a particularly ideal choice for this task due to the fact it could only connect to drives over USB, but it was cheap and easy to work with, so folks made the best of it. But that all changed once the Compute Module 4 introduced PCIe support to the Raspberry Pi ecosystem.

If this impressive NAS built by [mebs] represents the shape of things to come, we’re more than a little excited. On the outside, with its 3D printed case and integrated OLED display to show system status, it might look like plenty of builds that came before it. But pop the top of this cyberpunk-styled server, and you realize just how much work went into it.

At the heart of this NAS is a purpose-built carrier board that [mebs] designed based on the KiCad files the Raspberry Pi Foundation released for their official CM4 IO Board. While not much larger than the CM4 itself, the NAS board breaks out the board’s PCIe, Ethernet, HDMI, and USB. There’s also a header for I2C, used primarily for the OLED display but naturally expandable to additional sensors or devices, and nine GPIO pins for good measure.

Of course, that alone doesn’t make a NAS. Into that PCIe port goes a four channel SATA controller card, which in turn is connected to the hard disk drives that are nestled into their respective nodes of the printed case. A central fan blows over the electronics at the core, and thanks to clever design and a few cardboard seals, pulls air over the drives by way of intake vents printed into the sides.

As impressive as this build is, not everyone will need this level of performance. If you don’t mind being limited to USB speeds, you can 3D print a NAS enclosure for the standard Raspberry Pi. Or you could always repurpose an old PC case if you’d like something a bit more substantial.

You Otter Be Able To Stream That Audio: Open Hardware Eclipses Chromecast Audio

When Google halted production of the Chromecast Audio at the start of 2019, there was a (now silent) outcry. Fans of the device loved the single purpose audio streaming dongle that delivered wide compatibility and drop-dead simplicity at a rock bottom $35 price. For evidence of this, look no further than your favorite auction site where they now sell for significantly more than they did new, if you can even find an active listing. What’s a prolific hacker to do about this clear case of corporate malice? Why, reinvent it of course! And thus the Otter Cast Audio V2 was born, another high quality otter themed hack from one of our favorite teams of hardware magicians [Lucy Fauth, Jana Marie Hemsing, Toble Miner, and Manawyrm].

USB-C and Ethernet, oh my!

The Otter Cast Audio is a disc about the shape and size of standard Chromecast (about 50mm in diameter) and delivers a nearly complete superset of the original Chromecast Audio’s features plus the addition of a line in port to redirect audio from existing devices. Protocol support is more flexible than the original, with AirPlay, a web interface, Spotify Connect, Snapcast, and even a PulseAudio sink to get your Linux flavored audio bits flowing. Ironically the one thing the Otter Cast Audio doesn’t do is act as a target to Cast to. [Jan] notes that out of all the protocols supported here, actual Cast support was locked down enough that it was difficult to provide support for. We’re keeping our fingers crossed a solution can be found there to bring the Otter Cast Audio to complete feature parity with the original Chromecast Audio.

But this is Hackaday, so just as important as what the Otter Cast Audio does is how it does it. The OtterCast team have skipped right over shoehorning all this magic into a microcontroller and stepped right up to an Allwinner S3 SOC, a capable little Cortex A7 based machine with 128 MB of onboard DDR3 RAM. Pint sized by the bloated standards of a fully interactive desktop, but an absolutely perfect match to juggling WiFi, Bluetooth, Ethernet, and convenient support for all the protocols above. If you’re familiar with these hackers’ other work it won’t surprise you that what they produced here lives up to the typical extremely high quality bar set by such wonders as this USB-C adapter for JBC soldering iron handles and this TS-100 mainboard replacement.

It sounds like a small production run might be on order in the future, but until then production files optimized for a particularly popular Chinese manufacturer are provided, with complete BOM and placement files. It sounds like turnkey production costs from that manufacturer are a shockingly reasonable $10 (total) per unit with most components, and come to a still-reasonable $22 with the remaining self-sourced components manually installed.

For a demo of the finished goods, check out the tweet embedded after the break.

Continue reading “You Otter Be Able To Stream That Audio: Open Hardware Eclipses Chromecast Audio”

TCam-Mini: Adding Wireless To Flir Lepton Thermal Imaging Sensors

With how expensive thermal cameras are, why not build your own? This is the goal with which [Dan Julio] set out a while ago, covering the project in great detail. While the ultimate goal is to create a stand-alone solution, with its own screen, storage and processing, the TCam-Mini is an interesting platform. Using the 160×120 pixel FLIR Lepton 3.5 thermal sensor, and combining it with a custom PCB and ESP32 module for wireless, he created a wireless thermal camera called the TCam-Mini along with accompanying software that can display the radiometric data.

The project is available on GitHub, as well as as a GroupGets crowd-funding campaign, where $50 gets one a TCam-Mini board, minus the $199 Lepton 3.5 sensor. Not cheap, but quite a steal relative to e.g. the FLIR One Pro camera add-on module. Compared to the aforementioned FLIR One Pro, there’s a definite benefit in having a more portable unit that is not reliant on a smartphone and accompanying FLIR app. Being able to load the radiometric data directly into a desktop application for processing makes it a closer match to the professional thermal cameras which [Dan] states that he’d like to get as close to in terms of features as possible.

Recently [Dan] has also begun to further characterize these Lepton sensors, in order to see whether their accuracy can be improved from the rated +/- 5-10 °C. For this he repurposed an old in-ear thermometer calibration device. Along with tweaking the ESP32 firmware, there is still a lot that can be done with the TCam-Mini, but it sure looks like a fun project to tinker with if one is into Leptons.

Reverse Engineering Silicon, One Transistor At A Time

Many of will have marveled at the feats of reverse engineering achieved by decapping integrated circuits and decoding their secrets by examining the raw silicon die. Few of us will have a go for ourselves, but that doesn’t stop the process being a fascinating one. Fortunately [Ryan Cornateanu] is on hand with a step-by-step description of his journey into the art of decapping, as he takes on what might seem an unlikely subject in the form of the CH340 USB to serial chip you’ll find on an Arduino Nano board.

Starting with hot sulphuric acid is probably not everyone’s idea of a day at the bench, but having used it to strip the epoxy from the CH340, he’s able to take a look under the microscope. This is no ordinary microscope but a metallurgists instrument designed to light the top of the sample from one side with polarised light. This allows him to identify an area of mask ROM and zoom in on the transistors that make each individual bit.

At this point the chemistry moves into the downright scary as he reaches for the hydrofluoric acid and has to use a PTFE container because HF is notorious for its voracious reactivity. This allows him to take away the interconnects and look at the transistor layer. He can then with a bit of computer vision processing help extract a bit layer map, which with some experimentation and guesswork can be manipulated into a firmware dump. Even then it’s not done, because he takes us into the world of disassembly of what is an unknown architecture. Definitely worth a read for the armchair chip enthusiast.

If you’re thirsty for more, of course we have to direct you towards the work of [Ken Shirriff].

Direct Memory Access: Data Transfer Without Micro-Management

In the most simple computer system architecture, all control lies with the CPU (Central Processing Unit). This means not only the execution of commands that affect the CPU’s internal register or cache state, but also the transferring of any bytes from memory to to devices, such as storage and interfaces like serial, USB or Ethernet ports. This approach is called ‘Programmed Input/Output’, or PIO, and was used extensively into the early 1990s for for example PATA storage devices, including ATA-1, ATA-2 and CompactFlash.

Obviously, if the CPU has to handle each memory transfer, this begins to impact system performance significantly. For each memory transfer request, the CPU has to interrupt other work it was doing, set up the transfer and execute it, and restore its previous state before it can continue. As storage and external interfaces began to get faster and faster, this became less acceptable. Instead of PIO taking up a few percent of the CPU’s cycles, a big transfer could take up most cycles, making the system grind to a halt until the transfer completed.

DMA (Direct Memory Access) frees the CPU from these menial tasks. With DMA, peripheral devices do not have to ask the CPU to fetch some data for them, but can do it themselves. Unfortunately, this means multiple systems vying for the same memory pool’s content, which can cause problems. So let’s look at how DMA works, with an eye to figuring out how it can work for us.
Continue reading “Direct Memory Access: Data Transfer Without Micro-Management”