ESP32-Powered Alarm Clock Gets A Comprehensive 2.0 Upgrade

[Mike Gassman] had an alarm clock, but his wife didn’t like the brightness or the sound. Thus, he set about building a more suitable replacement to fit his needs. The latest upgrade to the project is a significant one.

The Rouse Clock, as he calls it, is something we first saw a few months back in an earlier form. It’s built with the Waveshare ESP32-S3-Touch-LCD-3.5-C. It’s a horribly long part name, but it’s basically an ESP32-S3 microcontroller with a 3.5″ touchscreen LCD already stuck on the front of it. Armed with this, [Mike] already had much of the hardware he needed. Alternatively, the design also works with the Freenove FNK0104N or the CYD E32R35T. The hardware is wrapped up in a 3D-printed housing, with a nice big snooze bar on top so you can slap the clock to quiet it if you need to sleep in on a bad morning. There’s also an optional backup battery to prevent missed alarms from power outages. The general goal was to build a smart clock that worked without subscriptions, apps, or an ugly cloud service.

The clock makes excellent use of the big, bright LCD, showing the time nice and clearly. However, it’s the version 2.0 firmware that has really expanded the functionality. The same hardware now also grabs other useful data, like weather and sunset times, and displays it on the screen to tell you more about the day ahead. Taking advantage of the ESP32’s wireless connectivity, the clock can also act as an Internet radio. Indeed, it’s an internet clock radio, because you can use a stream as an alarm if you wish. It will also display photos or provide soothing sounds for sleep. Configuration is straightforward, as it’s handled through a web interface served by the ESP32 itself. You can even view the clock’s current display from the web interface if you need.

If you’re looking to build a clock quickly, or some other internet-connected appliance, it’s pretty easy to get started with these modern boards that slap an ESP32 and a screen together at the factory. We love a good clock build around these parts. That’s why we feature so many of them! Video after the break.

Continue reading “ESP32-Powered Alarm Clock Gets A Comprehensive 2.0 Upgrade” →

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” →