Templateize Your Timetable With EPaper Templates

To date, e-paper technology has been great for two things, displaying static black and white text and luring hackers with the promise of a display that is easy on the eyes and runs forever. But poor availability of bare panels has made the second (we would say more important) goal slow to materialize. One of the first projects that comes to mind is using such a display to show ambient information like a daily summary weather, train schedules, and calendar appointments. Usually this means rolling your own software stack, but [Christopher Mullins] has put together a shockingly complete toolset for designing and updating such parameterized displays called epaper_templates.

To get it out of the way first, there is no hardware component to epaper_templates. It presupposes you have an ESP32 and a display chosen from a certain list of supported models. A quick search on our favorite import site turned up a wide variety of options for bare panels and prebuilt devices (ESP32 and display, plus other goodies) starting at around $40 USD, so this should be a low threshold to cross.

Once you have the device, epaper_templates provides the magic. [Christopher]’s key insight is that an ambient display is typically composed of groups of semi-static data displayed in a layout that never changes. The only variation is updates to the data which is fully parameterized: temperature is always integer Fahrenheit, train schedules are lists of minutes and hours, etc. Layouts like this aren’t difficult to make, but require the developer to reimplement lots of boilerplate. To make them easy to generate, epaper_templates provides a fully featured web UI to let the user freely customize a layout, then exports it as JSON which the device consumes.

The sample layout configured in the video below

The web UI is shockingly capable, especially for by the standards of the embedded web. (Remember it’s hosted on the ESP32 itself!) The user can place text and configure fonts and styles. Once placed, the text can be set to static strings or tied to variables, and if the string is a timestamp it can be formatted with a standard strftime format string.

To round out the feature set, the user can place images and lines to divide the display. Once the display is described, everything becomes simple to programmatically update. The ESP can be configured to subscribe to certain MQTT topics from which it will receive updates, or if that is too much infrastructure there is a handy REST API which accepts JSON objects containing variables or bitmaps to update on device.

We’re totally blown away by the level of functionality in epaper_templates! Check out the repo for more detail about its capabilities. For a full demo which walks through configuration of a UI with train arrival times, weather, both instant temperature and forecast with icons, and date/time check out the video after the break. Source for the example is here, but be sure to check out examples/ in the repo for more examples.

Continue reading “Templateize Your Timetable With EPaper Templates”

A Case For Project Part Numbers

Even when we share the design files for open source hardware, the step between digital files and a real-world mechatronics widget is still a big one. That’s why I set off on a personal vendetta to find ways to make that transfer step easier for newcomers to an open source mechantronics project.

Today, I want to spill the beans on one of these finds: part numbers, and showcase how they can help you share your project in a way that helps other reproduce it. Think of part numbers as being like version numbers for software, but on real objects.

I’ll showcase an example of putting part numbers to work on one of my projects, and then I’ll finish off by showing just how part numbers offer some powerful community-building aspects to your project.

A Tale Told with Jubilee

To give this idea some teeth, I put it to work on Jubilee, my open source toolchanging machine. Between October 2019 to November 2020, we’ve slowly grown the number of folks building Jubilees in the world from 1 to more than 50 chatting it up on the Discord server. Continue reading “A Case For Project Part Numbers”

Clone Console Cribs Ben Heck’s Classic SNES Caché

“I don’t get mad when people rip me off. I actually think its kinda cool, because imitation is the sincerest form of flattery.” — Ben Heckendorn

For some “hacking things together” can mean heavily borrowing from other’s work in order to make a new, derivative work. Though longtime hardware hacker, Ben Heckendorn, didn’t expect one of his early SNES handheld projects to become the inspiration for a Famicom-style clone console. There have been a number of clone consoles available online for years, and all have been made to varying levels of build quality. The subject clone console in question is called the Easegmer 12-bit Retro Console, so [Ben] decided to record his teardown of the handheld borrowing from his original design. (Video, embedded below.)

The Easegmer handheld has a “surprising” list of features according to its packaging including: sports games, logic games, memoyr games, USB charger management, double power supply option, and dirunal double backlight option. All big (and slightly misspelled) promises though the most egregious claim has to be that, “No violent games, your child’s body and mind get full exercise.”. The statement may have a modicum of truth to it, except for the fact that game 84 of 220 is literally named “Violent”. Dunking aside, the handheld does feature a standard size rechargeable battery in addition to the option of powering the device with three AAA batteries. There’s even a “fun size” screwdriver and a few replacement screws included which is more than you can say for most modern electronics.

It has been almost twenty years after [Ben] originally published his SNES portable project on his website. So as a long awaited follow-up, [Ben] plans to make a “meta-portable”. This meta portable will start with the Adobe Illustrator files he kept from that SNES portable in 2001 and incorporate pieces of the Easegmer clone console. Thus spawning a new clone of the clone of his clone…or whatever that project ends up being its sure to be worth repeating.

Continue reading “Clone Console Cribs Ben Heck’s Classic SNES Caché”

The Dark Side Of Solar Power

Everybody loves solar power, right? It’s nice, clean, renewable energy that’s available pretty much everywhere the sun shines. If only the panels weren’t so expensive. Even better, solar is now the cheapest form of electricity for companies to build, according to the International Energy Agency. But solar isn’t all apples and sunshine — there’s a dark side you might not know about. Manufacturing solar panels is a dirty process from start to finish. Mining quartz for silicon causes the lung disease silicosis, and the production of solar cells uses a lot of energy, water, and toxic chemicals.

The other issue is that solar cells have a guanteed life expectancy of about 25 years, with average efficiency losses of 0.5% per year. If replacement begins after 25 years, time is running out for all the panels that were installed during the early 2000s boom. The International Renewable Energy Agency (IREA) projects that by 2050, we’ll be looking at 78 million metric tons of bulky e-waste. The IREA also believe that we’ll be generating six million metric tons of new solar e-waste every year by then, too. Unfortunately, there are hardly any measures in place to recycle solar panels, at least in the US.

How are solar panels made, anyway? And why is it so hard to recycle them? Let’s shed some light on the subject.

Continue reading “The Dark Side Of Solar Power”

A Straightforward Guide To Unlocking The Nintendo Game And Watch

Nintendo’s reborn tiny handheld game has certainly attracted the attention of hardware hackers, and we’ve been treated to a succession of exploits as its secrets have been one by one unlocked. With relatively straightforward hardware it conceals potential far beyond a simple Mario game or two, and it’s now at the stage of having a path to dumping both its SPI Flash and internal Flash, unlocking its processor, and running arbitrary code. The process of unlocking it is now atraightforward enough to warrant a HOWTO video, to which [stacksmashing] has treated us. It’s early days and this is still touted as for developers rather than gamers, but it serves to show where work on this console is going.

The console’s STM32 architecture means that programming hardware is straightforward enough to find, though we’re cautioned against using the cheap AliExpress type we might use with a Blue Pill or similar. Instead the snap-off programmer that comes with an STM Nucleo board is a safer choice that many people are likely to have already.

The relative simplicity of the process as seen in the video below must conceal an immense amount of work from multiple people. It’s a succession of scripts to sequentially unlock and back up the various firmwares with STM payloads for each step. Finally the STM32 itself is unlocked, and the backed-up Nintendo firmware can be returned to the device or instead a custom firmware can be created. Aside from the DOOM we’ve already seen there are work-in-progress NES and Game Boy emulators, and fascinatingly also work on bare-metal games.

Given the lack of custom chips in this console it is easily possible that its hardware could be directly cloned and that Nintendo might have unintentionally created a new general purpose hacker’s handheld gaming platform. There are a few hardware works-in-progress such as increasing the SPI Flash size and finding the unconnected USB pins, so we look forward to more exciting news from this quarter.

Continue reading “A Straightforward Guide To Unlocking The Nintendo Game And Watch”

Diaphragm Air Engine

One of the tricky parts of engineering in the physical world is making machines work with the available resources and manufacturing technologies. [Tom Stanton] has designed and made a couple of air-powered 3D printed engines but always struggled with the problem of air leaking past the 3D-printed pistons. Instead of trying to make an air-tight piston, he added a rubber membrane and a clever valve system to create a diaphragm air engine.

This GIF is worth 115 words

A round rubber diaphragm with a hole in the center creates a seal with the piston at the top of its stroke. A brass sleeve and pin protrude through the diaphragm, and the sleeve seals create a plug with an o-ring, while the pin pushes open a ball which acts as the inlet valve to pressurize an intermediate chamber. As the piston retracts, the ball closes the inlet valve, the outlet valve of the intermediate chamber is opened, forcing the diaphragm to push against the piston. The seal between the piston and diaphragm holds until the piston reaches its bottom position, where the pressurized air is vented past the piston and out through the gearbox. For full details see the video after the break.

It took a few iterations to get the engine to run. The volume of the intermediate chamber had to increase and [Tom] had to try a few different combinations of the sleeve and pin lengths to get the inlet timing right. Since he wanted to use the motor on a plane, he compared the thrust of the latest design with that of the previous version. The latest design improved efficiency by 366%. We look forward to seeing it fly! Continue reading “Diaphragm Air Engine”

Exploring Turn Of The Century RAF Avionics

The second hand market is a wonderful thing; you never know what you might find selling for pennies on the dollar simply because it’s a few years behind the curve. You might even be able to scrounge up some electronics pulled out of a military aircraft during its last refit. That seems to be how [Adrian Smith] got his hands on a Control Display Unit (CDU) originally installed in a Royal Air Force AgustaWestland AW101 “Merlin” helicopter. Not content to just toss it up on a shelf, he decided to take a look inside of the heavy-duty cockpit module and see if he couldn’t make some sense out of how it works.

Unsurprisingly, [Adrian] wasn’t able to find much information on this device on the public Internet. The military are kind of funny like that. But a close look at the burn-in on the CDU’s orange-on-black plasma display seems to indicate it had something to do with the helicopter’s communication systems. Interestingly, even if the device isn’t strictly functional when outside of the aircraft, it does have a pretty comprehensive self-test and diagnostic system on-board. As you can see in the video after the break, there were several menus and test functions he was able to mess around with once it was powered up on the bench.

With the case cracked open, [Adrian] found three separate PCBs in addition to the display and keyboard panel on the face of the CDU. The first board is likely responsible for communicating with the helicopter’s internal systems, as it features a MIL-STD-1553B interface module, UART chips, and several RS-232/RS-485 transceivers. The second PCB has a 32-bit AMD microcontroller and appears to serve as the keyboard and display controller, possibly also providing the on-board user interface. The last board looks to be the brains of the operation, with a 25 MHz Motorola 68EC020 CPU and 1Mb of flash.

All of the hardware inside the CDU is pretty generic, but that’s probably the point. [Adrian] theorizes that the device serves as something of a generic pilot interface module, and when installed in the Merlin, could take on various functions based on whatever software was loaded onto it. He’s found pictures online that seem to show as many as three identical CDUs in the cockpit, all presumably running a different system.

[Adrian] has uncovered some interesting diagnostic information being dumped to the CDU’s rear connectors, but he’s still a long way off from actually putting the device to any sort of practical use. If any Hackaday readers have some inside information on this sort of hardware, we’re sure like to hear about it.

Continue reading “Exploring Turn Of The Century RAF Avionics”