Raspberry Pi Gets PATA/IDE Drive Via GPIO Header

By and large, the Raspberry Pi is a computer that eschews legacy interfaces. Primarily relying on SD cards for storage and USB ports for further expansion, magnetic hard drives are a rare sight. However, [Manawyrm] decided that some 40-pin goodness was in order, and set to making a PATA IDE adapter for the platform.

To achieve the task of interfacing now-vintage IDE devices with the Raspberry Pi, [Manawyrm] elected to use the single board computer’s GPIO pins to get the job done. 23 pins are required, with 16 used for the data bus, with the rest dedicated to address lines, strobes, and other features.

The adapter is no speed demon, netting 800 KiB/s on reads and 500 KiB/s on writes with a Raspberry Pi 4. The main bottleneck comes from relying on libgpiod, which [Manawyrm] readily admits is designed for general IO tasks, not data transfers. Despite this, it’s still fast enough to play an audio CD from an IDE CD-ROM drive without skipping. A kernel build is required, however, as Raspberry Pis are unsurprisingly not configured to use ATA disks by default.

Obviously, more serious applications would substitute a dedicated USB hard disk adapter or give the Raspberry Pi a PCI-express (PCIe) card for sata drives instead, but that doesn’t discount the fun inherent in the build. While it may be slow, it shows that talking to PATA hard disks is actually quite straightforward when you understand the basics. Of course, if you want to do the opposite, and have your Raspberry Pi emulate a PATA disk, that’s possible too. Video after the break.

Continue reading “Raspberry Pi Gets PATA/IDE Drive Via GPIO Header”

Recreating Early Apple Mice For The Modern Era

At a time when practical graphical user interfaces were only just becoming a reality on desktop computers, Apple took a leap of faith and released one of the first commercially available mice back in 1983. It was criticized as being little more than a toy back then, but we all know how that particular story ends.

While the Apple G5431 isn’t that first mouse, it’s not too far removed. So much so that [Stephen Arsenault] believed it was worthy of historic preservation. Whether you want to print out a new case to replace a damaged original or try your hand at updating the classic design with modern electronics, his CAD model of this early computer peripheral is available under the Creative Commons license for anyone who wants it.

The model is exceptionally well detailed.

[Stephen] tells us that he was inspired to take on this project after he saw new manufactured cases for the G5431 popping up online, including a variant made out of translucent plastic. Realizing that a product from 1986 is old enough that Apple (probably) isn’t worried about people cloning it, he set out to produce this definitive digital version of the original case components for community use.

With these 3D models available, [Stephen] hopes that others will be inspired to try and modify the iconic design of the G5431. Perhaps by creating a Bluetooth version, or adding the ability to right-click. Considering we’ve already seen custom PCBs for mice, it’s hardly a stretch. We’d love to see somebody take him up on the offer, but even if not, the digital preservation of computer history is always welcome.

DIY HID, OMG!

William English, one of the creators of the mouse back in the 60s, passed away last week. And that got me thinking of how amazing it would have been to be in the place that was inventing what would become modern computing interfaces. What a special time! Of course, they probably had no idea.

From here, it looks like the mouse changed everything, but you have to realize that they were working in a world with light-pens, where you could actually draw on the screen. In contrast, the mouse seems positively non-futuristic. They must have known they’d come up with an improvement over the status quo, but did they know they’d created a revolution?

So where has the revolutionary spirit in DIY human interface devices gone? I’d claim it’s still alive and kicking. Indeed our own Kristina Panos has a series called “Inputs of Interest” and we’ve seen a ton of DIY keyboards of late. Then there are many varieties of dial inputs. I used to have a dedicated scroll wheel made out of a hard-drive platter, and when I was reading lots of PDFs on-screen, I have to say it earned its desk-space. Heck, we’ve even seen people make their own mouse.

But what I love about the story of the development of the mouse is that they asked the question “what is the best way to locate a point on a screen” and tried to answer it. Half of their success is probably in simply asking the right question, and the other half in prototyping something half-workable. My gut says that we don’t have inputs figured out 100% on mobile yet. This sounds like a job for Hackaday. What’s the next big human-interface design need? And have you got any crazy ideas to solve it?

Hackaday Remoticon

And this week, we announced the Hackaday Remoticon, our shelter-in-place version of the Supercon. It’s going to take place in November as usual, but online instead of IRL.

The good news? It’s going to be chock full of workshops, all streamed online and recorded for posterity. And for that we need your proposals. If you’d like to teach a group of distributed hackers learning your favorite techniques and tricks, this is your chance!

The bad news is of course that we won’t get to see you all in person. That’s going to make the 2021 Hackaday Supercon seem even more super.

Tired Of Regular Keebs? Might Be Time To Split

No matter how much geek cred your old vintage keyboard pulls, it’s not worth suffering through wrist pain or any other discomfort while using it. Especially now, when there are so many points of entry into the rabbit hole world of DIY mechanical keebs.

Once the wrist pain started, [Ben Congdon] switched from a big old Apple keeb to a Kinesis Freestyle — it’s basically a regular keyboard, but in two halves that can be placed far enough apart that [Ben]’s wrists are straight while typing. Comfortable as that split rectangle may be, it’s just not that cool looking, and he was ready to build something new, as long as it had enough keys.

[Ben] settled on building a Keebio Sinc, a new board which comes mostly soldered already and supports a handful of layouts. In the spirit of leaving doors open, [Ben] soldered in hot-swap sockets instead of permanently attaching the key switches to the PCB. This way, those Gateron reds can be easily switched out for something else, for instance should [Ben] want to try a little tactility down the road.

We think the Sinc is a cool offering precisely because it is such a full keyboard. Not everyone is ready to jump into 60% layouts or thumb clusters, and it’s nice to have options. This is entry-level ergo and DIY all at once. What’s not to like? Even if you want to go for something small and ortholinear, there are options. Here’s a build we saw recently that starts with a breakaway PCB that lets you choose between small and smaller.

Via reddit

A Tongue Operated Human Machine Interface

For interfacing with machines, most of us use our hands and fingers. When you don’t have use of your hands (permanently or temporarily), there are limited alternatives. [Dorothee Clasen] has added one more option, [In]Brace, which is basically a small slide switch that you can operate with your tongue.

[In]Brace consists of a custom moulded retainer for the roof of your mouth, on which is a small ball with an embedded magnet, that slides long wire tracks. Above the track is a set of three magnetic sensors, that can detect the position of the ball. On the prototype, a wire from the three sensors run out of the corner of the users mouth, to a wireless microcontroller (Which looks to us like a ESP8266) hooked behind the user’s ear. In a final product, it would obviously be preferable if everything were sealed in the retainer. We think there is even more potential if one of the many 3-axis hall effect sensors are used, with a small joystick of rolling ball. The device could be used by disabled persons, for physical therapy, or just for cases where a person’s hands are otherwise occupied. [Dorothy] created a simple demonstration, where she plays Pong, or Tong in this case, using only the [In]Brace. Hygiene and making sure that it doesn’t somehow become a choke hazard will be very important if this ever became a product, but we think there is some potential.

[Kristina Panos] did a very interesting deep dive into the tongue as an HMI device a while ago, so this isn’t a new idea, but the actual implementations differ quite a lot. Apparently it’s also possible to use your ear muscles as an interface!

Thanks for the tip [Itay]!

Unbricking A $2,000 Exercise Bike With A Raspberry Pi Zero And Bluetooth Hacks

Really, how did we get the point in this world where an exercise bike can be bricked? Such was the pickle that [ptx2] was in when their $2,000 bike by Flywheel Home Sports was left without the essential feature of participating in virtual rides after Peloton bought the company. The solution? Reverse engineer the bike to get it working with another online cycling simulator.

Sniffing Flywheel Bluetotooth packets with Bluetility

We have to admit we weren’t aware of the array of choices that the virtual biking markets offers. [ptx2] went with Zwift, which like most of these platforms, lets you pilot a smart bike through virtual landscapes along with the avatars of hundreds of other virtual riders. A little Bluetooth snooping with Bluetility let [ptx2] identify the bytes in the Flywheel bike’s packets encoding both the rider’s cadence and the power exerted, which Zwift would need, along with the current resistance setting of the magnetic brake.

Integration into Zwift was a matter of emulating one of the smart bikes already supported by the program. This required some hacking on the Cycling Power Service, a Bluetooth service that Zwift uses to talk to the bike. The final configuration has a Raspberry Pi Zero W between the Flywheel bike and the Zwift app, and has logged about 2,000 miles of daily use. It still needs a motor to control the resistance along the virtual hills and valleys, but that’s a job for another day.

Hats off to [ptx2] for salvaging a $2,000 bike for the price of a Pi and some quality hacking time, and for sticking it to The Man a bit. We have to say that most bike hacks we see around here have to do with making less work for the rider, not more. This project was a refreshing change.

[Featured images: Zwift, Flywheel Sports]

[via r/gadgets]

Vintage Aircraft Controls Turned USB Button Box

The Gables Engineering G-2789 audio selector panels aren’t good for much outside of the aircraft they were installed in, that is, until [MelkorsGreatestHits] replaced most of the internals with a Teensy 3.2. Now they are multi-functional USB input devices for…well, whatever it is you’d do with a bunch of toggle switches and momentary push buttons hanging off your computer.

Tracing wires from the panel switches.

With the Teensy going its best impression of a USB game controller, the host operating system has access to seven momentary buttons, twelve toggles, and one rotary axis for the volume knob.

Right now [MelkorsGreatestHits] says the code is set up so the computer sees a button press on each state change; in other words, the button assigned to the toggle switch will get “pressed” once when it goes up and again when it’s flicked back down. But of course that could be modified depending on what sort of software you wanted to interface the device with.

As we’ve seen with other pieces of vintage aircraft instrumentation, lighting on the G-2789 was provided by a series of incandescent bulbs that shine through the opaque front panel material. [MelkorsGreatestHits] replaced those lamps with white LEDs, but unfortunately the resulting light was a bit too harsh. As a quick fix, the LEDs received a few coats of yellow and orange paint until the light was more of an amber color. Using RGB LEDs would have been a nice touch, but you work with what you’ve got.

This isn’t the first time that [MelkorsGreatestHits] has turned an old aircraft cockpit module into a USB input device, and we’re certainly interested in seeing what the next project will look like. Though we’re perhaps more interested in finding out where all all these old school airplane parts are coming from…