STM32 Offers Performance Gains For DIY Oscilloscope

There’s no shortage of cheap digital oscilloscopes available today from the usual online retailers, but that doesn’t mean the appeal of building your own has gone away — especially when we have access to powerful microcontrollers that make it easier than ever to spin up custom gear. [mircemk] is using one of those microcontrollers to build an improved, pocket-sized oscilloscope.

The microcontroller he’s chosen is the STM32F103C8T6, part of the 32-bit STM family which has tremendous performance compared to common 8-bit microcontrollers for only a marginally increased cost. Paired with a small 3-inch TFT color display, it has enough functions to cover plenty of use cases, capable of measuring both AC and DC signals, freezing a signal for analysis, and operating at an impressive 500 kHz at a cost of only around $15. The display also outputs a fairly comprehensive analysis of the incoming signal as well, with the small scope capable of measuring up to 6.6 V on its input.

This isn’t [mircemk]’s first oscilloscope, either. His previous versions have used Arduinos, generally only running around 50 kHz. With the STM32 microcontroller the sampling frequency is an order of magnitude higher at 500 kHz. While that’s not going to beat the latest four-channel scope from Tektronix or Rigol, it’s not bad for the form factor and cost and would be an effective scope in plenty of applications. If all you have on hand is an 8-bit microcontroller, though, we have seen some interesting scopes built with them in the past.

Pocket-Sized Thermal Imager

Just as the gold standard for multimeters and other instrumentation likely comes in a yellow package of some sort, there is a similar household name for thermal imaging. But, if they’re known for anything other than the highest quality thermal cameras, it’s excessively high price. There are other options around but if you want to make sure that the finished product has some sort of quality control you might want to consider building your own thermal imaging device like [Ruslan] has done here.

The pocket-sized thermal camera is built around a MLX90640 sensor from Melexis which can be obtained on its own, but can also be paired with an STM32F446 board with a USB connection in order to easily connect it to a computer. For that, [Ruslan] paired it with an ESP32 board with a companion screen, so that the entire package could be assembled together with a battery and still maintain its sleek shape. The data coming from the thermal imagining sensor does need some post-processing in order to display useful images, but this is well within the capabilities of the STM32 and ESP32.

With an operating time on battery of over eight hours and a weight under 100 grams, this could be just the thing for someone looking for a thermal camera who doesn’t want to give up an arm and a leg to one of the industry giants. If you’re looking for something even simpler, we’ve seen a thermal camera based on a Raspberry Pi that delivers its images over the network instead of on its own screen.

Pocket Computer Reminds Us Of PDAs

Before smartphones exploded on the scene in the late 00s, there was still a reasonable demand for pocket-sized computers that could do relatively simple computing tasks. Palm Pilots and other PDAs (Personal Digital Assistants) were all the rage in the ’90s and early ’00s, although for cutting-edge tech from that era plenty of these devices had astronomical price tags. This Arduino-based PDA hearkens back to that era, albeit with a much more accessible parts list.

The build is based around an Arudino Nano with an OLED screen and has the five necessary functions for a PDA: calculator, stopwatch, games, phonebook, and a calendar. With all of these components on such a small microcontroller, memory quickly became an issue when using the default libraries. [Danko] uses his own custom libraries in order to make the best use of memory which are all available on the project’s GitHub page. The build also includes a custom PCB to keep the entire pocket computer pocket-sized.

There are some other features packed into this tiny build as well, like the breakout game that can be played with a potentiometer. It’s an impressive build that makes as much use of the microcontroller’s capabilities as is possible, and if you enjoy projects where a microcontroller is used as if it is a PC take a look at this Arduino build with its own command-line interface.

Continue reading “Pocket Computer Reminds Us Of PDAs”

Send Old-Fashioned Pager Messages With New-Fashioned Hardware

In a world of always-connected devices and 24/7 access to email and various social media and messaging platforms, it’s sometimes a good idea to take a step away from the hustle and bustle for peace of mind. But not too big of a step. After all, we sometimes need some limited contact with other humans, so that’s what [EverestX] set out to do with his modern, pocket-sized communication device based on pager technology from days of yore.

The device uses the POCSAG communications protocol, a current standard for pager communications that allows for an SMS-like experience for those still who still need (or want) to use pagers. [EverestX] was able to adapt some preexisting code and port it to an Atmel 32u4 microcontroller. With a custom PCB, small battery, an antenna, and some incredibly refined soldering skills, he was able to put together this build with an incredibly small footprint, slightly larger than a bottle cap.

Once added to a custom case, [EverestX] has an excellent platform for sending pager messages to all of his friends and can avoid any dreaded voice conversations. Pager hacks have been a favorite around these parts for years, and are still a viable option for modern communications needs despite also being a nostalgic relic of decades past. As an added bonus, the 32u4 microcontroller has some interesting non-pager features that you might want to check out as well.

Thanks to [ch0l0man] for the tip!

Many Uses For A Single Button

When building projects with a simple goal in mind, it’s not unheard of for us to add more and more switches, buttons, and complexity as the project goes through its initial prototyping stages. Feature creep like this tends to result in a tangled mess rather than a usable project. With enough focus, though, it’s possible to recognize when it’s happening and keep to the original plans. On the other hand, this single-button project with more than one use seems to be the opposite of feature creep. (YouTube, embedded below.)

[Danko]’s project has one goal: be as useful as possible while only using a single button and a tiny screen. Right now the small handheld device can be used as a stopwatch, a counter, and can even play a rudimentary version of flappy bird. It uses an Arduino Pro Mini, a 64×48 OLED screen running on I2C, and has a miniscule 100 mAh 3.7V battery to power everything. The video is worth watching if you’ve never worked with this small of a screen before, too.

Getting three functions out of a device with only one button is a pretty impressive feat, and if you can think of any other ways of getting more usefulness out of something like this be sure to leave it in the comments below. [Danko] is no stranger to simple projects with tiny screens, either. We recently featured his homebrew Arduino calculator that uses an even smaller screen.

Continue reading “Many Uses For A Single Button”

Beats An Extension Cord

What does your benchtop power supply have that [Pete Marchetto]’s does not? Answer: an extension cord draped across the floor. How often have you said to yourself, “I just need to energize this doodad for a couple seconds,” then you start daisy chaining every battery in the junk drawer to reach the necessary voltage? It is not uncommon to see battery packs with a single voltage output, but [Pete] could not find an adjustable one, so he built his own and put it on Tindie.

Presumably, the internals are not going to surprise anyone: an 18650 battery, charging circuit, a voltage converter, display, adjustment knob, and a dedicated USB charging port. The complexity is not what intrigues us, it is the fact that we do not see more of them and still wind up taping nine-volt batteries together. [Editor’s note: we use one made from an old laptop battery.]

This should not replace your benchtop power supply, it does not have the bells and whistles, like current regulation, but a mobile source of arbitrary voltage does most of the job most of the time. And it’s what this build hasn’t got (a cord) that makes it most useful.

Hacklet 70 – Calculator Projects

Hackers, makers, and engineers have long had a love affair with number crunching. Specifically with the machines that make crunching numbers easier. Today it may be computers, smart watches, and smartphones, but that wasn’t always the case. In the 50’s and 60’s, Slide rules were the rage. Engineers would carry them around in leather belt pouches. By the early 70’s though, the pocket calculator revolution had begun. Calculators have been close at hand for hackers and engineers ever since. This week’s Hacklet celebrates some of the best calculator projects on Hackaday.io!

calc1We start with [Joey Shepard] and RPN Scientific Calculator. No equals sign needed here; [Joey] designed this calculator to work with Reverse Polish notation, just like many of HP’s early machines. Stacks are pretty important for RPN calculators, and this one has plenty of space with dual 200 layer stacks. The two main processors are MSP430s from Texas Instruments. The user interface are a 4 line x 20 character LCD and 42 hand wired buttons. The two processors are pretty ingenious. They communicate over a UART. One processor handles the keyboard and display, while the other concentrates on crunching the numbers and storing data in an SRAM. The case for this calculator is made from soldered up copper clad board. It’s mechanically strong especially since [Joey] added a bead of solder along each joint. If you want to learn more about this technique check out this guide on FR4 enclosures.

[Joey] definitely improved his solder skills with this project. Every wire and connection, including the full SRAM address and data bus were wired by hand on proto boards. We especially like the sweet looking laser cut keyboard on this project!
Continue reading “Hacklet 70 – Calculator Projects”