The MCH2022 Badge Has Landed!

As spring slowly slides into summer here in Europe where this is being written, the warm weather is a reminder that on the horizon are the summer’s crop of hacker camps. The largest European one this year will be the Dutch MCH2022 near the end of July, and to whet our appetite they’ve made public some details of their badge. And true to the past form of Dutch camps, it’s rather an impressive build.

Since this is another piece of work from badge.team it has the expected ESP32 module, but alongside it on the elegantly-designed PCB there’s an RP2040 and a Lattice ICE40UP5K FPGA. The ESP is there to run the badge team firmware which even includes backwards compatibility with the original SHA2017 badge, the RP2040 ties everything together and provides a multitude of USB peripherals, and the FPGA is there to run user code. From the front, the badge has a Game Boy Advance-style form factor with a large colour TFT screen and the usual joystick and buttons. Other peripherals include a brace of addressable LEDs, a pair of nifty sensors from Bosch, and a 16-bit stereo audio channel that even powers a small onboard mono speaker when no headphones are connected.

The hardware may be slick, but it’s the badge.team firmware that makes this as special as all their previous offerings. It offers the chance to easily write apps either in MicroPython for the ESP32, or as payloads for the FPGA, and what makes it special is that it comes with an online app store from which all the apps can be downloaded. We’re told that it will be able to run a range of emulators out of the box, so we’re really looking forward to seeing the final version at the event. Meanwhile they’ve released a demo video that you can see below the break, and if you’re curious you can take a look at its SHA2017 badge ancestor.

Continue reading “The MCH2022 Badge Has Landed!”

2022 Hackaday Prize: ArmaLamp Provides Light, No Matter What

Instant access to electric light is a luxury that most of us take for granted, but in times of crisis, the power is often the first thing to go. So whether you’re worried about a natural disaster or the outbreak of war, a reliable source of light is a must-have in your emergency kit. Creator [bobricius] calls his is ArmaLamp the “Armageddon resistant night lamp”, and while we’re not eager to test that particular claim, it certainly looks robust enough to get you through some tough times.

The basic idea behind the ArmaLamp is to make a light source so simple that, outside of being physically destroyed, it can’t fail. That means deleting the mechanical power switch and designing the circuit so the LED light will kick on automatically in the dark. Rather than using a traditional rechargeable battery, the solar powered ArmaLamp stores its charge in a 10 farad supercapacitor that can be charged and depleted daily without having to worry about long-term degradation.

Charging the ArmaLamp with a simple solar cell is clearly out of the question as it would represent not just a single point of failure, but a particularly fragile one at that. Instead, [bobricius] is using an array of six BPW34 photodiodes that come in a hard plastic package. Combined with an efficient driver circuit that can run the LED even when the supercap is down to 0.3 V, leaving the ArmaLamp outside during the day should provide you with four hours of ultra-reliable light every night.

Continue reading “2022 Hackaday Prize: ArmaLamp Provides Light, No Matter What”

Healing Wounds With The Power Of Electricity

Once upon a time, even a simple cut or scrape could be a death sentence. Before germ theory and today’s scientific understanding of medicine, infections ran rampant and took many lives.

While we’re now well-armed with disinfectants, dressings, and antibiotics, scientists are continuing to investigate new and unique methods to improve the treatment of wounds. As it turns out, a little electricity might actually help wounds heal faster.

Continue reading “Healing Wounds With The Power Of Electricity”

A (Nearly All) New Commodore 64

The Commodore 64 remains one of the most influential of the 8-bit home computers four decades after its launch, so not surprisingly there is a huge enthusiast community surrounding it. With so many produced over the years it was available one might think that there would be no shortage of surviving specimens, but sadly time and component failure have taken their toll and the classic micro is not always the most reliable kid on the block. Thus a cottage industry has sprung up supplying C64 parts, leading [The Retro Shack] to have a go at making a new one entirely from scratch.

As you can see in the video below the break it’s not quite an entirely new ’64, as parts including some of the custom silicon come from failed boards. The PCB is a modern recreation of the original and the SID sound chip is an ARMsid though, and most of the parts come from a handy bagged-up kit that makes assembling the BoM much easier. Instead of the big silver box of the original RF modulator is a modern composite board, and there are a few issues with minor connector part differences.

Assembly is simply a very long through-hole soldering process, and once he’d completed it there was the expected refusal to work. We’ve all been there, and eventually he traced it to an incorrectly fitted chip. If you think you’ve seen a few brand new C64s here before you’d be correct, one of them even used LEGO for those elusive keycaps.

Continue reading “A (Nearly All) New Commodore 64”

Four jumper wires with white heatshrink on them, labelled VCC, SCL, SDA and GND

The Connector Zoo: I2C Ecosystems

I2C is a wonderful interface. With four wires and only two GPIOs, you can connect a whole lot of sensors and devices – in parallel, at that! You will see I2C used basically everywhere, in every phone, laptop, desktop, and any device with more than a few ICs inside of it – and most microcontrollers have I2C support baked into their hardware. As a result, there’s a myriad of interesting and useful devices you can use I2C with. Occasionally, maker-facing companies create plug-and-play interfaces for the I2C device breakouts they produce, with standardized pinouts and connectors.

Following a standard pinout is way better than inventing your own, and your experience with inconsistent pin header pinouts on generic I2C modules from China will surely reflect that. Wouldn’t it be wonderful if you could just plug a single I2C-carrying connector into an MPU9050, MLX90614 or HMC5883L breakout you bought for a few dollars, as opposed to the usual hurdle of looking at the module’s silkscreen, soldering pin headers onto it and carefully arranging female headers onto the correct pins?

As with any standard, when it comes to I2C-on-a-connector conventions, you would correctly guess that there’s more than one, and they all have their pros and cons. There aren’t quite fifteen, but there’s definitely six-and-a-half! They’re mostly inter-compatible, and making use of them means that you can access some pretty powerful peripherals easily. Let’s start with the two ecosystems that only have minor differences, and that you’ll encounter the most! Continue reading “The Connector Zoo: I2C Ecosystems”

The microcontroller described in the article, on the PCB taken out of the kettle

Dumping Encrypted-At-Rest Firmware Of Xiaomi Smart Kettle

[aleaksah] got himself a Mi Smart Kettle Pro, a kettle with Bluetooth connectivity, and a smartphone app to go with it. Despite all the smarts, it couldn’t be turned on remotely. Energized with his vision of an ideal smart home where he can turn the kettle on in the morning right as he wakes up, he set out to right this injustice. (Russian, translated) First, he tore the kettle down, intending to dump the firmware, modify it, and flash it back. Sounds simple enough — where’s the catch?

This kettle is built around the QN9022 controller, from the fairly open QN902X family of chips. QN9022 requires an external SPI flash chip for code, as opposed to its siblings QN9020 and QN9021 which have internal flash akin to ESP8285. You’d think dumping the firmware would just be a matter of reading that flash, but the firmware is encrypted at rest, with a key unique to each MCU and stored internally. As microcontroller reads the flash chip contents, they’re decrypted transparently before being executed. So, some other way had to be found, involving the MCU itself as the only entity with access to the decryption key.

Continue reading “Dumping Encrypted-At-Rest Firmware Of Xiaomi Smart Kettle”

The module on a green PCB, connected to the Pixhawk controller, powering the servo rail

Anxieties Of Hardware Bringup During Parts Shortage

[Dirksavage88] tells us a story about developing a simple BEC in times of chip shortage. He needed a small 5V/3A regulator board for a servo rail on his drone, and decided to use one of the new integrated-inductor modules from Texas Instruments. Hardly requiring any external parts, such modules are exceptionally nice to use for all your power rail needs, albeit at a slightly increased cost – the downside is that, as the parts shortage hit, most of them have been out of stock. Originally priced at about $7 USD, the asking price for these specific modules, LMZM33603, has climbed as high as $800. Somehow, he obtained a few of these modules nevertheless, and went on designing a board.

It can be daunting to test your very first PCBs when the silicon you’re putting on it is effectively irreplaceable for your purposes. TI is known for their wacky footprints, and this module is no exception – the solder paste application took a bit of time, and seeing small solder balls around the module after reflow didn’t exactly reassure him. Thankfully, when he powered it all up, the module worked wonders, and took its rightfully earned spot in his drone’s servo turret. He says we can expect the next revision of his design in 2024, or whenever it is that the reported 100 week lead time is due. In case some of us could use them, Eagle files are available on GitHub!

Quite a few of us are lucky enough to have enough crucial parts for what we need, but most of us got a good few projects shelved until better times – take this WiFi-enabled wall charger project, for instance. Even bigger projects are suffering, from SmoothieBoard to Raspberry Pi. Just a year ago, we had our readers share their chip shortage stories.

Continue reading “Anxieties Of Hardware Bringup During Parts Shortage”