Hackaday Podcast 137: Maximum Power Point, Electric Car Hacking, Commodore Drive Confidential, And Tesla Handles

Hackaday editors Mike Szczys and Elliot Williams marvel at a week packed full of great hardware hacks. Do you think the engineers who built the earliest home computers knew that their work would be dissected decades later for conference talks full of people hungry to learn the secret sauce? The only thing better than the actual engineering of the Commodore floppy drive is the care with which the ultimate hardware talk unpacks it all! We look upon a couple of EV hacks — one that replaces the inverter in a Leaf and the other details the design improvements to Telsa’s self-hiding door handles. Before we get to medieval surgery and USB-C power delivery, we stop for a look at a way to take snapshots of Game Boy gameplay and an electric plane engine that looks radial but is all gears.

Take a look at the links below if you want to follow along, and as always, tell us what you think about this episode in the comments!

Direct download (52 MB)

Continue reading “Hackaday Podcast 137: Maximum Power Point, Electric Car Hacking, Commodore Drive Confidential, And Tesla Handles”

The Ultimate 1541 Talk by Michael Steil, presented at the Vintage Computer Festival West

The Ultimate Commodore 1541 Drive Talk: A Deep Dive Into Disks, Controllers, And Much More

When we think of retrocomputing, it’s very often the computers themselves that get all the glory.  There’s nothing wrong with this of course- the computers of the late 70’s and 80’s were incredible machines that were chock full of hacks in their own right. But some of the most interesting hacks of the day happened not in the computers, but rather in their peripherals. A devotee of such periphery is [Michael Steil], who was driven to compile years of research, knowledge, and hard data into The Ultimate Commodore 1541 Drive Talk which you can view below the break.

In the talk, [Michael] covers the physical disk composition and construction, the disk drives, controller hardware, and the evolution thereof. The bit-by-bit breakdown of the tracks, sectors, and header information on the disks themselves is fascinating, as is the discussion of various copy protection techniques used by vendors to prevent piracy at a time when sneakernet was in full swing.

The descent into the circuitry of the controller reveals a venerable 6502 CPU which powered many vintage computers. Further discussion divulges the secrets for getting higher performance from the 1541 drive using innovations that are as recent as 2013.

A computer historian and archaeologist, [Michael] discusses how using modified vintage hardware is sometimes enough to save your old floppy collection. He also shows how modern interfaces that read disks all the way down to the magnetic flux level can be used to reconstruct missing data.

[Michael] masterfully lays bare the complexity, engineering, and hackery that went into storing less than 200kb of data. Whether you’re a Commodore enthusiast or not, your appreciation for the 32GB USB stick collecting dust on your desk is bound to grow!

We’ve covered [Michael]’s exploits before, and you may wish to check out the Ultimate Apollo Guidance Computer Talk or the Ultimate Gameboy Talk. Do you have your own favorite retrocomputer hacks and insights to share? Be sure to let us know via the Tip Line!

Continue reading “The Ultimate Commodore 1541 Drive Talk: A Deep Dive Into Disks, Controllers, And Much More”

Original Commodore 64 ad

Love Letter To Commodore 64 Ads Takes Us Down Memory Lane

If you shop, you can get a pretty nice laptop for around $595. Maybe not the top of the line, but still pretty nice with multiple cores, a large hard drive, and a big color screen. But in the 1980s, the Commodore 64 bragged that for $595, they’d give you more than anyone else at twice the price. After all, 64K of RAM! Graphics with 16 whole colors! [Lunduke] dug up a bunch of these ads and has some thoughts on them and we really enjoyed the trip down memory lane.

If you look at other contemporary computers, they did cost more although sometimes it wasn’t a fair comparison. The TRS80 III, for example, cost $999 with 16K of RAM but it also had its own monitor — not color, though.

It is amazing to think that we’ve gone from where 16K was a reasonable amount of RAM in a personal computer to where it isn’t even worth having a flash drive with that capacity. We also can’t help but note that while computing power per dollar is through the roof now, computers aren’t actually that much more fun. We enjoyed interfacing a teletype to our 1802 ELF and working out a 300 baud modem for our TRS-80. Sure, we didn’t have Skyrim or HD movies, but we still have fun.

If you want to relive these exciting days, it is easy enough to build your own C64 with varying degrees of fidelity. It is trivial to emulate the thing on any kind of modern hardware, too.

A Commodore 64 As You Have Never Seen One Before: Game Boy Form Factor!

It’s now nearly four decades since the iconic Commodore 64 8-bit computer saw the light of day, and the vintage format shows no sign of dying. Enthusiasts have produced all kinds of new takes on the platform, but it’s fair to say that most of them have concentrated on the original style keyboard console form factors. A completely different take on a Commodore 64 comes from [UNI64] in the form of the Handheld 64, a complete Commodore 64 in a Game Boy style form factor that uses the original 64 chipset.

It achieves this improbable feat by sandwiching together several PCBs, with a tactile switch keyboard and LCD display at the top. It appears to bring the 64 ports out to headers, and the ROM cartridge port to an edge connector socket at the top of the device. A departure from the 1980s comes in using a Raspberry Pi Zero to emulate a 1541 floppy drive though.

Sadly unlike a Game Boy there’s no onboard battery, but don’t let that take away from the quality of this feat. A forum post from [3D-vice] has a set of decent-quality pictures, and even if you don’t have a handy 64 chipset lying about we’re sure you’ll still appreciate them. If home made 64s are your thing, take a look at how you can build one without Commodore parts.

Thanks [pbuyle] for the tip!

Commodore Inspired Watch Puts BASIC On Your Wrist

Ask a smart watch owner what their favorite wrist-mounted feature is, and they might say it’s having all their daily information available at a glance, or the ease with which they’re able to communicate with friends and family. If they don’t mention knocking out a few lines in their wearable BASIC interpreter, then you know you aren’t talking to [Nick Bild]. His “C64 Watch” firmware for the LILYGO T-Watch 2020 not only takes some visual inspiration from the Commodore 64, but also lets you relive those early computing glory days with a functional BASIC environment.

Originally [Nick] used a teeny tiny onscreen keyboard to tap out his BASIC programs, but finding the experience to be uncomfortably like torture, he switched over to using USB. Just plug the watch into your computer, open your favorite serial terminal, and you’ll have access to the customized version of TinyBasic Plus running on the watch. To make things  even easier, he’s looking at implementing a web-based terminal over WiFi so you don’t need to plug the watch in.

When you aren’t running BASIC you’ll be treated to a Commodore-themed watch face, complete with the classic READY. prompt. A small battery indicator is hidden up in the top-right corner, and tapping on the rainbow colored “C” will launch the menu. It’s pretty simplistic, but of course what else would you expect given the source material?

Looking ahead, [Nick] says he’d also like to implement a C64 emulator into the firmware so the watch could run original software. We’re a bit skeptical about how practical that would actually be, but we’ll reserve judgement until we see it in operation. He’s also hoping other Commodore aficionados will chime in with their own improvements and new features for the watch.

You might think that a Commodore 64 emulator on your wrist would be the most outlandish way to run your old games and software, but we’d say playing Turrican in a virtual reality microcosm of the 1980s takes the cake.

Continue reading “Commodore Inspired Watch Puts BASIC On Your Wrist”

Linus Åkesson’s ‘A Mind Is Born’ Commodore 64 Demo In Just 256 Bytes

It would be an understatement to say that the Commodore 64 demo scene is quite amazing. For those who are unaware, a ‘demo’ in this context is essentially a technological demonstration. Usually to show off particular effects or other (visual) properties that either push the limits of the platform on which it is being run, or use its hardware in a special fashion.  In the case of [Linus Åkesson]’s A Mind Is Born demo, the challenge was to do as much as possible in 256 bytes, while providing an audiovisual experience.

Although at first glance 256 bytes may sound like a lot to work with, this code has to generate the entire melody that is output via the Commodore 64’s SID audio chip, while simultaneously generating an attractive visual pattern. This is quite an undertaking, as the video capture of the result (included after the break) makes clear. The secret sauce here is to make use of the C64’s SID audio & VIC-II video chips.

Driven by a 60 Hz timer interrupt, the three voices of the SID are used to play the kick drum and bass, melody and drone respectively, creating the 64 total bars of the music using a linear-feedback shift register (LFSR). This means that the melody is in a sense randomly generated, but deterministically enough to sound pleasing to the human ear.

For the visual side, the C64 runs in Extended Character Mode, using fonts along with a background color to create interesting patterns using what is essentially a cellular automaton algorithm. While there are some visual glitches due overwriting of video data, and a race condition, these end up adding to the charm. The resulting audio track is pretty catchy too, and absolutely worthy of a listen.

Thanks for the tip, Johannes!

(That banner image?  That _is_ the whole code.)

Continue reading “Linus Åkesson’s ‘A Mind Is Born’ Commodore 64 Demo In Just 256 Bytes”

Commodore 64 Emulator In VR Delivers A Full 80s Experience

The simulated color CRT monitor looks surprisingly convincing in VR.

One way to play with vintage hardware without owning the hardware is to use an emulator, but [omni_shaNker] announced taking it to the next level by using VR to deliver a complete Commodore 64 system, in its full glory, complete with a native 80s habitat playset! This is a pretty interesting angle for simulating vintage hardware, especially since the emulator is paired with what looks like a pretty convincing CRT monitor effect in VR, not to mention a virtual 5.25″ floppy drive that makes compellingly authentic sounds.

The project is hosted on GitHub and supports a variety of VR hardware, but for owners of Oculus headsets, the application is also available on SideQuest for maximum convenience. SideQuest is essentially an off-the-books app store for managing software that is neither approved nor distributed by Facebook. Oculus is owned by Facebook, and Facebook is keen to keep a tight grip on their hardware.

As functional as the application is, there are still improvements and optimizations to be made. To address this, [omni_shaNker] put out a call for beta testers on Reddit, so if that’s up your alley be sure to get in touch. A video demonstration and overview that is chock-full of technical details is also embedded below; be sure to give it a watch to see what the project is all about.

Continue reading “Commodore 64 Emulator In VR Delivers A Full 80s Experience”