Laptop With Raspberry Pi Inside Learns To Speak Battery

Early in November we took a look at a one of the best Raspberry Pi laptops we had ever seen, using the shell of a Sony VAIO. Laptops used to be hulking beasts, and that played into [Frank Adams’] hands as he got rid of the motherboard and had enough space to replace it with a Raspberry Pi and a few other support boards. This took advantage of the laptop’s screen, keyboard, LEDs, etc. But what’s a laptop without battery power? [Frank] hadn’t cracked that nut until now.

Inside of Sony VAIO laptop turned Raspberry Pi computer
VAIO battery and charging PCB seen to lower left

Adding battery power is trickier that it sounds, but [Frank] managed to get the Raspberry Pi to talk to the original Sony VAIO internal battery. His work on the project is shared, but this part of the story is best found starting on page 29 of his PDF project details.

Using the original battery is a good move since it’s designed to fit and has a charger ready to interface with the port on the laptop case. But these batteries have logic inside them, and there’s the rub. Communications use the 2-wire System Management Bus (SMBus) which is well documented. But the when trying to use the Pi’s I2C [Frank] couldn’t figure out to send a repeated start command.

He ended up writing his own C program that bit-bangs the communications he needed and now has the Pi speaking to the battery and listening to what it hears coming back. Reading through his description of this is fun since he includes his observations from a logic analyzer captures. He suspects an occasional bad read is due to Linux interrupting code execution. He watches for and catches these bad reads in software and can now reliably read all the battery vitals.

The hack leaves him with a system that functions in much the same way the original computer did: plug it in and it charges. He did add some hardware that lets him take a voltage reading from the battery using an ADC on the Teensy that was already present to control the keyboard and case LEDs. This adds a small constant draw on the battery, but for now he doesn’t leave the battery connected when the laptop is not in use.

If you’d like to read our original coverage of this laptop, here it is.

Use A Mini PCI-e 3G Card With USB Instead

Back the late 2000s, when netbooks were the latest craze, some models would come with an inbuilt 3G modem for Internet access. At the time, proper mobile Internet was a hip cool thing too — miles ahead of the false prophet known as WAP. These modems would often slot into a Mini PCI-e slot in the netbook motherboard. [delokaver] figured out how to use these 3G cards over USB instead.

It’s actually a fairly straightforward hack. The Mini PCI-e standard has a couple of pins dedicated to USB data lines, which the modem in question uses for communicating with the host computer. Unfortunately it’s not quite as simple as just soldering on a four-wire USB cable. The modem relies on the 3.3V power from the Mini PCI-e slot instead of the 5V from USB. No problem, just get a low-dropout 3.3V regulator and run that off the USB port. Then, it’s a simple enough matter of figuring out which pins are used to talk to the SIM card, and soldering them up to a SIM adapter, or directly to the card itself if you’re so inclined. The guide covers a single model of 3G modem but it’s likely the vast majority of these use a very similar setup, so don’t be afraid to have a go yourself.

Overall Mini PCI-e is a fairly unloved interface, but we’ve seen the reverse of this hack before, a Mini PCI-e to USB adapter used to add a 12-axis sensor to a laptop.

[Thanks to Itay for the tip!]

Magsafe 1 To Magsafe 2 The Cheap Way

[Klakinoumi] wanted to use their Magsafe 1 charger from 2007 with their newer Macbook Pro Retina from 2012 — but it had a Magsafe 2 port. There were a few options on the table (buy an adapter, buy a new charger, cry) but those wouldn’t do. [Klakinoumi] went with the brute force option of grinding a Magsafe 1 charger to fit Magsafe 2.

Based on the existence of passive adapters that allow Magsafe 1 chargers to work with newer laptops, we’d assume that the older chargers are probably electrically similar to the newer models. That said, it’s not our gear and we’d definitely be checking first.

With that out of the way, it’s a simple enough modification — grind away the Magsafe 1’s magnet until it fits into a Magsafe 2 port. It really is that easy. The spring-loaded pins all seem to line up with the newer port’s pads. [Klakinoumi] reports it worked successfully in their tests with 2012, 2014 and 2015 Macbooks but that it should be attempted at your own risk — good advice, as laptops ain’t cheap.

When doing this mod, consider taking care not to overheat the connector during grinding. You could both melt plastic parts of the connector, or ruin the magnet by heating it past its Curie point.

Interested in the protocol Magsafe speaks over those little golden pins? Find out here.

Q Has Nothing On Naomi Wu

We’re not so much fans of James Bond as we are of Q, the hacker who supplies him with such wonderful things. There is a challenger to Q’s crown, [Naomi Wu] — code name [SexyCyborg] — built an epic gadget called the Pi Palette which hides a Linux laptop inside of a cosmetics case.

You can see the covert mode of the Pi Palette below. It resembles a clamshell cosmetics case with the makeup and applicator in the base and a mirror on the underside of the flip-up lid. The mirror hides an LCD screen in the portrait orientation, as well as a Raspberry Pi 3 running Kali Linux.

The base of the case includes a portable battery beneath the wireless keyboard/touchpad — both of which are revealed when the cosmetics tray is removed. An inductive charger is connected to the battery and [Naomi] built a base station which the Pi Palette sits in for wireless charging.

She envisions this as a covert penetration testing. For that, the Pi Palette needs the ability to put the WiFi dongle into promiscuous mode. She wired in a dual dip-switch package and really went the extra mile to design it into the case. The fit and finish of that switch is just one tiny detail the illustrates the care taken with the entire project. With such a beautiful final project it’s no wonder she took to the streets to show it off. Check that out, as well as the build process, in the video after the break.

Continue reading “Q Has Nothing On Naomi Wu”

An Ugly But Functional Pi Laptop

It’s got a face only its mother could love. Or a Hackaday writer, since this ugly e-waste laptop proudly sports a Jolly Wrencher on its back.

All joking aside, this is a great example of doing what you can with what you’ve got. [starhawk] is limited on funds, and a regular laptop is beyond his means. But being light in the wallet is no reason to go without when you can scrounge parts from friends and family. The base of the laptop is a mini USB keyboard, with the top formed mainly by a 7″ HDMI panel. The back of the display is adorned with a Raspberry Pi 3, a USB hub, a little sound dongle, and the aforementioned Jolly Wrencher. The whole thing is powered by a cast-off power supply brick — no exploding batteries to worry about!

Other Pi-based laptops we’ve covered may be sleeker, but we’ve got to admit that [starhawk]’s keyboard is probably the better choice for working on the next great American novel. And a Linux laptop for next to nothing? That’s a win in our book.

Powering A Laptop With Supercapacitors

What do you do when you find a small horde of supercapacitors? The correct answer is a spectrum of dangerous devices ranging from gauss guns to quarter shrinkers. [Rinoa] had a less destructive idea: she’s replaced the battery in a laptop with a bank of supercapacitors.

The supercaps in question are 2.7 Volt, 500 Farad caps arranged in banks six for a total of about 3 watt-hours in each bank. The laptop used for this experiment is an IBM Thinkpad from around 1998. The stock battery in this laptop is sufficiently less advanced than today’s laptop batteries. Instead of using a microcontroller and SMBus in the battery, the only connections between the battery and laptop are power, ground, and connections for a thermocouple. This is standard for laptops of the mid-90s, and common in low-end laptops of the early 2000s. It also makes hacking these batteries very easy as there’s no associated microprocessors to futz around with.

With all the capacitor banks charged, the laptop works. It should – there isn’t a lot of intelligence in this battery. With one bank of six supercaps, [Rinoa] is getting a few minutes of power on her laptop. With a stack of supercaps that take up about the same volume as this already think Thickpad, [Rinoa] can play a few turns of her favorite late-90s turn-based strategy game. It’s not much, but it does work.

Check out [Rinoa]’s video below.

Continue reading “Powering A Laptop With Supercapacitors”

Olimex Announces Their Open Source Laptop

A few months ago at the Hackaday | Belgrade conference, [Tsvetan Usunov], the brains behind Olimex, gave a talk on a project he’s been working on. He’s creating an Open Source Hacker’s Laptop. The impetus for this project came to [Tsvetan] after looking at how many laptops he’s thrown away over the years. Battery capacity degrades, keyboards have a fight with coffee, and manufacturers seem to purposely make laptops hard to repair.

Now, this do it yourself, Open Source Hardware and hacker-friendly laptop is complete. The Olimex TERES I laptop has been built, plastic has been injected into molds, and all the mechanical and electronic CAD files are up on GitHub. This Open Source laptop is done, but you can’t buy it quite yet; for that, we’ll have to wait until Olimex comes back from FOSDEM.

The design of this laptop is completely Open Source. Usually when we hear this phrase, the Open Source part only means the electronics and firmware. Yes, there are exceptions, but the STL files for the PiTop, the ‘3D printable Raspberry Pi laptop’ are not available, rendering the ‘3D printable’ part of PiTop’s marketing splurge incongruent with reality. If you want to build a case for the Open Source laptop to date, [Bunnie]’s Novena, random GitHub repos are the best source. The Olimex TERES I is completely different; not only can you simply buy all the parts for the laptop, the hardware files are going up too. To be fair, this laptop is built with injection molded parts and will probably be extremely difficult to print on a standard desktop filament printer. The effort is there, though, and this laptop can truly be built from source.

As far as specs go, this should be a fairly capable laptop. The core PCB is built around an Allwinner ARM Cortex-A53, sporting 1GB of DDR3L RAM, 4GB of eMMC Flash, WiFi, Bluetooth, a camera, and an 11.6″ 1366×768 display. Compared to an off-the-shelf, bargain-basement consumer craptop, those aren’t great specs, but at least the price is consummate with performance: The TERES I will sell for only €225, or about $250 USD. That’s almost impulse buy territory, and we can’t wait to get our hands on one.