STM32 Oscilloscope Uses All The Features

[jgpeiro] is no slouch when it comes to building small, affordable oscilloscopes out of common microcontrollers. His most recent, based on an RP2040 with two channels that ran at 100 MSps, put it on the order of plenty of commercially-available oscilloscopes at this sample rate but at a fraction of the price. He wanted to improve on the design though, making a smaller unit with a greatly reduced bill-of-materials and with a more streamlined design, so he came up with this STM32-based oscilloscope.

The goal of this project was to base as many of the functions around the built-in capabilities of the STM32 as possible, so in addition to the four input channels and two output channels running at 1 MHz, the microcontroller also drives a TFT display which has been limited to 20 frames per second to save processor power for other tasks. The microcontroller also has a number of built-in operational amplifiers which are used as programmable gain amplifiers, further reducing the amount of support circuitry needed on the PCB while at the same time greatly improving the scope’s capabilities.

In fact, the only parts of consequence outside of the STM32, the power supply, and the screen are the inclusion of two operational amplifiers included to protect the input channels from overvoltage events. It’s an impressive build in a small form factor, and we’d say the design goal of keeping the parts count low has been met as well. If you do need something a little faster though, his RP2040-based oscilloscope is definitely worth checking out.

Continue reading “STM32 Oscilloscope Uses All The Features”

Hackaday Prize 2023: Machining Metals With Sparks

Working with metals can present a lot of unique challenges even for those with a fairly well-equipped shop. Metals like aluminum and some types of steel can be cut readily with grinders and saws, but for thick materials or some hardened steels, or when more complex cuts need to be made, mechanical cutting needs to be reconsidered in favor of something electric like electrical discharge machining (EDM) or a plasma cutter. [Norbert] has been on the path of building his own EDM machine and walks us through the process of generating a spark and its effects on some test materials.

Armed with a microscope, a homemade high-voltage generator, drill bit, and a razor blade to act as the workpiece, [Norbert] begins by experimenting with electrical discharges by bringing the energized drill bit close to the razor to determine the distance needed for effective electrical machining. Eventually the voltage is turned up a bit to dive into the effects of higher voltage discharges on the workpiece. He also develops a flushing system using de-ionized water, and then finally a system to automate the discharges and the movement of the tool.

While not a complete system yet, the videos [Norbert] has created so far show a thorough investigation of this metalworking method as well as some of the tricks for getting a setup like this working. EDM can be a challenging method for cutting metal as we’ve seen before with this similar machine which uses wire as the cutting tool, but some other builds we’ve seen with more robust electrodes have shown some more promise.

Continue reading “Hackaday Prize 2023: Machining Metals With Sparks”

An Open Firmware For LILYGO’s E-ink Smart Watch

The world’s first quartz wristwatches were miles ahead of electric and mechanical wristwatches by most standards of the time, their accuracy was unprecedented and the batteries typically lasted somewhere on the order of a year. Modern smart watches, at least in terms of battery life, have taken a step backwards — depending on use, some can require daily charging.

If you’re looking to bridge the gap between a day and a year, you might look into a smart watch with an e-ink display. One option is the ESP32-based LILYGO T-Wrist. Of course, it’s not a smart watch without some software to run on it, which is where qpaperOS comes in.

Developed by [qewer33], this open source firmware for the T-Wrist is designed to get the most out of the battery by updating only once per minute. With a 250 mAh battery, it should last about five days on a charge. Of course, with the power of the ESP32 comes a whole host of other features including GPS, a step counter, and a weather display, although since the firmware is still under development, some of these features have yet to be implemented.

With all of the code available, qpaperOS could make an excellent platform from which to build your own smart watch around. Or perhaps you could chip in and add some of the features on the whislity. The ESP32 is a capable and versatile chip, even capable of playing popular 8-bit video games, although we’re not sure this functionality would fit in a smart watch and preserve battery life at the same time.

Blinkenlights To Bootloader: A Guide To STM32 Development

While things like the Arduino platform certainly opened up the gates of microcontroller programming to a much wider audience, it can also be limiting in some ways. The Arduino IDE, for example, abstracts away plenty of the underlying machinations of the hardware, and the vast amount of libraries can contribute to this effect as well. It’s not a problem if you just need a project to get up and running, in fact, that’s one of its greatest strengths. But for understanding the underlying hardware we’d recommend taking a look at something like this video series on the STM32 platform.

The series comes to us from [Francis Stokes] of Low Byte Productions who has produced eighteen videos for working with the STM32 Cortex-M4 microcontroller. The videos start by getting a developer environment up and blinking LEDs, and then move on to using peripherals for more complex tasks. The project then moves on to more advanced topics and divides into two parts, the development of an application and also a bootloader. The bootloader begins relatively simply, and then goes on to get more and more features built into it. It eventually can validate and update firmware, and includes cryptographic signing (although [Francis] notes that you probably shouldn’t use this feature for production).

One of the primary goals for [Francis], apart from the actual coding and development, was to liven up a subject matter that is often seen as dry, which we think was accomplished quite well. A number of future videos are planned as well. But, if you’re not convinced that the STM32 platform is the correct choice for you, we did publish a feature a while back outlining a few other choices that might provide some other options to consider.

Continue reading “Blinkenlights To Bootloader: A Guide To STM32 Development”

Tensioning 3D Prints For Lightweight, Strong Parts

Desktop 3D printers have come a long way over the past decade. They’re now affordable for almost anyone, capable of printing in many diverse materials, and offer a level of rapid prototyping and development not feasible with other methods. That said, the fact that they are largely limited to printing different formulations of plastic means there are inherent physical limitations to what the machines are capable of, largely because they print almost exclusively in plastic. But augmenting prints with other building techniques, like this method for adding tensioning systems to 3D printed trusses can save weight and make otherwise unremarkable prints incredibly strong.

The build from [Jón Schone] of Proper Printing consists of printed modular sections of truss which can be connected together to make structural components of arbitrary length. To add strength to them without weight, a series of Kevlar threads are strung from one end of the truss to the other on the interior, and then tensioned by twisting the threads at one end. Similar to building with prestressed concrete, this method allows for stronger parts, longer spans, less building material, and lighter weight components. The latter of which is especially important here, because this method is planned for use to eventually build a 3D printer where the components need to be light and strong. In this build it’s being used to make a desk lamp with a hinged joint.

For other innovative 3D printer builds, [Jón] has plenty of interesting designs ranging from this dual extrusion system to this 3D printed wheel for a full-size passenger vehicle. There’s all kinds of interesting stuff going on at that channel and we’ll be on the edge of our seats waiting to see the 3D printer he builds using this tensioned truss system.

Continue reading “Tensioning 3D Prints For Lightweight, Strong Parts”

Break Free From Proprietary Digital Radio

Digital modes are all the rage these days in amateur radio — hams are using protocols like WSPR to check propagation patterns, FT8 to get quick contacts on many bands with relatively low power, and MSK144 to quickly bounce a signal off of a meteor. There’s also digital voice, which has a number of perks over analog including improved audio quality. However, the major downside of most digital voice modes, at least those in use on UHF and VHF, is that they are proprietary with various radio brands having competing digital standards. To get above the noise a more open standard can be used instead.

The M17 standard, originally created by [Wojciech Kaczmarski] aka [SP5WWP], uses Codec 2 to convert voice into a digital format before it is broadcast over the air. Codec 2 is an open standard unlike other audio codecs. M17 also supports reflectors, which can link individual radios or entire repeaters together over the Internet. While you can make purpose-built modules that will interface with most standard radio inputs, it’s also possible to modify existing hardware to support this standard as well. The video below from [Tech Minds] shows this being done to a radio with only a few hardware modifications and the installation of a new firmware.

For anyone who has been frustrated that there’s no real universal standard for digital voice in VHF and above, M17 could be a game-changer if enough people get tired of their friends being on other proprietary digital systems. There’s plenty of supported hardware out there that most hams probably already have already, including a number of TNC devices like the Mobilinkd and the DigiRig, so it shouldn’t be too hard to get started. If you’re more into networking over radio, though, take a look at this method for sending high-bandwidth IP networking over the UHF band. Continue reading “Break Free From Proprietary Digital Radio”

Rocket Stove Efficiently Heats Water

Rocket stoves are an interesting, if often overlooked, method for cooking or for generating heat. Designed to use biomass that might otherwise be wasted, such as wood, twigs, or other agricultural byproducts, they are remarkably efficient and perform relatively complete combustion due to their design, meaning that there are fewer air quality issues caused when using these stoves than other methods. When integrated with a little bit of plumbing, they can also be used to provide a large amount of hot water to something like an off-grid home as well.

[Little Aussie Rockets] starts off the build by fabricating the feed point for the fuel out of steel, and attaching it to a chimney section. This is the fundamental part of a rocket stove, which sucks air in past the fuel, burns it, and exhausts it up the chimney. A few sections of pipe are welded into the chimney section to heat the water as it passes through, and then an enclosure is made for the stove to provide insulation and improve its efficiency. The rocket stove was able to effortlessly heat 80 liters of water to 70°C in a little over an hour using a few scraps of wood.

The metalworking skills of [Little Aussie Rockets] are also on full display here, which makes the video well worth watching on its own. Rocket stoves themselves can be remarkably simple for how well they work, and can even be built in miniature to take on camping trips as a lightweight alternative to needing to carry gas canisters, since they can use small twigs for fuel very easily. We’ve also seen much larger, more complex versions designed for cooking huge amounts of food.

Continue reading “Rocket Stove Efficiently Heats Water”