Raspberry Pi Becomes Cycle Exact Commodore Drive Emulator

The Commodore 1541 disk drive is unlike anything you’ll ever see in modern computer hardware. At launch, the 1541 cost almost as much as the Commodore 64 it was attached to ($400, or about $1040 at today’s value). This drive had a CPU, and had its own built-in operating system. Of course, anyone using a Commodore 64 now doesn’t deal with this drive these days — you can buy an SD2IEC for twenty dollars and load all your C64 games off an SD card. If you’re cheap, there’s always the tape drive interface and a ten dollar Apple Lightning to 3.5mm headphone adapter.

But the SD2IEC isn’t compatible with everything, and hacking something together using the tape drive doesn’t have the panache required of serious Commodoring. What’s really needed is a cycle-accurate emulation of the 1541 disk drive, emulating the 6502 CPU and the two 6522 VIAs in this ancient disk drive. The Raspberry Pi comes to the rescue. [Steve White] created the Pi1541, an emulation of the Commodore 1541 disk drive that runs on the Raspberry Pi 3B.

Pi1541 is a complete emulation of the 6502 and two 6522s found inside the Commodore 1541 disk drive. It runs the same code the disk drive does, and supports all the fast loaders, demos, and copy protected original disk images that can be used with an original drive.

The only hardware required to turn a Raspberry Pi 3 into a 1541 are a few transistors in the form of a bi-directional logic level shifter, and a plug for a six-pin serial port cable. This can easily be constructed out of some Sparkfun, Adafruit, Amazon, or AliExpress parts, although we suspect anyone could whip up a Raspberry Pi hat with the same circuit in under an hour. The binaries necessary to run Pi1541 on the Raspberry Pi are available on [Steve]’s website, and he’ll be releasing the source soon.

This is a great project for the retrocomputing scene, although there is one slight drawback. Pi1541 requires a Raspberry Pi 3, and doesn’t work on the Raspberry Pi Zero. That would be an amazing bit of software, as ten dollars in parts could serve as a complete emulation of a Commodore disk drive. That said, you’re still likely to be under $50 in parts and you’re not going to find a better drive emulator around.

Continue reading “Raspberry Pi Becomes Cycle Exact Commodore Drive Emulator”

Smartwatch Fights Anxiety With Action

In our fast-paced modern world, it’s no wonder that so many suffer from anxiety and panic attacks. There are several time-worn techniques for dealing with the symptoms of these attacks. But as anyone who’s ever suffered such an attack can tell you, it can be difficult to sense one coming on until it’s too late. By then, rational thinking has been supplanted by intrusive thoughts. For this year’s Hackaday Prize, [Austin Marandos] is doing his part by using technology to help us check ourselves before we wreck ourselves with worry.

Similar smartwatches exist to detect oncoming attacks, but they don’t do anything to combat them. Minder is like having a friend strapped to your wrist that’s never absorbed in their own problems. It wants to help no matter what it takes, which is why it features multiple techniques for getting back to a state of calm.

Minder’s brain is the bite-size Qduino Mini, which is great for a crowded wearable because of its built-in charging circuit. It uses heart rate and temperature sensors to determine the onset of a panic attack, and a vibration motor to alert the user. The motor also plays a part in the relaxation techniques to keep the user focused and in control. Use the upcoming break to relax and check out the video.

If your anxiety stems from feelings of inadequacy, it might be Imposter Syndrome.

Continue reading “Smartwatch Fights Anxiety With Action”

Printed It: Toolbag Essentials

While complex devices assembled from 3D printed components are certainly impressive, it’s the simple prints that have always held the most appeal to me personally. Being able to pick an object up off the bed of your printer and immediately put it to use with little to no additional work is about as close as we can get to Star Trek style replicators. It’s a great demonstration to show off the utility of your 3D printer, but more importantly, having immediate access to some of these tools and gadgets might get you out of a jam one day.

With that in mind, I thought we’d do things a little differently for this installment of Printed It. Rather than focusing on a single 3D model, we’ll be taking a look at a handful of prints which you can put to practical work immediately. I started by selecting models based on the idea that they should be useful to the average electronic hobbyist in some way or another, and relatively quick to print. Each one was then printed and evaluated to determine its real-world utility. Not all made the grade.

Each model presented here is well designed, easy to print, and most critically, legitimately useful. I can confidently say that each one has entered into my standard “bag of tricks” in some capacity, and I’m willing to bet a few will find their way into yours as well.

Continue reading “Printed It: Toolbag Essentials”

Double The Resolution, From An Arduino ADC

Analog-to-digital converters, or ADCs, are somewhat monolithic devices for most users, a black box that you ask nicely for the value on its input, and receive a number in return. For most readers, they will be built into whatever microcontroller is their platform of choice, and their resolution will be immutable, set by whatever circuitry is included upon the die. There are a few tricks that can be employed to get a bit more from a stock ADC though, and [Neris] has taken a look at a couple of them.

The first circuit doubles the resolution of an ADC, in this case, that of the Atmel chip in an Arduino, by converting its output from an integer to a signed integer. It performs this task with a precision rectifier, rectifying around a zero-crossing point half-way through the range of the analog value to be read and supplying a sign bit to the Arduino. The Arduino measures the rectified analog value to an integer, and applies the appropriate sign from the supplied bit value.

The second circuit takes a variation on the same technique but with two ADCs instead of one. A pair of PIC chips are used with their voltage references stacked one above the other, by taking both readings in combination a result with double the resolution can be derived.

You might ask why bother with these techniques. After all, there are plenty of higher-resolution ADCs on the market. But they’re useful techniques to know, should you ever need to extract the proverbial quart from a pint pot.

If ADCs are a mystery to you, you’re in luck. [Bil Herd] gave us a comprehensive introduction to the subject.

The Aluminum Wiring Fiasco

Someone who decides to build a house faces a daunting task. It’s hard enough to act as the general contractor for someone else, but when you decide to build your own house, as my parents did in the early 1970s, it’s even tougher. There are a million decisions to make in an information-poor and rapidly changing environment, and one wrong step can literally cast in stone something you’ll have to live with forever. Add in the shoestring budget that my folks had to work with, and it’s a wonder they were able to succeed as well as they did.

It was a close call in a few spots, though. I can recall my dad agonizing over the wiring for the house. It would have been far cheaper to go with aluminum wiring, with the price of copper wire having recently skyrocketed. He bit the bullet and had the electrician install copper instead, which ended up being a wise choice, as houses that had succumbed to the siren call of cheaper wiring would start burning down all over the United States soon thereafter.

What happened in the late 60s and early 70s in the residential and commercial electrical trades was an expensive and in some cases tragic lesson in failure engineering. Let’s take a look at how it all happened.

Continue reading “The Aluminum Wiring Fiasco”

3D Printed Bicycle Tire Not Full Of Hot Air

To show off its new TPU filament called PRO FLEX, BigRep GmbH posted a video showing a 3D printed bike tire that uses a flexible plastic structure instead of air. The video shows them driving the bike around Berlin.

According to the company, the filament will allow the creation of a large number of industrial objects not readily built with other types of plastic. Their release claims the material has high temperature resistance, low temperature impact resistance, and is highly durable. Applications include gear knobs, door handles, skateboard wheels, and other flexible parts that need to be durable.

The material has a Shore 98 A rating. By way of comparison, a shoe heel is typically about 80 on the same scale and an automobile tire is usually around 70 or so. The hard rubber wheels you find on shopping carts are about the same hardness rating as PRO FLEX.

Obviously, a bicycle tire is going to take a big printer. BigRep is the company that makes the BigRep One which has a large build volume. Even with a wide diameter tip, though, be prepared to wait. One of their case studies is entitled, “Large Architectural Model 3D Printed in Only 11 Days.” Large, in this case, is a 1:50 scale model of a villa. Not tiny, but still.

We’ve looked at other large printers in the past including 3DMonstr, and the Gigimaker. Of course, the latest trend is printers with a practically infinite build volume.

Continue reading “3D Printed Bicycle Tire Not Full Of Hot Air”

AH-1 Cobra Tap Handle Pours On The Fun

Ayn Rand said, “If it’s worth doing, it’s worth overdoing.” As far as we’re concerned those are words to live by, and something that’s exemplified by most of the posts on this site. She also said some really suspect stuff about the disabled and Native Americans and reality, but you’ve got to take the good with the bad and all that.

We don’t know how much Rand [Will Weber] has read, but we’re willing to bet he’d agree about overdoing it. He recently documented a very cool 3D printed tap handle that’s designed to look like the B8 flight stick from an AH-1 Cobra helicopter. But this is no static piece of plastic, in the video after the break, he demonstrates how each button on the flight stick triggers a different weapons sound effect.

The 3D print is separated up into a number of sections so that the stick can be assembled in pieces. Not only does this make it an easier print, it also allows for the installation of the electronics.

For the Arduino aficionados out there, we have some bad news. Rather than putting in a general purpose microcontroller, [Will] went the easy route and used an Adafruit Audio FX Mini Sound Board. These boards have their own onboard storage for the audio files and don’t require a microcontroller to function. It makes it super easy to add sound effects or even music to your projects; just pair it with a power supply, a couple of buttons, and a speaker.

The finish work on the printed parts looks excellent. We can only imagine how much fun [Will] had sanding inside all the little nooks and crannies to get such a smooth final result. While some might complain about the idea of a tap handle needing to be recharged occasionally, we think the satisfaction of firing off a few rockets every time you grab a glass is more than worth it.

While this isn’t the first unique tap handle we’ve covered here at Hackaday, it’s certainly the most flight-ready. Continue reading “AH-1 Cobra Tap Handle Pours On The Fun”