Put An Arduino Enigma In Your Pocket

The German Enigma device has always been a fascinating gadget for hackers. We’ve seen various replicas and emulators created over the years, and it was recently even the subject of our weekly Hack Chat. But if you think about it it’s not really a surprise; the Enigma has the perfect blend of historical significance and engineering wizardry, with a healthy dash of mystery thrown in. Why do the bad guys always have the coolest toys?

If you’ve ever wanted your own little Enigma replica to explore, [Mark Culross] has put together a project which makes it easier than ever. In fact, it’s so straightforward that some of you reading this post will probably be able to put one together as soon as you’ve read this post from stuff you already have lying around in the parts bin. All you need is an Arduino Uno, an Adafruit 2.8″ TFT Touch Shield, and a penchant for World War II technology.

Thanks to the relatively high-resolution touch screen, [Mark] was able to develop a user interface for his Enigma that really gives you a feel for how the original machine worked. Obviously it’s considerably simplified from the real-world version, but using a stylus to tap the rotors you want to spin or the wires you want plugged in makes for a more immersive experience than many of the previous attempts we’ve seen. With a tap you’re even able to load historical machine configurations, such as how the Enigma aboard the submarine U-262 was configured when the Allies intercepted its encoded messages in 1942.

[Mark] says this project was always about developing the software, and he leaves the actual hardware implementation as an exercise for the user. Just to play around with the software it’s enough to hook up an Arduino and the touch screen, but we’d love to see somebody really take the idea and run with it. Add some batteries, a charging circuit, and put it all in a little wooden box for that authentic Enigma look. Can’t forget that iconic wrinkle finish paint, either.

Over the years, we’ve seen replica Enigma machines in all shapes and sizes. From ones you could mount on your wrist, to full size replicas using modern components. We’ve even seen one variation that you can print out on a couple of sheets of paper. The parade of recreations shows no sign of stopping, and we wouldn’t have it any other way.

Continue reading “Put An Arduino Enigma In Your Pocket”

Full Motion Video And 3D Graphics Make This Genesis Demo Pop

The SEGA Genesis (aka Mega Drive) was launched at the tail end of the 1980s, bringing a new level of performance to the console world. At the time, 2D graphics ruled the roost, outside a few niche titles here and there. Decades later however, the demoscene continues to work in earnest. The Red Eyes demo is a great example of what can be done when pushing the Genesis hardware to the limits.

The demo features full motion video and an impressive 3D sequence. It’s quite a feat to pull this off with the limited resources of the Genesis platform. [Remute], [Kabuto] and [Exocet] have laid their secrets bare in a technical document, describing in explicit detail how it’s all achieved.

There’s plenty of juicy reading material here. There are palette hacks to produce high-quality greyscale images, rendering tips to produce the smooth 3D rendered sequences, as well as optimizations to create the best possible sample playback using the onboard YM2612 sound chip. It’s a tour de force of development, and it’s astounding to look behind the curtain to see just what can be achieved.

If you’re thinking about tinkering with the Genesis yourself, you might find it useful to have a dev kit on your bench. Video after the break.

Continue reading “Full Motion Video And 3D Graphics Make This Genesis Demo Pop”

Running A Glider With The PX4 Flight Controller

There are a few open source autopilots available these days for quadcopters and fixed wing aircraft. Two of the most popular are ArduPilot and PX4, however neither is officially capable of working with unpowered aircraft. Despite this, [rctestflight] decided to run some experiments to see just how PX4 would fare when controlling a drone-launched shuttle glider.

The glider is a simple design built from foam board, controlled with two elevons, and fitted with a third servo to handle its release from the tow drone. It’s fitted with a Pixracer autopilot module and a Dragonlink telemetry link to the ground control laptop.

Initial testing was unsuccessful, with the drone ignoring return-to-home commands, and only responding to waypoints. After some further experimentation, performance improved. Testing and tweaking is the name of the game, and while the attempt to fly the glider into the back of the trailer failed, overall the project shows promise.

It’s impressive to see the glider tracing out perfect circles on the map under autopilot control. While it’s not officially supported, [rctestflight]’s work shows that it’s possible to run PX4 on a glider and have some success doing it. Future plans involve weather balloons and high altitude work, and we can’t wait to see the results.

PX4 has been used in a wide variety of projects, and can be used with even quite unusual aircraft. Video after the break.

Continue reading “Running A Glider With The PX4 Flight Controller”

Reverse Engineering Shimano Bike Electronics

ANT+ is a wireless protocol specifically designed for use with sensors, and has similar functionality in some respects to Bluetooth Low Energy. It’s found a place among various bicycle equipment manufacturers, to connect smartwatches, cycle computers and electronic gear shifters. Of course, as soon as something becomes a defacto standard someone has to start coloring outside the lines. In this case, Shimano went off book with their DI2 groupset, leaving [kwakeham] with a reverse engineering job on his hands.

[kwakeham] gives us a great example of how to approach reverse engineering. Researching the Shimano hardware by its FCC ID shows that the device communicates using an NRF24AP2 chip, common in ANT+ devices. The Shimano device is then opened, and a logic analyser attached to various test points until the SPI interface between the transceiver and microcontroller is found. At this point, it’s a simple matter of putting the hardware through its paces and capturing data until the protocol can be pulled apart, piece by piece.

The work is documented on Github for anyone wishing to interface with the Shimano DI2 groupset. Reverse engineering is a powerful skill, that can teach you about everything from Pokemon to botnets. Video after the break.

Continue reading “Reverse Engineering Shimano Bike Electronics”

Make Your Commodore 16 64k, But Not A Commodore 64

The Commodore 16 was a budget home computer from the mid 1980s, the entry-level model in a wider range of machines. As its name suggests it only has 16k of memory in keeping with its budget status, and while it has the rest of the hardware necessary to run software intended for its 64k stablemates, that 16k is impossible to expand without modifying the machine. Should you have a ’16 in your collection this is not a particularly arduous process, and Tynemouth Software have gone into great detail over how it can be achieved.

As was quite common in machines of the period, the address lines for the RAM area above the fitted 16k are not wired to disable it when those addresses are selected, so the same 16k appears mirrored three times in the space between it and the 64k limit. Thus simply plugging in a 64k cartridge would result in the top 48k being unusable, and some means of disabling or supplanting the internal chips was called for. Contemporary upgrades required pin or track snipping, but as they go on to show us there are some less ugly alternatives both permanent and reversible. Whichever you might favor they all at least don’t carry the huge cost hurdle in 2019 that they might have been when the machine was new. Sadly even though their cases may be similar the resulting machine will not be a Commodore 64, not even a new one.

Long-time Hackaday readers will know that the hardware designer for these machines was our Hackaday colleague [Bil Herd], and all followers of Commodore and his work should read his account of the CES trade show at the heady height of Commodore’s  fame.

Automated Cat Feeder Handles Wet Food With Aplomb

A feline’s appetite is rarely sated, and cat owners around the world are routinely treated to an early morning wake up call to remind them of this fact. To solve this problem, many turn to automated feeders. However, such devices usually handle only dry foods, with a simple hopper system. [Vikram Hao] instead went above and beyond, building a fully automated wet food cat feeder.

The device is a great example of effective automation. It’s fully capable of dispensing a single can of cat food, as well as opening the can, serving the food and disposing of the waste in an integrated bin. Currently, it has a maximum capacity of 9 cans, though this can be increased by simple alterations to the hopper and trash bin. Unsurprisingly, all manner of steppers, servos and brushed motors work in concert to achieve this feat. An Arduino Mega 2560 serves as the brains, providing plenty of IO to run everything as easily as possible.

[Vikram] reports that both the owner and the cat are overjoyed with the invention. We’ve seen a few builds before, with some even featuring armor plating. Video after the break.

Continue reading “Automated Cat Feeder Handles Wet Food With Aplomb”

Retrotechtacular: Nellie The School Computer

When did computers arrive in schools? That should be an easy question to answer, probably in the years around 1980. Maybe your school had the Commodore Pet, the Apple II, or if you are British, the Acorn BBC Micro in that period, all 8-bit microcomputers running a BASIC interpreter. That’s certainly the case for the majority of schools, but not all of them. In early 1969 the BBC’s Tomorrow’s World visited a school with a computer, and in both technology and culture it was a world away from those schools a decade later that would have received those BBC Micros.

The school in question was The Forrest Grammar School, Winnersh, about 35 miles west of London, and the computer in question was a by-then-obsolete National Elliott 405 mainframe that had been donated four years earlier by the British arm of the food giant Nestlé. The school referred to it as “Nellie” — a concatenation of the two brand names. It seems to have been the preserve of the older pupils, but the film below still shows the concepts of its operation being taught at all levels. We get a brief look at some of their software too — no operating systems here, everything’s machine code on paper tape — as a teacher plays a reaction timer game and the computer wins at noughts and crosses (tic-tac-toe). One of them has even written a high-level language interpreter on which younger children solve maths problems. Of course, a 1950s mainframe with hundreds or thousands of tubes was never a particularly reliable machine, and we see them enacting their failure routine, before finally replacing a faulty delay line.

This is a fascinating watch on so many levels, not least because of its squeaky-clean portrayal of adolescent boys. This is what teenagers were supposed to be like, but by the late 1960s they must in reality have been anything but that away from the cameras. It’s a contrast with fifteen or twenty years later, the computer is seen as an extremely important learning opportunity in sharp opposition to how 8-bit computers in the 1980s came to be seen as a corrupting influence that would rot young minds.

Of course, these youngsters are not entirely representative of British youth in 1969, because as a grammar school the Forrest was part of the top tier of the selective education system prevalent at the time. There would certainly have been no computers of any sort in the local Secondary Modern school, and probably the BBC’s portrayal of the pupils would have been completely different had there been. In 1974 the Government abolished the grammar school system to create new one-size-fits-all comprehensive schools, one of which the Forrest school duly became. Following the vagaries of educational policy it is now an Academy, and there is probably not a room within it that does not contain a computer.

So what of Nellie? Because of the film there are plenty of online references to it in 1969, but we could only find one relating to its fate. It was finally broken up in 1971, with the only surviving component being a delay line. More than one Elliott machine survives in museum collections though, and your best chance in the UK of seeing one is probably at the National Museum Of Computing, in Bletchley.

Continue reading “Retrotechtacular: Nellie The School Computer”