Thoughts on building an NFC reader for the Framework laptop


The Framework laptop has several little slots which can be used be used to expand the functionality of the laptop. They convert the internal USB-C ports into a different sort of port.

For example, Framework sells an official HDMI card and Ethernet card:

Two small plastic units. Both have a USB-C plug on one end. One terminates in an HDMI connector, the other in an RJ45 connector.

But the community have built their own SD card expansion pack as well as 3D printed snack drawers:

A laptop with 3D printed plastic drawers. One is full of peanut butter, the other has some crackers.

Brilliant!

I have an NFC-only authentication token which I want to use when I log in with my laptop. I currently have a USB-C NFC reader which I could use, but it is a bit big and bulky.

Is it possible to fit an U2F capable NFC reader into a FrameWork expansion slot?

Size of expansion cards

This was a bit tricky to find. Based on this GitHub page, I think the maximum internal dimensions of a circuit board are about 26mm x 29.7mm. Tight!

A schematic of a circuit.

According to this video from Framework about the cards shows the maximum size of the physical cards.

Screenshot showing 38mm x 30mm x 7mm.

All the cards use a USB-C connector which sits proud of the card itself.

Potential Hardware

First up is this tiny NFC reader. A small plastic square with a USB jack on the top. It is designed for phones, and costs about a fiver. The dimensions look like it would might fit if the plastic shell were removed. But the description says:

Output 4/7 bytes of chip serial number, UID only

So no good for doing U2F. But it does at least show that reading an NFC card ought to be possible in a small form factor.

There are component USB-C readers A small circuit board with both USB-A and C connectors.

That one would easily fit - but the description says it is for reading only. So I don't think it can send the cryptographic challenges necessary.

Then there's the ACM1252U-Z2 - Small NFC Reader Module which costs about £60.

Small circuit board.

It is a much more capable reader. It uses micro-USB rather than USB-C, which isn't insurmountable using a flexible male-male cable. What about the dimensions?

Schematic of a circuit board.

Certainly thin enough! But about twice as long as we need. Could we chop off the end? What's on the other side of that empty space?

Circuit board with large antenna.

Ah! A honking great antenna. If it could be bent at 90°, it would "only" stick up 2.5cm. Which would be ugly, but not disastrous.

Then there is the ACR122T which is in thumb-drive format.

A thumb drive with a retractable USB-A jack and a bulbous end.

That might work. The antenna is probably in the bulbous end. The official schematics don't give much clue.

Technical drawing showing the dimensions.

But if we look in the FCC Database there are some internal photos!

Circuit board laying next to a tape measure. Width of circuit board being measured.

Ignoring the USB jack, the board is about 50mm long. That would leave about 2cm sticking out of the side of the laptop. Which isn't too bad. The width is within what we need. There's even an updated version with a slightly different spec.

I could buy an A-to-C converter which would add unwanted extra length. I wonder how hard it is to unsolder the connector and mount a USB-C one? A USB-C plug on a pre-populated breakout board.

This video makes it look relatively simple.

But, given the weirdness with resistors, it might be easier to use an OTG Shim.

A USB-C plug with bare contacts at the end.

I could rip that apart and solder it on to the board. Or perhaps just solder on a USB-C OTG board. Maybe?

I guess it is time to buy some components and try not to break them! If you have any advice or suggestions, please let me know!


Share this post on…

  • Mastodon
  • Facebook
  • LinkedIn
  • BlueSky
  • Threads
  • Reddit
  • HackerNews
  • Lobsters
  • WhatsApp
  • Telegram

2 thoughts on “Thoughts on building an NFC reader for the Framework laptop”

  1. said on mastodon.me.uk:

    @Edent The USB-C expansion ports might not be your only option. Framework 16 also lets you mess with the keyboard and the panels either side of it. Might be a similar form factor to that blue board you mentioned with the “honking great antenna”.
    You never know, it might be easier to solder for that I/O interface than a USB-C plug, BUT I’ve not researched that area at all so I could be talking nonsense.
    Have you ordered a Framework 13 or 16?

    Reply | Reply to original comment on mastodon.me.uk

What links here from around this blog?

What are your reckons?

All comments are moderated and may not be published immediately. Your email address will not be published.

Allowed HTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <p> <pre> <br> <img src="" alt="" title="" srcset="">