ESP32 Remote Access Done Light

The team behind Pinscope had a problem. They needed an ESP32 to stay securely connected to a server, but they didn’t have enough spare RAM on the chip to do TLS, what with everything else going on. Thus, they whipped up a useful workaround to get remote access on an ESP32 without TLS.

The team noted they didn’t need the general functionality of TLS. See, TLS is great for connecting any client and server securely with certificates, but it’s a bit heavy when you’re working with a device that only needs to connect to one server for maintenance. The team decided the device just needed to ID whether it was talking to the real server, it must ensure credentials are sent over the wire encrypted, and messages should not be able to be replayed, read, reordered, or otherwise changed while in transit.

The solution to this problem was the Noise protocol. Specifically, Noise_NK_25519_ChaChaPoly_SHA256, where the server uses a static key which the device knows in advance. Since only the holder of the server’s private key can properly finish a handshake, the device knows it’s talking to the real server, and the entire handshake takes just 0.3 seconds on the ESP32, with just 100 bytes sent over the wire. The results are compelling. The ESP32 needed 23.6 KB of RAM to stay connected via TLS, while this dropped to just 9.4 KB using the Noise protocol.

If you need to lighten the burden on a remotely-connected ESP32, you might find this work very useful. Files are on Github for the curious.

Continue reading “ESP32 Remote Access Done Light” →

Camera Upgrades For 3D Printers

3D printing has come a long way over the years, from being a fussy, barely usable mess to essentially being plug-and-play for a large variety of plastics. And the industry tends to cater to makers and hackers as well, with the printers mostly being easily upgradable and even the firmware for them often being open source. [Sam] tested these concepts to the extreme with his Prusa Core One. The printer does have an open-source firmware and will even somewhat automatically accommodate a camera if one is plugged in, but he wanted it to do a few extra things and went through 42 firmware revisions to get it just right.

The first upgrade was to the camera hardware. The ESP32-S3-based camera has an autofocus feature, so that was the first thing to build in. From there it needed access to an SD card to support taking timelapse videos of the prints. This was surprisingly complicated and delved into the intricacies of filesystems but eventually this was solved as well. From there, [Sam] tackled issues with digital zoom, exposures randomly changing and washing out the image, and then finally on to making sure the timelapse feature was easy to use and reliable. This is the feature he uses the most on his printers, so he made it auto-start the recording and also made the recording process more robust to power outages.

With all of that, [Sam] has an upgraded camera for his Prusa printers that dramatically improves quality and reliability. And the fact that these printers are among those that are more open and easier to work on certainly facilitated that journey. To that end, his own firmware is available on his GitHub page, and if you’re unlucky enough to have a printer which doesn’t abide by the open ethos of other printers, there will always be community solutions to those problems too.

Daisy Chaining Stepper Motors

Let’s say you want to control a whole bunch of stepper motors. You can use a multi-channel controller board, or whip something up with a microcontroller or two. Or, you could look at [Josh Rogan’s] design for a system of daisy chainable stepper motors that can all be controlled together. 

The idea is simple enough—give each stepper motor a smart controller that can accept commands and also pass them on to other units in a daisy chain. It’s not unlike the idea behind addressable LED strings, but with stepper motors instead. [Josh] refers to it as the CANBUS Stepper project, and it’s designed for NEMA 17 steppers—putting everything necessary to drive one into a single compact board that sits on the back of the motor itself.  It’s built around the ESP32-S3 microcontroller, and the TCM2209 stepper driver chip. It’s intended that one node will be hooked up over USB, Wi-Fi, Serial, or CAN, and the rest of the steppers in the chain get commands passed down from the first node as needed.

We’ve seen [Josh]’s work before, too—with his earlier development of USB-PD powered steppers. It’s well worth checking out if you’re into this sort of thing. Video after the break.

Continue reading “Daisy Chaining Stepper Motors” →

ESP Microcontrollers As Analog Radios

The release of the hidden SDR functionality in the radio section of Espressif microcontrollers has led to an explosion of SDR hacking, both transmit and receive. We’ve seen SDR front ends and spectrum analysers, but [Kaboom748] has made the process even easier for users of traditional analogue modes. Do you need AM, FM, or SSB? The repository has ready-to-go software, in both transmit and receive.

Interestingly, it provides a reminder that these hacks work on the ESP8266 as well as the ESP32 series, as there are builds for that processor too. It is, however, restricted to whatever frequency the chip supports, so without a converter you are stuck with 2.4 or 5 GHz. To forestall the inevitable commenters, it’s difficult to imagine a situation where wideband FM stereo would be legal in the Wi-Fi space, but at least these chips only provide low-power transmission.

Continue reading “ESP Microcontrollers As Analog Radios” →

Quick WIFI Adapter Through USB

There’s breaking news! Quick, check your computer and look it up! What? Your computer doesn’t have internet right now because its WiFi chip fried itself? Well, it’s a good thing that [Phil Schatzmann] made a quick 4-line upload to make a makeshift internet adapter called TinyWifiDongle!

TinyWifiDongle is literally 4 lines of C++ (though the inclusions are doing some heavy lifting). The simple Arduino based project is not meant to browse through your streaming services at 4K, but can provide simple browsing capabilities by plugging into a USB port. The codebase has been tested on both the ESP32-S3 and Pi Pico 2 W with 600 KB/s and 250 KB/s, respectively. So certainly not blazing by any means, but enough to update your laptop’s own network drivers.

Though, the TinyWifiDongle does provide some particularly useful features in a pinch. Logging and transparency features are built into the codebase to allow the adaptor to work for any light IOT devices that need monitoring.

If the slow speeds shown here aren’t quick enough for you, that doesn’t mean we can’t find something for you. How does 10 gigabit sound? If that’s up your alley, be sure to check out this adaptor’s autopsy!

ESP32 Drives MDA Display For Wireless Terminal

Don’t you miss the days where you had to point a particle accelerator at your face for a full shift? Well, maybe not when we think of it that way, but we still love the amber glow of the Monochrome Display Adapter (MDA) monitor [Chad Boughton] has hooked up to an ESP32 wireless terminal.

The particular ESP32 dev board he’s using comes with PS/2 input and VGA output, but of course VGA is not compatible with the TLL signal the old monochrome monitors are looking for, so he’s had to do a little bodge work– though aside from the one wire, this is evidently a software project. It took a bit of trial-and-error with the oscilloscope to get the timings right, but now that he has them he’s willing to share. [Chad] built that into a fork of FabGL’s terminal he has up on GitHub.

What he’s displaying on the terminal is equally fun, as he’s got a lovely command-line interface styled to look like IBM OfficeVision running on his server, complete with word processor and Lotus 1-2-3 spreadsheet editor– though it can also control the Plex server that carries [Chad]’s tunes. That’s also up on GitHub for anyone who wants it.

If you prefer green, check out the last CRT/ESP32 combo project we featured. For those of you with the opposite problem– a TLL output and no accompanying screen– there’s a project for that, too. 

Thanks to [Chad] for the tip!

Continue reading “ESP32 Drives MDA Display For Wireless Terminal” →

Crashing Microcontrollers Competitively

[Ani] has produced rather an interesting game. Kacken Open Air (KOA) is a browser-based game, wherein players compete for access to a limited resource—namely, festival toilets. So far, so amusing, but there’s a neat technical twist. You’re actually competing to crash microcontrollers in the real world (German, Google Translate link).

The way the game works is simple enough. There are more players than there are toilets, so players have to fight over them. This is achieved by knocking on the toilet doors in the game. However, paired to each toilet in the game is a real ESP8266 microcontroller. Each knock from a player adds computational load to the microcontroller. Knock enough, and the microcontroller will slow enough, and the player occupying the toilet will be kicked out. Keep knocking, and eventually the microcontroller will run out of memory, crash, and reboot. In game, this causes the toilet to collapse. The whole setup runs on a cluster of microcontrollers, with an ESP32-P4, a bunch of ESP8266s, a few Raspberry Pi Pico 2s, Arduino Dues, and an STM8 working as a hardware watchdog to make sure everything stays alive when it should.

If you want to sample the game, try it out in your browser here. (German, Google Translate link). It’s a really fun concept to combine hardware performance with actual gameplay outcomes. It’s so totally different from other projects we’ve seen that involve gaming on ESP microcontrollers. If you’ve done something similar, or something totally zany and different, bell us on the tipsline either way!