Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Crimpdeq

Meet Crimpdeq, a portable digital force sensor for climbers, coaches, and therapists who want to measure and train finger strength, pulling power, and endurance. It is inspired by the Tindeq Progressor and is compatible with both the Tindeq and Frez apps.

Specs

These specs describe the current PCB V4 with its matching case and firmware.

  • Rechargeable battery with USB-C charging, also while switched off
  • Battery level reporting with a MAX17048 fuel gauge
  • RGB status LED for connection and low-battery status
  • ADS1220 24-bit load-cell ADC
  • Communicates via Bluetooth Low Energy (BLE)
  • Open-source firmware written in Rust
  • Open-source PCB design, viewable online at tscircuit.crimpdeq.com
  • Open-source 3D-printable case design
  • Automatic sleep when inactive
  • Compatible with the Tindeq Progressor app (Android | iOS)
  • Compatible with the Frez app (formerly ClimbHarder) (Android | iOS)
  • Sampling rate: 175 Hz by default, selectable from 20 to 1000 Hz with the Crimpdeq app and kept across reboots (80 Hz on PCB V1 and V2)
  • Linear, quadratic, or piecewise linear calibration, fitted on the device and selected with the Crimpdeq app
  • Full-scale design load: 1500 N (~150 kg)
  • Precision:
    • 0.05 kg between 0 and 99 kg
    • 0.1 kg between 100 and 150 kg
  • Operating temperature: 0 to 40 C
  • Dimensions: 89.2 x 64.6 x 27.6 mm (case v4.0.0)
  • Uses the Tindeq Progressor API

⚠️ Warning: Some values depend on the load cell used in this project. If you use a different load cell, those values may change.

Book Contents

This book is a practical guide to understanding Crimpdeq and building your own. It covers assembly, calibration, firmware internals, and the PCB and 3D-printable case design.

⚠️ Note: If you want to reproduce this project, feel free to reach out by email ([email protected]), X (formerly Twitter), or Bluesky.

Build Your Crimpdeq

This chapter presents the Crimpdeq models you can build.

Choose the one that matches your tools, budget, and how much assembly work you want to do.

⚠️ Note: If you want a Crimpdeq, but don’t have the materials or skills to build your own, feel free to email me at [email protected] and we can discuss other options.

Crimpdeq PCB Build

Crimpdeq V3

This model uses a custom PCB and a custom 3D-printed case.

It is the cleanest and easiest version to assemble, and the final result is more compact and polished. The assembly guide covers PCB V1 to V4, including their wiring differences. New builds should use PCB V4. The photo shows a V3 build.

Follow the Crimpdeq Assembly guide to build this model.

Prototype

This model reuses a crane scale case and combines off-the-shelf modules (ESP32-C3 Rust Board + HX711).

It requires more soldering and manual assembly, but it can be cheaper because it does not require manufacturing a custom PCB or 3D-printed case.

Follow the Prototype Assembly guide to build this model.

Crimpdeq Assembly

This chapter shows how to assemble a Crimpdeq using the custom PCB and 3D-printed case.

Most assembly steps are the same for PCB V1 to V4. The main differences are the external wiring pad layout, especially the battery/switch wiring, and how the parts sit in the case.

Assembled Crimpdeq V3

1. Gather Parts and Tools

Parts

  • Crimpdeq PCB
  • Crimpdeq 3D-printed case that matches your PCB revision
  • WH-C07 load cell, or a compatible load cell with similar dimensions
  • 3.7 V LiPo battery sized for your case release:
    • Case v3.1.0 and earlier: 2000 mAh, 10 × 34 × 50 mm
    • Case v3.2.0 and v4.0.0: 800 mAh 102530, 10 × 25 × 30 mm with its protection board, with both leads leaving one 25 mm end
  • KCD11 two-terminal switch
  • Insulated hookup wire and heat-shrink tubing
    • The case v4.0.0 wire routes are sized for 24 AWG silicone wire.
  • 4 screws for the lid:
    • Case v3.1.0 and earlier: M2.5 screws (M2.5×10 for the V3 case)
    • Case v3.2.0 and v4.0.0: countersunk Phillips self-tapping screws sold as M2.5×10, measuring 2.4 mm across the thread, 4.8 mm across the head and 10.3 mm overall

Tools

  • Soldering iron and solder
  • Wire cutters and strippers
  • Multimeter

2. Identify Your PCB Layout

Before soldering, identify which PCB layout you have and follow the matching wiring table.

PCB V1PCB V2
Crimpdeq PCB V1 pad layoutCrimpdeq PCB V2 pad layout
The load cell uses numbered pads 12–15; the battery uses 16 and 17.The load-cell and power pads are labeled E+, E-, A-, A+, VBAT, and SW+.

PCB V3 has eight labeled pads: E-, A-, A+, and E+ for the load cell along one edge, and B-, B+, SW+, and SW- for the battery and switch along the edge next to the USB-C connector. The labels are printed on both sides of the board.

PCB V4 has eight plated through-hole pads along its two long edges, next to the USB-C connector. With the top side up (ESP32-C3 module, USB-C connector, and LEDs) and the USB-C connector toward you, the load-cell column J3 is on the left (E+, S+, S-, E-, from the module end) and the battery/switch column J4 is on the right (SW-, SW+, B+, B-). The J3 labels are printed on the bottom side only; the J4 labels are on both sides. The bottom side also has the EN, GND, and BOOT pads for download-mode recovery.

The photos in this chapter show a V1 or V3 PCB, as noted in each caption. Use the tables below—not the wire positions in the photos—to connect a V2 or V4 PCB.

3. Solder the Connections

⚠️ Battery safety: Keep USB power disconnected while wiring. Prevent the battery leads from touching each other, and insulate every splice and switch terminal with heat-shrink tubing. Complete the unpowered checks below before connecting either battery lead.

Load cell

FunctionTypical wire colorPCB V1 padPCB V2 padPCB V3 padPCB V4 pad
Excitation positiveRedE+ (15)E+E+E+
Excitation negativeBlackE- (14)E-E-E-
Signal positiveGreen or blueS+ (12)A+A+S+
Signal negativeWhiteS- (13)A-A-S-

⚠️ Note: Wire colors are not guaranteed. Confirm the labels or documentation for your load cell before soldering.

Reference photo of the load cell wires after soldering them to a V1 PCB:

Load cell wires soldered to a V1 PCB

Reference photo of a V3 PCB with the load cell wired to E-, A-, A+, and E+, and the battery wired to B- and B+:

Load cell and battery wired to a V3 PCB

Battery and switch

Before soldering the switch terminals, feed both switch wires from inside the case through the switch opening and slide heat-shrink tubing onto them. Solder the switch outside the case; you will press it into the opening later. Do not attach the switch before feeding the wires through the opening.

Leave both battery leads disconnected until instructed to connect them below.

PCB V1

  1. Solder a wire from B+ (17) to either switch terminal.
  2. Leave the other switch terminal available for the battery positive wire.

The completed circuit will place the switch in series with the positive lead: battery + → switch → B+ (17).

PCB V2

  1. Solder a wire from SW+ to either switch terminal.
  2. Connect the other switch terminal to VBAT with a short jumper.
  3. Plan the shared E- connection for the load-cell and battery negative wires.
    • If both wires do not fit cleanly in the pad, make a short insulated pigtail from E- with one branch for each wire.

The completed connections will be:

  • battery + → VBAT
  • VBAT → switch → SW+
  • battery − → E-

⚠️ Important V2 difference: Unlike V1, V2 keeps VBAT connected to the battery while the switch is off. This allows the battery to charge while the device is off. Do not place the switch between the battery and VBAT.

PCB V3

  1. Solder one switch wire to SW+ and the other to SW-.
  2. Feed both wires through the switch opening and solder each one to a switch terminal. The switch has no polarity.

The completed connections will be:

  • battery + → B+
  • battery − → B-
  • SW+ → switch → SW-

Like V2, V3 keeps B+ connected to the battery while the switch is off, so the battery charges while the device is off. The switch only turns the device on and off; do not place it between the battery and B+.

Switch wires from SW+ and SW- fed through the switch opening of the V3 case

PCB V4

The battery and switch connections are the same as on V3: battery + → B+, battery − → B-, and SW+ → switch → SW-. On V4, SW+ is tied to B+ on the board.

The V4 pads are plated holes. In the case, every wire reaches its pad from below, so insert each stripped wire from the bottom side, solder it, and trim it flush on the top side. Cut the wires long enough to follow the routes in Install Everything in the Case.

Check before connecting the battery

With both battery leads still disconnected, use a multimeter in continuity or resistance mode to check that:

  • Battery positive is not shorted to ground (B+ to B- on V1, V3, and V4, or VBAT to E- on V2).
  • Each load-cell wire reaches the correct pad for your PCB revision.
  • The switch opens and closes its path.
    • On V1, check between the free switch terminal and B+.
    • On V2, check between VBAT and SW+.
    • On V3 and V4, check between SW+ and SW-.

Resolve any unexpected short or open connection before proceeding.

Connect the battery

  • PCB V1: connect battery positive (red) to the free switch terminal, then connect battery negative (black) to B- (16).
  • PCB V2: connect battery negative (black) to the shared E- connection, then connect battery positive (red) to VBAT.
  • PCB V3 and V4: connect battery negative (black) to B-, then connect battery positive (red) to B+.

4. Install Everything in the Case

PCB V1 and V2

  1. Place the load cell in its position in the 3D-printed case.
  2. Route the load cell wires so they are not pinched by the PCB or the lid.
  3. Place the battery in the battery compartment.

Load cell and battery placed on the case

  1. Position the PCB in the case.
  2. Tuck the wires neatly around it so nothing sits under the board.
  3. Insert the KCD11 switch into the switch opening.

PCB V1 positioned in the case

Wires arranged around a PCB V1

PCB V3

In the V3 case, the front wall is the one with the USB-C and switch openings.

  1. Place the load cell in the main body with the white strain-gauge cover facing up and its wires toward the front wall.

  2. Route the load-cell wires to the front of the case, where the load-cell pads will sit:

    • Case v3.1.0 and earlier: run them under the battery position.
    • Case v3.2.0: run them forward from the strain-gauge cover, in front of the battery, then along the outer side of the support column nearest the load-cell pads.
  3. Place the battery with its leads at the rear:

    • Case v3.1.0 and earlier: lay it flat on top of the load cell.
    • Case v3.2.0: set its rear end on the two pads behind the load cell; its front rests on the strain-gauge cover.

    Run the leads up behind the battery and forward along its side to the B- and B+ pads.

  4. Press the KCD11 switch into the switch opening.

  5. Hold the PCB with the ESP32-C3 module and LEDs facing up. Tilt it to insert the USB-C connector into the front-wall opening, then lower the board onto its two support columns in front of the battery.

  6. Check that no wire sits on top of the support columns or the battery, where the lid clamps press.

The photos below show case v3.1.0.

PCB V3 seated in the case above the battery

PCB V3 seated with its USB-C connector in the front wall

PCB V4

In the V4 case, the front wall is the one with the USB-C and switch openings; left and right below are as seen from the front. Install the parts in this order: load cell, switch, battery, PCB. The case model shows where each part sits.

  1. Place the load cell with the white strain-gauge cover facing the floor and its wires toward the front wall. Fit its four edge notches over the floor pins; it rests on four floor pads, with its wires running under it to the front.
  2. Press the KCD11 switch into its opening, right of the USB-C opening. Bend its wires up behind the solder joints.
  3. Lay the battery flat on the top face of the load cell, with the end that its leads leave toward the front wall. If the leads leave off center, turn the battery over so that they leave right of center. Run them right along the front of the battery, through the recess in the PCB support column.
  4. Hold the PCB with the ESP32-C3 module, USB-C connector, and LEDs facing up. Lower it straight down: the USB-C connector drops into the front-wall opening, which is open at the top, and the board rests on the two fingers of the support column, between the front screw posts.
  5. Check that each wire reaches its pad from below along its lane: the load-cell wires left of the support column to J3, and the battery leads right of it to J4. The switch wires run over the battery beside the board, then forward and down to SW+ and SW-.
  6. Check that no wire sits on top of the board or the USB-C connector, where the lid presses.

5. Verify the Powered Wiring

With USB still disconnected, use the multimeter in DC voltage mode to confirm the polarity and switch behavior:

  • PCB V1: place the black probe on B- and the red probe on B+. The meter should show battery voltage only while the switch is on.
  • PCB V2: place the black probe on E-. With the red probe, confirm that VBAT always shows battery voltage and SW+ shows battery voltage only while the switch is on.
  • PCB V3 and V4: place the black probe on B-. With the red probe, confirm that B+ always shows battery voltage and SW- shows battery voltage only while the switch is on.

Turn the switch off before closing the case.

6. Close the Case

  1. Place the lid on the main enclosure.
    • On V3 and V4, align the lid’s two LED holes over the RGB status LED and the red charging LED.
    • On case v4.0.0, the lip under the lid drops inside the main walls and centers the lid.
  2. Fasten it with the 4 screws.
    • On case v3.2.0 and v4.0.0, the self-tapping screws cut their own thread in the case. Drive them with a hand screwdriver and stop as soon as each head sits flush; on case v4.0.0, the countersunk heads snap off under more torque. When refitting a screw, turn it backwards until it drops into its existing thread before tightening it.

V3 case front wall with the USB-C port and power switch

7. Next Steps

  1. Flash the firmware (see Firmware).
  2. Calibrate the device (see Calibration).

PCB Design

The PCB design is maintained in the crimpdeq-pcb repository. Revision 4 is designed with tscircuit; Revisions 1 to 3 were designed with KiCad and remain available at their release tags.

The design is derived from the ESP32-C3-DevKit-RUST-1. It removes unused sensors from the original design and keeps the components needed by Crimpdeq.

Starting with V2, the PCB, firmware, and case are compatible only within the same major version. For example, PCB V4 requires firmware v4.x and case v4.x. PCB V1 uses firmware v0.4.0 and case v0.4.0.

Revision 4 (Current)

Revision 4 (v4.0.0) is a 17 × 31.5 mm four-layer board with components on both sides. Its source is index.circuit.tsx. It keeps the ADS1220 ADC, MAX17048 battery gauge, charging while switched off, and RGB status LED of Revision 3. Compared with Revision 3, it:

  • Puts the ESP32-C3 module (with its antenna at the board edge), the USB-C connector, and both LEDs on the top side, and the charger, power path, 3.3 V regulator, battery gauge, and ADC on the bottom side.
  • Powers the load cell only while the ADC converts: the ADS1220’s internal low-side switch connects E- to ground, so the load cell draws no current while the ADC is powered down.
  • Filters the load-cell inputs against Bluetooth transmissions, which added spikes of up to 0.98 kg to Revision 3 readings.
  • Connects the ADS1220’s dedicated data-ready pin and swaps the battery gauge’s I2C pins, so firmware v3.x does not work on it.
  • Uses a 2 × 2 mm XL-2121RGBC-2812B status LED. Its datasheet specifies full function at 4.5 to 5.5 V, so at 3.3 V its blue and green may be dimmer.
  • Names the load-cell signal pads S+ and S- instead of A+ and A-, and ties SW+ to B+ on the board.
  • Adds EN, GND, and BOOT pads on the bottom side to recover the ESP32-C3 in download mode (see If the flasher cannot connect).

The pads are plated through holes. The J3 load-cell labels are printed on the bottom side only:

The drawings are the assembly drawings from the v4.0.0 release, with the pad labels added. The bottom view is mirrored, as seen from below.

Online Viewer

Explore the PCB, schematic, and 3D model in your browser at tscircuit.crimpdeq.com. The viewer is rebuilt from the main branch of the repository, so it can show changes made after the latest release.

Revision 3

Revision 3 is a 30 × 30 mm four-layer board. Compared with Revision 2, it:

  • Replaces the HX711 with an ADS1220 24-bit ADC for the load cell. The ADC uses ratiometric excitation and supports sampling rates from 20 to 1000 Hz.
  • Adds dedicated B-, B+, SW+, and SW- pads, so the battery and switch no longer share pads with the load cell or need a jumper.
  • Groups the four load-cell pads (E-, A-, A+, E+) on one edge, near the ADC and away from the antenna.
  • Keeps charging while switched off, the MAX17048 battery gauge, and the RGB status LED.

The ESP32-C3 module, RGB LED, and charging LED are on the back of the board, which faces the lid in the case. The pads are labeled on both sides:

The schematic below was generated from the v3.0.0 KiCad source. Open the PDF version to zoom in.

PCB Revision 3 schematic

Revision 2

Revision 2 adds clearly labeled external wiring pads, a power path that supports charging while switched off, a battery gauge, and an RGB LED. Its battery and switch wiring differs from Revisions 1, 3, and 4; follow the assembly guide.

Revision 1

Revision 1 is a two-layer board that has been tested and works as expected. Its external connections use numbered pads, as shown below.

Production Files

The PCB was sponsored by PCBWay. Working with them was fast and easy, and the resulting boards are high quality.

PCBWay

You can find the production files for the current revision in the latest GitHub release, and its design in the repository. Older revisions are available from the release archive.

How to Manufacture

These steps are for Revision 4 (v4.0.0). There are two ways to order this PCB:

  1. Using the PCBWay Project page, if it shows the revision you want to build: it already includes the uploaded production files.
  2. Placing your own PCBWay order using the production files from the repository releases.

Both ways only load the production files; you still need to apply the order settings.

Using PCBWay Projects

  1. Open the PCBWay Project page using the button below.

    PCB from PCBWay

  2. Confirm that the revision shown on the project page is the one you want to build. If it is not, place your own order.

  3. On the right panel, select PCB+Assembly and click Add to Cart.

  4. Apply the order settings.

  5. Enter the desired quantity and click Calculate.

    ⚠️ Note: PCBWay shows two quantity fields. One is the number of PCBs to manufacture, and the other is the number of boards to assemble with components. The minimum PCB quantity is usually 5.

  6. Choose your shipping country and shipping method.

  7. Click Save to Cart to continue with checkout.

Placing Your Own Order on PCBWay

  1. Download these files from the release:

    • crimpdeq-pcb-v4.0.0-pcbway_gerbers.zip: Gerber and drill files
    • crimpdeq-pcb-v4.0.0-pcbway_bom.csv: bill of materials for assembly, with substitution notes
    • crimpdeq-pcb-v4.0.0-pcbway_centroid.csv: component placement file for assembly
    • crimpdeq-pcb-v4.0.0-assembly-top.svg and crimpdeq-pcb-v4.0.0-assembly-bottom.svg: assembly drawings, which mark pin 1 or the cathode of each part
    • crimpdeq-pcb-v4.0.0-SHA256SUMS: checksums of the files above
  2. Open the PCBWay PCB quote page and upload the Gerber zip.

  3. Enable Assembly Service and upload the BOM as the parts list and the centroid file.

  4. Apply the order settings, and add the assembly notes to the order.

  5. Submit the order and wait for the manufacturer review.

    • The manufacturer may contact you with questions about substitutions, assembly notes, or file interpretation.

Order Settings

PCB options:

OptionValue
Board typeSingle pieces
Size17 × 31.5 mm
Layers4 Layers
MaterialFR-4, S1000H TG150
Thickness1.6 mm
Min track/spacing5/5 mil
Min hole size0.3 mm
Solder maskGreen
SilkscreenWhite
Surface finishHASL lead free
Via processTenting vias
Finished copper1 oz Cu
Inner copper1 oz

If PCBWay asks for the layer order from top to bottom, enter:

LayerGerber file
L1F_Cu.gbr
L2In1_Cu.gbr
L3In2_Cu.gbr
L4B_Cu.gbr

Assembly options:

OptionValue
Flexible optionsTurnkey
Board typeSingle pieces
Assembly side(s)Both sides
QuantityNumber of boards to assemble
Contains sensitive components/partsNo
Accept alternatives/substitutes made in ChinaNo
Function testNo
Firmware loadingNo

⚠️ Note: Revision 4 has components on both sides: the ESP32-C3 module, USB-C connector, and LEDs on the top, and the rest on the bottom. PCBWay selects Top side by default; with it, the bottom-side components are not assembled.

Assembly Notes

Add these notes to the order:

  • Reflow the bottom side first; the top side carries the heavy parts (U1, J2).
  • J2’s four shell legs are pin-in-paste in the top reflow: top paste over the leg pads, none on the bottom.
  • The J3 and J4 wire pads have no paste; the load-cell and battery wires are hand-soldered afterwards.
  • Paste is 1:1 on normal pads and 50–60 % on the thermal pads (U1 exposed pad, and the U3 and U5 exposed pads).
  • The centroid rotations come from tscircuit: confirm each part’s orientation against the assembly drawings.

⚠️ Note: If the manufacturer contacts you with questions or suggestions and you are unsure how to answer, feel free to email me at [email protected].

3D-Printed Case

The case design is maintained in the crimpdeq-case repository and was created with OpenSCAD.

It consists of two parts (main body and lid) and includes mounting points for the load cell, battery, PCB, and switch.

Download the printable files from the repository releases and choose the case that matches your PCB revision: case v0.4.0 for PCB V1, and the same major version as the PCB from V2 on (for example, case v4.x with PCB V4). Each release includes case_main.stl and case_lid.stl; from v3.1.0, it also includes crimpdeq-case.3mf, a Bambu Studio project with both parts laid out and the print settings applied. Releases up to v3.1.0 ship the STLs in assembly orientation, so lay the lid on its outer face before slicing. Print both parts before assembly.

Revision 4 (Current)

The Revision 4 case, v4.0.0, measures 89.2 × 64.6 × 27.6 mm. It has flat front, rear, and end walls with 45° chamfers and a carabiner slot through each end. It holds the same 800 mAh 102530 battery and countersunk self-tapping screws as case v3.2.0.

  • Everything stacks over the load cell. The load cell goes in with its strain-gauge cover facing the floor, on four floor pads, with floor pins in its edge notches. The battery lies flat on its top face, and the PCB sits over the battery, top side up.
  • The PCB rests on two fingers of a floor column, with its USB-C connector in a front-wall opening that is open at the top, so the board drops straight in. A pad in the lid presses the top of the USB-C connector, and a pocket in the front wall leaves room for the plug of the USB-C cable.
  • The switch sits in the front wall, right of the USB-C connector.
  • A lip under the lid drops inside the main walls and centers the lid before the screws go in.
  • The two LEDs shine through 0.4 mm windows that close the lid’s LED holes at the outer face, to keep chalk and dust off the board. Print the lid in a light PLA; black PLA blocks the LEDs.
  • Neither part needs support material. See the repository README for the recommended print settings.

Before printing the full case, you can print the fit coupon in case/fit_coupon.scad: the front bands of both parts, with the switch opening, USB-C opening, PCB column, screw posts, LED windows, and lid lip. It is not a release file; export it with OpenSCAD:

openscad -D 'part="main"' -o fit_coupon_main.stl case/fit_coupon.scad
openscad -D 'part="lid"' -o fit_coupon_lid.stl case/fit_coupon.scad

Screw the two parts together and check the fits on your printer.

Revision 3

The latest Revision 3 case, v3.2.0, measures 103.3 × 77.4 × 25.5 mm and has a hexagonal plan with a carabiner slot at each end. It holds an 800 mAh 102530 battery and is fastened with 4 countersunk self-tapping screws that seat flush in the lid.

  • The PCB sits on two columns in front of the battery, with its USB-C connector in the front wall.
  • The battery rests on two pads behind the load cell. Lid hold-downs clamp it onto those pads, and a lid stop in front of it keeps it from sliding forward.
  • The lid has separate holes for the RGB status LED and the red charging LED.
  • Neither part needs support material. See the repository README for the recommended print settings.

Case v3.1.0 and earlier V3 releases hold the 2000 mAh battery on top of the load cell, partly under the PCB, and use M2.5×10 machine screws; v3.1.0 measures 109.8 × 77.4 × 30.6 mm. The assembly guide lists the parts for each release.

Prototype Assembly

This chapter explains how to build your own Crimpdeq prototype.

1. Required Materials

2. Disassemble the Crane Scale

  1. Desolder the battery connections.
  2. Desolder the four load cell wires (E-, S-, S+, and E+) from the PCB.
  3. Unscrew and remove the PCB and display.

3. Soldering

  1. Modify the HX711 module:

    1. Set the sample rate to 80 Hz. Most HX711 modules ship with RATE tied to GND, which sets 10 Hz. To switch to 80 Hz:
      1. Cut the PCB trace to the RATE pin.
        • Carefully scratch the trace with a knife.
      2. Verify with a multimeter that GND and RATE are no longer connected.
        • Take care not to damage adjacent traces.
      3. Solder the RATE pin to the DVDD pin.
      4. Verify with a multimeter.
    2. [Optional] Improve measurements at 3.3 V. Most HX711 modules are configured for 5 V operation:
      1. Solder a 20 kΩ to 27 kΩ resistor in parallel with R1 (highlighted in the image):
      • For more information, see this blog post.
      • This step is optional but improves measurement quality.
  2. Connect the load cell to the HX711:

    • Solder the four wires from the crane scale to the HX711. Typical color mapping:
    HX711 PinLoad Cell PinDescription
    E+E+ (Red)Excitation positive (to load cell)
    E-E- (Black)Excitation negative (to load cell)
    S+S+ (Green or blue)Signal positive (from load cell)
    S-S- (White)Signal negative (from load cell)

    ⚠️ Note: On some HX711 modules, S+/S- are labeled A+/A-. Wire colors are not guaranteed, so confirm your load cell’s wiring before soldering.

  3. Connect the HX711 to the ESP32-C3-DevKit-RUST-1:

HX711 PinESP32-C3 PinDescription
VCC3.3VPower supply (3.3V)
GNDGNDGround
DT (Data)GPIO4Data output from HX711
SCK (Clock)GPIO5Clock signal for communication

  1. [Optional] Solder the voltage divider:
    1. Solder one end of the 33 kOhm resistor to B+ on the ESP32-C3-DevKit-RUST-1.
    2. Join the other end of the 33 kOhm resistor with one end of the 10 kOhm resistor, then connect that junction to GPIO1.
    3. Solder the remaining end of the 10 kOhm resistor to GND.
    • The firmware expects the battery sense on GPIO1 by default. Adjust the firmware configuration if you wire a different pin.
  2. Verify all connections with a multimeter.

4. Adapt the Scale Case

  1. Create space for the USB connector.
    • For example: mark the opening with a pen, then carefully heat a knife and melt the plastic.
  2. Install the battery holder:
    1. Glue the battery holder with silicone. Leave the original battery lid opening free so you can route the two battery wires through it.
    2. Solder the positive wire (red) from the battery holder to a switch/button for power. Then solder the other switch/button pin to B+ on the ESP32-C3-DevKit-RUST-1.
    3. Solder the negative wire (black) from the battery holder to B- on the ESP32-C3-DevKit-RUST-1.
  3. Close the case after confirming all components are secure.

5. Next Steps

  1. Flash firmware v0.4.0, which uses the HX711 on GPIO4/GPIO5 and the battery divider on GPIO1 (see Firmware).
  2. Calibrate the device (see Calibration).

Firmware & Flashing

The Crimpdeq firmware is written in async Rust (no_std) using esp-hal and a small set of supporting crates.

This section explains how to flash the firmware to your device and, optionally, how the code is organized.

Choose the Firmware for Your PCB

Each PCB revision needs its own firmware. Use the latest firmware release for your PCB:

PCB revisionFirmware
V1v0.4.0
V2v2.x
V3v3.x
V4v4.x
Prototypev0.4.0

⚠️ Note: Firmware for a different revision does not work with your PCB. For example, V3 uses an ADS1220 ADC instead of the HX711 used by V1 and V2, and V4 moves the ADS1220 data-ready signal and the battery gauge pins.

Choose a Flashing Method

There are two supported ways to flash the firmware:

1. Web Tools

  • No local setup required
  • Fastest way to install the latest release
  • Best if you do not plan to modify the firmware

See Flashing with Web Tools

2. Local Setup

  • Requires installing Rust and probe-rs
  • Lets you build from source and modify the code
  • Better for development and debugging

See Flashing with Local Setup

Firmware Internals

If you want to understand or modify the firmware, see the Firmware Details chapter.

If you only want a working device, you can flash the firmware and continue to Calibration.

Flash with Web Tools

This chapter covers how to flash your device with a pre-built binary.

  1. Connect the device with a USB-C cable.

  2. Download a .bin from the GitHub release that matches your PCB revision:

    • If this is the first time you are flashing Crimpdeq firmware to your device, download crimpdeq-merged.bin.
    • If you are updating firmware on a device that is already flashed, download crimpdeq.bin.
  3. Choose a web flasher. Use either:

  4. Click Connect and select the serial port for your ESP board.

    • In Adafruit ESPTool, the port often appears as USB/JTAG serial debug unit....
  5. Click Erase only if this is the first time you are flashing this device.

    ⚠️ Note: Erasing the device also erases stored calibration values. Skip this if the device was already programmed and calibrated.

  6. Upload your .bin:

    • If you are using crimpdeq-merged.bin -> address 0x0
    • If you are using crimpdeq.bin -> address 0x10000
  7. Click Program.

If the Flasher Cannot Connect

If the serial port does not appear, or the flasher cannot connect to it:

  1. Make sure the device is awake. A sleeping device (status LED off) does not show its serial port. On PCB V3 and V4, turn the switch off and reconnect the USB-C cable: with the switch off, connecting USB restarts the device.
  2. If it still does not connect, put the ESP32-C3 into download mode. PCB V4 has EN, GND, and BOOT pads for this on its bottom side, under the ESP32-C3 module (see the pad layout), so take the board out of the case first. Either:
    • Hold BOOT to GND and briefly connect EN to GND. The pads are 1.5 mm apart, so tweezers can bridge neighboring pads.
    • With the switch off and USB disconnected, hold BOOT to GND while connecting the USB-C cable.
  3. Flash the firmware as described above, then disconnect and reconnect USB with the switch off, or briefly connect EN to GND, to start it.

Flash with Local Setup

This chapter covers how to compile and flash the Crimpdeq firmware to your device.

Prerequisites

To build and upload the firmware, install:

  • Rust
    • The repository’s rust-toolchain.toml installs the stable toolchain, rust-src, and the ESP32-C3 target on the first build.
  • probe-rs, see installation instructions

    ⚠️ Note: Depending on your OS, you may need extra setup steps:

    • Linux: set up udev rules for your debug probe or USB-serial device (see the probe-rs udev guide).
    • Windows/macOS: ensure the correct USB drivers are installed and select the appropriate serial port in your tooling.

How to Build the Firmware

The main branch of the firmware repository targets PCB V4. For an older PCB, check out the release tag for your revision first, for example:

git checkout v3.1.0

To build the firmware, run:

cargo build --release

This compiles the firmware only. To build and flash the device, see Build and Flash your Device.

How to Flash Your Crimpdeq

Erase Device Memory

If this board was previously used for other projects, erase its flash once:

probe-rs erase

⚠️ Note: Erasing is only needed once. Avoid erasing routinely, or you will lose your calibration values.

Build and Flash Your Device

The custom runner configured in .cargo/config.toml builds, flashes, and starts the firmware with:

cargo run --release

Logging is off by default (DEFMT_LOG = "off" in .cargo/config.toml), so the command exits once the firmware starts.

To see log messages, set the log level in .cargo/config.toml or when running the command. The runner then keeps a log monitor open:

DEFMT_LOG=debug cargo run --release

⚠️ Note: On release tags up to v3.0.0, cargo run --release opens a serial monitor even with logging off.

⚠️ Note: If flashing fails to connect to the device, see If the flasher cannot connect.

⚠️ Note: If your DevKit does not include USB-Serial-JTAG, flash over UART by replacing the runner in .cargo/config.toml with espflash instead of probe-rs.

Try the Firmware Without a Load Cell

From firmware v3.1.0, the mock feature simulates the load cell and battery, so you can test the firmware and apps without a load cell or battery on the PCB of the release (V3 for v3.1.0, V4 for v4.x) or on an ESP32-C3 Rust board:

cargo run --release --features mock

The simulated load cell repeats pulls up to 30 kg, the battery discharges to 20 % and charges back, and the device logs the idle timeout instead of going to sleep.

Configuring Environment Variables

If you need to change DEVICE_ID, DEVICE_NAME, or DEVICE_VERSION_NUMBER, update their values in .cargo/config.toml.

After making changes, rebuild and flash the device for the new values to take effect.

Firmware Internals

This chapter describes firmware v4.x for PCB V4. Firmware v3.x for PCB V3 has the same structure, but reads the ADS1220 data-ready signal on its data output, swaps the battery gauge I2C pins, and does not use light sleep. Firmware for PCB V1 and V2 uses an hx711 module instead of ads1220 and has no storage module.

Code Structure

ads1220

This module implements the ADS1220 load-cell ADC driver over SPI. It configures the ADC for ratiometric measurements, selects the sampling rate (20 to 1000 SPS), tares the load cell, and converts readings with the calibration in use. It waits on the dedicated data-ready pin before each read, and sets the ADC’s low-side switch to close while it converts, so the load cell is only powered while the ADC runs.

calibration crate

The calibration crate fits the linear, quadratic and piecewise linear calibration models, converts readings, applies the rules for adding and removing points, and encodes the calibration flash record and BLE details. It has no hardware dependencies, so cargo test-host runs its tests on the computer. Its README documents the models, their data requirements, tare and zero semantics, extrapolation, the record and the BLE extension in full.

ble

This module implements the Bluetooth Low Energy (BLE) functionality:

  • Defines the GATT server and services
  • Handles advertising and connections
  • Defines the Progressor service with data point and control point characteristics

mock

This module simulates the load cell and battery for the mock build, which runs without them (see Try the Firmware Without a Load Cell). In that build, mock_battery_task replaces battery_gauge_task.

progressor

The progressor module implements the Tindeq API used for BLE communication between the ESP32-C3 and a smartphone.

storage

This module stores the calibration (model, curve and points) and the sampling rate in separate flash partitions, so they persist across reboots and writing one cannot erase the other. The calibration partition holds a log of versioned, CRC-checked records, so a write interrupted by a power cut keeps the previous calibration. The factor that firmware v3.0.0 and earlier stored migrates to the same linear calibration, without points.

Main Tasks

The main.rs file defines several asynchronous tasks that run concurrently:

  • measurement_task:
    • Initializes the ADS1220.
    • Handles taring, calibration, and sampling-rate changes, and reads measurements from the sensor.
    • Runs on a higher-priority executor so high sampling rates are not delayed by BLE.
  • ble_task:
    • Long-running background task required alongside other BLE tasks.
  • gatt_events_task:
    • Processes GATT events such as control-point writes.
  • data_processing_task:
    • Sends notifications with batches of data points sized to the connection’s packet size.
  • connection_state_task:
    • Tracks the BLE connection until it closes.
  • battery_gauge_task:
    • Periodically reads the battery voltage and charge from the MAX17048 fuel gauge.
    • Puts the device to sleep when the battery is too low.
  • status_led_task:
    • Sets the RGB LED color from the connection and battery state.
  • storage_task:
    • Writes changed settings to flash.
  • deep_sleep_task:
    • Monitors inactivity; after a timeout, the device enters deep sleep.
  • usb_host_task:
    • Keeps the chip out of light sleep while a USB host is connected, so the serial port for flashing and logs stays available.

Communication between tasks occurs via Channels and a shared device state.

Power Saving

From firmware v4.0.0, the chip enters light sleep whenever every task is waiting, and the radio sleeps between BLE events. Drivers that need the chip awake hold a wake lock: the ADS1220 while it converts, and the USB host check while a USB host is connected. The status LED driver is created for each color change and dropped afterwards, because it would otherwise keep the chip awake. After the idle timeout, or when the battery is low, the device enters deep sleep, from which only a power cycle wakes it.

BLE Protocol

The device implements the Tindeq Progressor API on the Progressor service (7e4e1701-1ea6-40c9-9dcc-13d34ffead57). Apps write commands to the control point characteristic (7e4e1703-…): one opcode byte followed by its payload. The device answers with notifications on the data point characteristic (7e4e1702-…), each made of a response code byte, a payload length byte, and the payload. During a measurement, each 0x01 notification carries as many samples as fit in the connection’s packet size, each a weight in kg (f32) followed by the microseconds since the measurement started (u32). Multi-byte values are little-endian.

It supports these standard commands: tare (0x64), start measurement (0x65), stop measurement (0x66), add calibration point (0x69, followed by the weight in kg as an f32), get app version (0x6B), shutdown (0x6E, which closes the connection), sample battery (0x6F), and get Progressor ID (0x70).

Crimpdeq adds these commands, which the Tindeq and Frez apps do not use:

OpcodeCommandPayloadResponse
0x72Get calibrationnone0x05 with the calibration factor (f32, NaN for a nonlinear model), then one 0x06 per point with its raw value and weight in kg (f32, f32)
0x74Default calibrationnone0x05 with the default calibration factor; restores the linear model and clears the calibration points
0x75Set sample ratesamples per second (u16)0x07 with the rate in use (u16), which stays unchanged for unsupported rates
0x76Get sample ratenone0x07 with the rate in use (u16)
0x77Get battery statusnone0x08 with the state of charge in percent (u8) and a charging flag (u8)
0x78Remove calibration pointpoint index (u8)If removed, the new calibration factor and points, then 0x09 with 1; otherwise only 0x09 with 0
0x79Get calibration detailsnone0x0A calibration details
0x7ASet calibration modelmodel (u8): 0 linear, 1 quadratic, 2 piecewiseFits the model to the stored points and uses it if it fits, then the 0x0A details
0x7BSet zerononeWith nothing attached, tares and re-anchors the curve at the unloaded reading, then the 0x0A details

The supported sample rates are 20, 45, 90, 175, 330, 600, and 1000 SPS. The sample rate commands and 0x77 and 0x78 need firmware v3.x or newer; 0x79 to 0x7B need firmware with calibration models: v3.1.0 or newer for PCB V3, and v4.x for PCB V4.

The calibration details are a sequence of 0x0A notifications, each starting with its kind: the model, points and outcome of the last calibration command; the curve coefficients; the calibration coordinates and range; the calibration-fit residuals and the loads at the ends of the calibrated range; the load at the tare; one notification per point with its fitted load; and an end marker. The calibration crate README lists their layout. Measurement packets do not change, so the Tindeq and Frez apps receive readings converted by the model in use. Firmware without the models ignores 0x79 to 0x7B.

Calibration

This guide explains how to calibrate Crimpdeq for accurate measurements.

You can calibrate in two ways: with the Crimpdeq app or nRF Connect.

The Crimpdeq app is recommended because it is simpler and gives visual feedback. It also selects the calibration model: linear, quadratic, or piecewise linear (see Calibration Models).

⚠️ Note: The device ships with a default calibration. Test it first in the Frez or Tindeq app. If accuracy is already good enough for your load cell, you can skip this chapter.

Calibrate with Crimpdeq App

Prerequisites

  • Crimpdeq app on your platform:
    • Web version (no installation): app.crimpdeq.com
    • Native builds from the latest release: crimpdeq-app/releases/latest
      • Android: crimpdeq-app-v<x.y.z>.apk
      • macOS: crimpdeq-app-v<x.y.z>-macos.zip
      • Windows: crimpdeq-app-v<x.y.z>-windows.zip
      • Linux: crimpdeq-app-v<x.y.z>-linux.zip
  • A stable mounting point so the device hangs freely and remains still
  • At least one known weight (ideally near your typical maximum load)

Calibration Steps

  1. Connect to your Crimpdeq

    1. Launch the Crimpdeq app and grant the Bluetooth permission (Nearby devices on Android 12 and newer, location on Android 11 and older).
    2. Tap Scan, then tap Connect next to your device.
    3. Once connected, tap the device status in the app bar to see the battery, voltage, and sample rate. The Firmware field shows the Progressor version that the device reports to apps (2.0.4), not the Crimpdeq firmware release.
  2. Add calibration points

    1. Open the Calibration tab.
    2. For each point:
    • Hang the corresponding load on the device (or leave it empty for zero).
    • Enter the weight value in the app and tap Add Calibration Point.
    • Hold the weight still. The app adds the point once the load stays steady for one second, and reports when it does not settle.
    • Recommended: Add at least 2 points—zero (nothing hanging) and full scale (the maximum weight you expect to measure). The device supports up to 20 calibration points for finer accuracy.
  3. Check the result

    1. After adding at least 2 points, the Calibration Check plots the points against the curve the device applies and lists the fitted load and residual of each point. Two weights always fit a line, so add a point at a third weight to check a linear calibration; the app then shows the largest and RMS residual. Large residuals point to a swinging load or a wrong weight value. Residuals show how well the curve follows the calibration points, not the accuracy at other loads.
    2. To discard a bad point, tap its remove icon and confirm. The device removes the point and refits the calibration to the remaining points (firmware v3.x or newer).
    3. To start over, tap Reset Calibration To Default. This restores the default linear calibration and deletes every stored point.

Adding more calibration points (up to 20) improves measurement accuracy across the full load range.

Calibration Models

Firmware with calibration models (v3.1.0 or newer for PCB V3, v4.x for PCB V4) and Crimpdeq app v0.6.0 or newer let you choose how the device converts readings. The device fits the model to its points; the app shows the model the device reports in use.

ModelUseNeeds
LinearSame sensitivity at every load. The default.2 loads; a third checks the fit
QuadraticA sensitivity that changes gradually with the load4 loads, one in the middle half of the range
Piecewise linearA sensitivity that changes around one load: two straight lines joined at a break the device finds6 loads, 3 on each side of the break

Loads within 2% of the load range of each other count as one. Start with the linear model and switch only when its residuals show a consistent bend, such as residuals that change sign around one load. A model with more parameters always fits its own points better, so judge it with weights that are not calibration points (see Validate the Calibration).

  • Select a model in the Calibration Model card while no measurement is running; the info button explains each model and what it needs. If the stored points do not support it, the device keeps the model in use and the app shows why.
  • When you remove or add a point that leaves the points short of what the model needs, the device stores the points but keeps measuring with the previous calibration, and the app shows that the points are not applied yet.
  • The app shows the calibrated range, from the lightest to the heaviest calibration load. Outside it, the device extends the curve straight with the slope at the nearest end. The Measurements tab flags readings outside the range as extrapolated.
  • Tare subtracts an attached load, such as a hangboard; the curve stays where it was calibrated. Set Unloaded Zero, shown for the quadratic and piecewise models only, is for a device with nothing attached whose zero drifted: it re-anchors the curve at the current unloaded reading. Use it while no measurement is running. A linear reading is the same either way, so Tare is enough for it. The device rejects it when the reading is more than 1 kg from the calibrated zero.
  • Firmware without calibration models offers only the linear model. The Tindeq and Frez apps receive readings converted by the model in use.

Validate the Calibration

The residuals in the app are calibration-fit residuals, so check the calibration on the device with known weights:

  1. Hang the device as it is used and let it settle. Tare with nothing attached, or tap Set Unloaded Zero.
  2. Load reference weights in ascending steps across the range you use, then unload them in descending steps. At each step, wait until the reading is steady and note it next to the reference weight. Repeat the cycle at least three times.
  3. Include held-out weights: loads that are not calibration points, and some between them. Their error is the best estimate of the accuracy of the calibration.
  4. Compare the readings with the reference weights: the error at each load, the difference between the ascending and descending readings (hysteresis), the spread between cycles (repeatability), and the reading after unloading (zero return).
  5. If the held-out errors are larger than the calibration-fit residuals, the calibration points do not represent the load cell; add points at the loads with the largest errors, or keep a simpler model.

Repeat the check after a firmware update, a large temperature change, or a shock to the load cell.

Sample Rate

With firmware v3.x or newer, the Measurements tab lets you choose the sample rate (20 to 1000 SPS) while no measurement is running. The device keeps the rate across reboots, and the Tindeq and Frez apps receive data at that rate.

Calibrate with nRF Connect

Prerequisites

  • nRF Connect installed on your platform:
  • A stable mounting point so the device hangs freely and remains still
  • At least one known weight (ideally near your typical maximum load)

Calibration Steps

  1. Connect to Crimpdeq with nRF Connect:
    1. Launch the app and go to the Scanner tab.
    2. Find your device (for example, Progressor_7125) and tap Connect.
    3. Once connected, the app will display the device’s services and characteristics.
  2. Locate the calibration characteristic:
    1. Expand Unknown Service.
    2. Find the characteristic with UUID: 7e4e1703-1ea6-40c9-9dcc-13d34ffead57.
  3. Compute the hex value of your known weight:
    1. Open the Floating Point to Hex Converter.
    2. Select Single-precision (32-bit) floating point.
    3. Enter your known weight in kilograms in the Float value field.
    4. Click Convert to hex and save the resulting Hex value.
    5. Reverse the order of its four bytes, because the device reads the value in little-endian order. Example: 75.3 kg → 0x4296999a → 9a999642.
  4. Add the zero point:
    1. Hang Crimpdeq with no weight attached.
    2. Send the command 6900000000 (add a 0 kg calibration point) to the characteristic:
      • Tap the Up Arrow icon on the characteristic (7e4e1703-1ea6-40c9-9dcc-13d34ffead57).
      • Enter the command as a byte array.
  5. Add the known-weight point:
    • Commands and values are hex strings without spaces (letter case does not matter).
    1. Attach your known weight to Crimpdeq and wait until it hangs still.
    2. Build the calibration command by prefixing 69 to the reversed hex value.
      • Example: For 75.3 kg (9a999642), send: 699a999642.
    3. Send this command to the same characteristic (7e4e1703-1ea6-40c9-9dcc-13d34ffead57).
    • The device needs at least two points and accepts up to 20. Repeat this step with other known weights for higher accuracy.
  6. Verify:
    1. Remove the weight, send 64 to tare, and reattach the weight.
    2. The reported value should be within a small tolerance of the known weight. If not, send 74 to restore the default calibration and repeat steps 4-5.

⚠️ Note:

  • Use a weight close to the maximum load you expect to measure (while staying within device limits) for best accuracy.
  • Ensure the device is stable and stationary when sending commands.
  • Perform calibration in a controlled environment (avoid wind, vibration, and temperature swings).

Battery and Status LED

Charging

To charge the device:

  1. Plug the device into a power source using a USB-C cable.
  2. Set the power switch for your PCB revision:
    • PCB V1: turn the device on.
    • PCB V2, V3, and V4: leave the device either on or off; they support charging while switched off.
  3. Check that the red charging LED turns on.
    • On V3 and V4, the red LED is visible through the smaller of the two holes in the lid.
  4. When the red LED turns off, charging is complete. Unplug the USB-C cable.

On V3 and V4, the USB-C port and power switch are on the front wall of the case (V3 shown):

USB-C port and power switch on the V3 case

Status LED (PCB V2 to V4)

The RGB LED shows the device status:

LEDStatus
BlueOn and waiting for a Bluetooth connection
GreenConnected to an app
Blinking redBattery low (3.5 V or less); charge it soon
OffAsleep or switched off

With firmware v2.1.0 or newer, when the battery drops to 3.3 V while not charging, the device turns itself off to protect the battery. The device also sleeps when idle: with firmware v3.x and v4.x, after 4 minutes without a connection or 30 minutes connected without measuring or other commands; with older firmware, after 4 minutes of inactivity. Battery and sample-rate requests from a connected app do not keep it awake. To wake it, disconnect USB and turn the switch off and on again.

⚠️ Note: On V3 and V4, USB power keeps the device running while the cable is connected, even with the switch off.