Proper Linux, On An ESP32

The ESP32 series of microcontrollers feature a lot on these pages, offering as they do a significantly powerful processor and in most cases, wireless connectivity. One recent member of the bewilderingly large family is the ESP32-S31, It’s a dual-core RISC-V unit with WiFi 6, and if that’s not interesting enough there’s the news that it runs Linux. Not -nommu Linux, but the full-fat version, as it has a memory management unit.

Before you imagine a superlative experience, it’s worth the reminder that the available resources will not give it much when it comes to computing power. But there’s an Espressif GitHub repository, and work on a port of a 6.x kernel, so you should be able to do something with it. A quick look on AliExpress finds dev boards at a range of prices, so the cost of experimenting shouldn’t be too high.

This moment at which the paths of microcontroller and full-fat SoC start to cross has been on the horizon for quite a while, and it’s exciting to see it finally arrive. Expect more similar chips in competition with this one, and more power too. Meanwhile see our noting the launch of the S31.

The Hidden Microcontroller Inside A LoRa Chip

If you’ve ever done anything with LoRa, the chances are you’ve used a LoRa chip or module as a peripheral for a microcontroller, and left it at that. But that’s not always the case. Rather than being a pre-programmed ASIC under the hood, the Semtech LR2021 has its own on-board microcontroller whose firmware can be updated. [Alex Beale] has managed to unlock its secrets.

The use of LLMs can elicit strong opinions at times, but in this case we agree with him that the task of reverse engineering this hidden microcontoller would have been a near-impossible task without their help. Having done so though,he can write custom firmwares, which he’s able to demonstrate. Running the required FFTs for a waterfall display on-chip for example is now possible, as is running your mesh network node on the chip itself.

This work continues a streak of recent discoveries unlocking software-defined radio functionality inside dedicated radio chips, with both WiFi and LoRa chips falling prey to reverse engineering. It’s an interesting time, if SDR is your thing.

Thanks [Notbasa] for the tip.

Automate That Halloween Treating

We live a Jetsons future of ubiquitous automation, in which the most trivial of human tasks has a machine to take the work out of it. Take doling out Halloween candy for example, why the effort of doing it by hand when a machine can take the  strain? [Christian] is here to show us the way with the Halloween Candy Mosnter. It’s a cardboard monster ehad that delivers candy when you press its nose, but there’s a bit more to it than that.

Behind the scenes there’s an ESP32 running the show, with the candy dispensed by a stepper motor with a finger wheel. An IR break beam detects candy dispensing, and an array of flashing lights and sounds complete the celebration. It’s a bit of fun, but with more substance than at first meets the eye. Everything sits in a GitHub repository should you wish to take a peek.

Halloween comes but once a year, and thus we only have a few days in which to show off these hacks. Oddly this one isn’t the first dispenser of candy we have brought you.

It’s Alpine Linux, On A Kindle Paperwhite 3

As computing power becomes cheaper and microprocessors become more capable, a steady trend over recent decades has been to see more everyday devices hiding Linux under the hood somewhere. Sadly in most cases that’s where it stays, but some such machines have a level of hackability. One such is the 7th generation Kindle PaperWhite 3, for which [pragyaangaur] has produced a distro that gives it the Alpine Linux userspace and a few other tricks.

As you might expect, the Kindle must be jailbroken, and is limited to the rather ancient Amazon kernel. The distro comes with a few extras for the custom front end. There’s a selection of games, a browser, an ArXiv search client, an ePub reader, and Quill, a local chatbot running SmolLM2 over llama.cpp on the Kindle’s own processor. At 1.7 words per second it may not be the fastest, but the important thing is that everything stays on the device. Best of all, it’s easy enough to return your Kindle to stock should you tire of the distro.

A quick look at everyone’s favourite auction site finds these readers available for well under $100, so should you wish to join the fun it at least shouldn’t cost an arm and a leg. Meanwhile, Kindle hacking is somewhere we’ve taken you before.

Translating An Old Display To A New One

A quick search through AliExpress will find PCBs that take HDMI or VGA and translate them to DSI lanes for TFT panels, and even boards that translate DSI to HDMI in the other direction. Usually they need dedicated silicon or if you’re doing it yourself, an FPGA, but depending on the display that need not be the case. As an example, [Voltage Ventures] has replaced a defective STN display with a more modern one using nothing more complex than a Raspberry Pi Pico.

The display comes as part of a Samsung cash register that looks as though it comes from the 1990s, which is in keeping with it having a monochrome STN display. A replacement was going to cost a fortune, so some way of translating between the two was in order. It has a 4-bit data bus, so there’s a description of how they sampled the bus and identified the timing used. It’s hardly the highest resolution display by today’s standards, being a meager 320 by 240 pixels. Once the format is known it’s a case of transposing it to monochrome VGA in the microcontroller. Initial work was done with an STM series chip, later this was moved to the RP2040.

We like this project, and it’s a reminder that even something broken and old can still be rescued.

A Tiny OS For A Tiny Board

As microntrollers have become ever more powerful, we have started to see an increasing number of operating systems written to take advantage of this extra power. Usually they’re aimed at handheld or other similar devices with support for screens and input devices, but just what can be done if a developer eschews those niceties? KoaOS is a small OS for the ESP32-S3 on the Heltec WiFi LoRa 32 V4, and it’s headless. You can only talk to it via a serial terminal on its USB port.

What it provides is a UNIX-like shell, with editor, GPS, weather and APRS apps ready to run. It’s not just limited to those, there’s an SDK of sorts to create new apps and compile them from C. These .esp files can be installed and uninstalled at will over the network.

There are a few limitations, for example it’s only for the Heltec V4 due to a large requirement for PSRAM. We are guessing that another similar spec board could probably be made to perform, however it’s clear that hasn’t yet been done. Despite that we think this OS is interesting for concentrating on the OS rather than the interface, and we hope to see it develop further.

Several takes on an ESP32 OS have appeared in recent times, including this JavaScript one.

The First Business Computer Hits 75!

Many of us will have followed the early history of electronic computing, from the urgent necessities of war, to universities, and then on into the wider world. Most of the firsts in that field are now well known, but there’s one that’s a little obscure. LEO was a commercial development of Cambridge University’s EDSAC that was produced at the behest of J. Lyons and Comapny, one of the UK’s largest mid-20th-century food producers. As such it was the first purpose-built electronic business computer, and since its 75th anniversary is upon us, the Centre for Computing History is holding an event to mark the occasion.

There’s a whole cultural essay to be written about the role of Lyons in twentieth-century Britain, but for Hackaday purposes it should suffice to say that there was little in the way of food production that they didn’t touch. The shops were full of Lyons cakes, biscuits, and tea, and a feature of many towns would have been a Lyons Tea Shop, a budget restaurant. The logistics of such a complex business made a computer of great interest to the company, and after some of its executives learned about ENIAC on a trip to the USA they sought out a machine closer to home. They found the EDSAC, a research computer, and commercialised it as Lyons Electronic Office, or LEO. This spawned a series of machines that lasted into the 1970s, the last one being used by the British Post Office.

It might be difficult to find a LEO in a museum today, but in the National Museum of COmputing at Bletchley you can find the next best thing in their recreation of EDSAC. It’s a decade since we visited, perhaps it’s time for a return.


Header image: Spudgun67, CC BY-SA 4.0.