Faster Computers Lead To Slower Experiences?

Ever get that funny feeling that things aren’t quite what they used to be? Not in the way that a new washing machine has more plastic parts than one 40 years its senior. More like “my laptop can churn through hundreds of gigaflops, but when I scroll it doesn’t feel great.” That perception of smoothness might be based on a couple factors, including system latency. A couple years ago [danluu] had that feeling too and measured the latency of “devices I’ve run into in the past few months” (based on this list, he lives a more interesting life than we do). It turns out his hunch was objectively correct. What he wrote was a wonderful deep dive into how and why a wide variety of devices work and the hardware and software contributors to latency.

Let’s be clear about what “latency” means in this context. [danluu] was checking the time between a user input and some response on screen. For desktop systems he measured a keystroke, for mobile devices scrolling a browser. If you’re here on Hackaday (or maybe at a Vintage Computer Festival) the cause of the apparent contradiction at the top of the charts might be obvious.

Q: Why are some older systems faster than devices built decades later? A: The older systems just didn’t do much! Instead of complex multi-tasking operating systems doing hundreds of things at once, the CPU’s entire attention was bent on whatever user process was running. There are obvious practical drawbacks here but it certainly reduces context switching!

In some sense this complexity that [danluu] describes is at the core of how we solve problems with programming. Writing code is all about abstraction. While it’s true that any program could be written directly in machine code and customized to an individual machine’s hardware configuration, it would be pretty inconvenient for both developer and user. So over time layers of sugar have been added on top to hide raw hardware behind nicer interfaces written in higher-level programming languages.

And instead of writing every program to target exact hardware configurations there is a kernel to handle the lowest layers, then layers adding hotplug systems, power management, pluggable module and driver infrastructure, and more. When considering solutions to a programming problem the approach is always recursive: you can solve the problem, or add a layer of abstraction and reframe it. Enough layers of the latter makes the former trivial. But it’s abstractions all the way down.

[danluu]’s observation is that we’re just now starting to curve back around and hit low latency again, but this time by brute force! Modern solutions to latency largely look like increasingly exotic display technologies and complex optimizations which reach from UI draw functions all the way down to the silicon, not removing software and system infrastructure. It turns out the benefits of software complexity in terms of user experience and ease of development are worth it most of the time.

For a very tangible illustration of latency as applied to touchscreen devices, check out the Microsoft Research video after the break (linked to in [danluu]’s piece).

Continue reading “Faster Computers Lead To Slower Experiences?”

Wonderful IPad Mini 2 Home Made Spiral Notebook Case

Part of the joy of hacking is the joy of discovery, of seeing how things go right as well as wrong. That’s one cool thing about this iPad Mini 2 case build by [Eric Strebel]: in the video, he details the things that went wrong as well as those that went right. For instance, he used glue on one version that melted the foam core he built the iPad holder from. The end product is wonderful, though. It combines an iPad Mini 2 case and a spiral-bound notebook so you can use both digital and paper mediums, with the iPad cleverly hidden behind a panel that both protects it and turns the screen off when not in use.

Continue reading “Wonderful IPad Mini 2 Home Made Spiral Notebook Case”

IPad, Not Flux Capacitor, Brings DeLorean Back To The Future

Add a flux capacitor and a Mr. Fusion to a DeLorean and it becomes a time machine. But without those, a DeLorean is just a car. A 35-year old car at that, and thus lacking even the most basic modern amenities. No GPS, no Bluetooth — not even remote locks for the gullwing doors!

To fix that, [TheKingofDub] decided to deck his DeLorean out with an iPad dash computer that upgrades the cockpit experience, and we have to say we’re impressed by the results. Luckily, the space occupied by the original stereo and dash vents in the center console is the perfect size for an iPad mini, even with the Lightning cable and audio extension cable attached. A Bluetooth relay module is used to interface to the doors, windows, trunk, garage door remote, and outdoor temperature sensor. A WiFi backup camera frames the rear license plate. Custom software ties everything together with OEM-looking icons and a big GPS speedometer. The build looks great, adds functionality, and should make road trips a little easier.

When [TheKingofDub] finally gets sick of people complaining about where the BTTF guts are, maybe he can add a flux capacitor and time circuits.

[via r/electronics]

Bring Home A Classic Synth With The DIY Fairlight CMI

[Davearneson] built a modern version of a classic synthesizer with his DIY Fairlight CMI. If there were a hall of fame for electronic instruments, the Fairlight CMI would be on it. An early sampling synth with a built-in sequencer, the Fairlight was a game changer. Everyone from A-ha to Hans Zimmer has used one. The striking thing about the Fairlight was the user interface. It used a light pen to select entries from text menus and to interact with the audio waveform.

The original Fairlight units sold for £18,000 and up, and this was in 1979. Surviving units are well outside the price range of the average musician. There is an alternative though – [Peter Vogel] has released an iOS app which emulates the Fairlight.

[Davearneson] had an old iPad 2 lying around. Too slow to run many of the latest apps, but just fast enough to run the Fairlight app. An iPad doesn’t exactly look like a classic instrument though. So he broke out the tools and created a case that looked the part.

The front of the case is made of framing mat board. The rest of the shell is wood. [Davearneson] used Plasti-Dip spray to replicate the texture of 1970’s plastics. The audio interface is a Griffon unit, which provides audio and MIDI connections. [Davearneson] extended the connections from the Griffon to the rear of the case, making for a clean interface.

The iPad doesn’t exactly support a light pen, so a rubber tipped stylus on a coil cord takes it place. The result is a device that looks and works like a Fairlight – but doesn’t need a steady diet of 8″ floppy discs to operate.

Interested in classic digital synthesizers that are a bit more budget friendly? Check out Al Williams’ article on the SID chip, or this 3D printed synth based upon the 4046 PLL chip.

Reverse Engineering Apple’s Lightning Connector

Introduced with the iPhone 5 nearly two and a half years ago, Apple’s Lightning connector has stymied the incredible homebrew electronics scene that was previously accustomed to the larger, older, better documented, and more open 30-pin connector. Now, finally, the protocols inside the Apple Lightning connector have been broken. We’re still a ways off from a Lightning breakout board, but this is the first proof that a serial console can be obtained through a Lightning connector. That’s the first step to totally owning an iDevice, and this is how all those exploits will start.

[Ramtin Amin] began the teardown of the Lightning connector began as most reverse engineering tasks should – looking at the patents, finding a source for the connectors, and any other products that use similar hardware. [Ramtin] found a Lightning to Serial converter powered by an STM32 microcontroller. Disassembling the firmware and looking at the output on a logic analyzer, [Ramtin] figured out part of the protocol, most of the wiring, and after some research, schematics for how an until-now unidentified chip in Lightning-enabled iProducts was wired.

The chip in question is colloquially known as the Tristar, and more accurately as a CBTL1608A1. During the teardown craze of the iPhone 5 launch, this chip was frequently identified as a DisplayPort Multiplexer. It is a mux, but not for DisplayPort – it’s only to connect the accessory (Lightning) UART, debug UART, baseband, SoC, and JTAG. This is the key to the castle, and being able to get through this chip means we can now own our iDevices.

The chip is an incredibly small BGA affair that [Ramtin] desoldered, reflowed onto a breakout board, and connected to an STM32 Discovery board. Using the techniques he used with other Lightning-enabled hardware, [Ramtin] was able to connect his iPhone and ever so slightly peek his head into the inner workings of his device.

It’s not complete control of an iDevice yet, but this is how all those future exploits will start. [Ramtin] uploaded a short video as a proof of concept, you can check that out below.

Continue reading “Reverse Engineering Apple’s Lightning Connector”

IPad Finds New Home In Mac Classic

Who of us out there don’t have a spare iPad and Mac Classic kicking around? If you are one of those lucky folks then this project is for you. [site hirac] has made a pretty neat stand for an iPad made out of a Mac Classic case (translated). It just happens that the screens of the Mac Classic and iPad are pretty darn close in size. Although the screen size is similar, the resolution is not. The original Macintosh Classic had a black and white screen with a resolution of 512 × 342 pixels. The iPad’s resolution of 1024 x 768 pixels has 450% more pixels than the original Mac.

To get the iPad to fit correctly, the case had to be significantly modified. First, all of the internals of the Mac were removed, leaving just an empty case. The front panel of the case was removed and a slot on the left side is made. This slot helps to allow the iPad to slide into the Mac. On the inside of the front panel quite a few of injection molded supports were trimmed away for clearance. A slot was also cut in the left side of the rear case half. When the case is re-assembled, the slots in the front and rear halves provide a large enough hole for the iPad to fit through. Oddly, there are some plastic features on the front panel that are at just the right height to hold the iPad in the ideal location to line up with the screen cutout in the case.

Continue reading “IPad Finds New Home In Mac Classic”

Customized IPad LCD Screen Clips Onto Macbook As A Slick Second Screen

Macbook with iPad second screen

Last year, [Ben] found a good deal on iPad 3 LCD screens. He couldn’t resist buying a couple to play around with. It didn’t take him long to figure out that it’s actually quite simple to use these LCD screens with any computer. This is because the LCD panels have built-in Apple Display port interfaces. This means that you can add your own Display Port connector to the end of the LCD’s ribbon connector and just plug it into a computer. You’ll also need to hook up a back light driver, which [Ben] was able to find pre-made for around $35.

The hack doesn’t stop there, though. [Ben] wanted to have a nice, finished product. He laser cut an acrylic bezel for the LCD screen that was a perfect fit. He then milled out a space for the LCD to fit into. The acrylic was thick enough to accommodate the screen and all of the cables. To cover up the back, [Ben] chose to use the side panel of a PowerMac G5 computer case. He chose this mainly for aesthetics. He just couldn’t resist the nice brushed aluminum look with the giant Apple logo. It would be a perfect match to his Macbook.

Once the LCD panel was looking nice, [Ben] still needed a way to securely fasten it in the right place. He knew he’d want it next to his Macbook, so why not attach it directly to the Macbook? [Ben] got to work with his 3D printer and printed up some small plastic clips. The clips are glued to the iPad screen’s acrylic bezel and can be easily clipped on and off of the Macbook screen in seconds. This way his laptop is still portable, but he has the extra screen real estate when he needs it. [Ben] also printed up a plastic clip that turns the iPad’s USB power connector and the Display Port connector into one single connector. While this is obviously not required, it does effectively turn two separate plugs into one and makes the whole project that much more slick.