Breakout Board

Overview

The Librem 5 breakout board is a great way for hardware hackers to add functionality to your phone. When attached, you’ll have nicely exposed programmable pins. This allows you to use I2C, serial, and many digital sensors, much like you would on a single-board microcomputer.

Download

With this setup, you can add ambient temperature, gas, humidity, and many other sensor types to your Librem 5.

Planning

Once you get your Breakout board and other needed electronics for your project, you can plan out which pins you’ll need. For this example, we are using I2C for an ENS160 gas sensor. The Librem 5’s I2C logic voltage is 1.8V, so we use a PCA9306 level translator breakout board to translate it to 3.3V.

Breakout board with level shifter

Now that we know what will be hooked up, we can short these pads with solder on the breakout board to expose 3.3V and 1.8V. With that done, we can attach the breakout board to the Librem 5.

Breakout board

Installation

  1. Power down your Librem 5 phone.

  2. Remove the back cover and pull out the battery.

  3. Remove the Wi-Fi card and modem cover.

  4. Carefully remove the wires to the Wi-Fi module.

  5. Try to gently maneuver the breakout board into position.

Breakout board installation

If you cannot get the connector aligned with the mid-frame in place, you must remove it by taking out the Wi-Fi and Cellular M.2 modules. You’ll also need to remove the screws around the frame.

Breakout board installation: removing the inner frame screws

Then take a spudger or pick and pop off the center frame.

Breakout board installation: removing the inner frame

Attaching or detaching the breakout board is easier with the center frame removed. Carefully line up the breakout board and press it on with minimal force.

Breakout board installation: positioning the breakout board

If you need to reattach your center frame, carefully feed the breakout board through, snap on and screw down the frame, and reinsert your Wi-Fi and cellular cards.

Breakout board installation: feeding the breakout board through the inner frame

Reinstall your smart card, SIM, and SD card.

Breakout board installation: reinstalling the cellular modem

Screw down the breakout board with one of the 3 screws used for the M.2 cover plate.

Prototyping

You can now attach your battery and back cover or start prototyping.

Breakout board installation: battery back in place

A convenient way to attach pins to the Rigid-Flex Breakout Board is using trimmed press-fit headers. Clipping them like this makes it simple to install and remove.

Prototyping: press-fit headers

Once your creation is ready, boot up your phone and create your driver in whatever language you prefer. You can check out the code and case model used in this Librem 5 gas sensor dashboard project.

Prototyping: connecting the circuit

If you build compactly, you can fit everything in the case. For this project, a custom case was needed for the extra sensor.

Prototyping: tying everything together

For tech tinkerers that want to customize their Librem 5 phone, check out the EXT CON Breakout Board shop page.