sensors_PXL_20230825_210358377.MP.jpg
Trinkey wired to a Tiny Code Reader, plugged into a laptop

The Tiny Code Reader is a small hardware module that's intended to make it easy to scan QR codes. It has an image sensor and a microcontroller with pre-trained software and outputs information from any identified codes over I2C.

There's a detailed developer manual available, but this guide has sample code that shows you specifically how to get the module up and running using CircuitPython on a Trinkey, and output any recognized code as text to the attached computer as if the module was a keyboard. For example, you can show it a QR code containing the text "Hello World!" and that text will be automatically typed in to your laptop.

Both the TCR and Trinkey have Stemma QT/Qwiic ports, so they can be connected with a standard cable and no soldering is required to complete this project.

Parts

Video of Trinkey RP2040 plugged into a laptop. An OLED display is connected and shows a graphic keyboard cat animation.
It's half USB Key, half Adafruit QT Py, and a lotta RP2040...it's Trinkey QT2040, the circuit board with an RP2040 heart and Stemma QT legs....
$7.95
In Stock
Angled shot of small green QR code reader sensor breakout.
The Tiny Code Reader from Useful Sensors is a...
$7.00
In Stock
Angled of of JST SH 4-Pin Cable.
This 4-wire cable is 50mm / 1.9" long and fitted with JST SH female 4-pin connectors on both ends. Compared with the chunkier JST PH these are 1mm pitch instead of 2mm, but...
Out of Stock

This guide was first published on Aug 30, 2023. It was last updated on Jun 25, 2024.

This page (Overview) was last updated on Mar 08, 2024.

Text editor powered by tinymce.