Using FSRs

An FSR controller turns bed force into a switch input: Smoothieware receives the controller output as a probe signal.
An FSR controller turns bed force into a switch input #

An FSR (force-sensing resistor) under the bed can tell Smoothie when the nozzle touches the bed. FSRs can be used as bed leveling sensors with Smoothieboard to provide automatic bed leveling for 3D printers.

Overview

To use FSRs with the Smoothieboard, an auxiliary board is needed to interface the FSRs to the Smoothieboard’s endstop input. Smoothieware will accept this input as if it were a simple mechanical switch.

Connect the FSRs to an FSR controller. The controller turns the change in resistance into a switch signal that Smoothie can read on a Z-probe input. Check the controller’s supply and output voltage against your board pinout before connecting it.

Available FSR Controller Boards

JohnSL FSR Endstop Board

JohnSL on GitHub has created an FSR controller board specifically for this purpose. It is powered directly from the endstop pins, which makes installation straightforward.

See the JohnSL board files and wiring and John’s write-up. The board can get power from an endstop connector if the supply and pin order match. See the AndOrNot FSR pad design for a delta printer mounting example.

The original suppliers included AndOrNot, TriD Printing, and UltiBots.

Toucher - 4-Point FSR Controller

For a square bed on a Cartesian printer, see the four-input Toucher controller and its FSR mounts.

Community Discussion and Resources

The Deltabot group is where most discussion on using FSRs is located. Look there for mounting examples and other controllers, including alternative boards like the Arduino Mini, WingWong’s Trinket-derived design, and FSR mounting techniques and best practices.

Configuration

Set up the input as a Z probe. These examples use 5 mm/s for probing and start 5 mm above the bed. Set the pin to the one you actually wired and set the speeds and height for your machine. The ^ turns on the pull-up and ! inverts the input. Check the trigger state before moving the nozzle. The probe pin depends on which endstop connector you use, so refer to the Smoothieboard pinout to find the correct pin for your setup. For example, on V1 1.28!^ means pin 1.28, inverted (!), with the pull-up enabled (^).

zprobe.enable            true
zprobe.probe_pin         1.28!^
zprobe.slow_feedrate     5
zprobe.fast_feedrate     100
zprobe.return_feedrate   50
zprobe.probe_height      5
[zprobe]
enable = true
probe_pin = PB10^
slow_feedrate = 5
fast_feedrate = 100
return_feedrate = 50
probe_height = 5

To use the probe for leveling, add a leveling strategy. This is an example for three-point leveling, with points the nozzle can reach inside a 200 mm bed (change them for your bed):

leveling-strategy.three-point-leveling.enable  true
leveling-strategy.three-point-leveling.point1  10.0,10.0
leveling-strategy.three-point-leveling.point2  190.0,10.0
leveling-strategy.three-point-leveling.point3  100.0,190.0
[zprobe]
leveling = three point

[three point leveling strategy]
point1 = 10.0, 10.0
point2 = 190.0, 10.0
point3 = 100.0, 190.0

For a Cartesian printer, see three-point leveling or grid leveling. Pick probe points the nozzle can reach inside the bed. For a delta printer, see delta calibration.

Troubleshooting

Common Issues

FSR not triggering:

  • Check wiring: verify all connections between the FSRs, the controller board and the Smoothieboard.
  • Test the controller output: use a multimeter to check that the controller board outputs a signal when the FSRs are pressed.
  • Verify the pin configuration: the probe pin must match the physical connection.
  • Check inversion: try removing or adding the ! (inversion) flag in the pin configuration.
  • Adjust sensitivity: most FSR controller boards have a potentiometer to set the trigger threshold, so try increasing the sensitivity.

False triggers:

  • Reduce sensitivity: adjust the controller board’s potentiometer so it needs more force.
  • Add debounce: increase debounce_ms in the probe options to filter electrical noise.
  • Check mechanical stability: the FSRs must be mounted firmly and the bed must not wobble.
  • Shield the wiring: route the probe wire away from motor wires, and use shielded cable if you suspect electrical noise.
  • Check the weight distribution: the nozzle must load all the FSRs evenly during probing.

Intermittent detection:

  • FSR placement: place the FSRs where the nozzle will consistently contact them.
  • FSR condition: check for damaged or worn FSRs, they degrade over time with use.
  • Temperature: FSRs can be affected by heat, so keep them away from the heated bed. Heat from the bed can change the reading, so test with the bed at the temperature you actually print at, keeping your hand off hot surfaces.
  • Connectors: verify that all connectors are secure and make good contact.

Testing Your Setup

With the nozzle clear of the bed, send M119. Press the bed and send it again. Look for the probe state to go from 0 to 1, then back to 0 when you let go. Do this at each probe point before letting Smoothie lower the nozzle. If the state doesn’t change, check the wiring and the configuration. You can also check the Z min endstop state in the output of M119.

FSRs vs BLTouch

With FSRs, the nozzle touches the bed directly, so the bed needs mounts that pass that force to the sensors. A BLTouch-style probe mounts on the print head and touches the bed with its own pin. Set its offset from the nozzle when you configure it.

FSRs:

  • Sense the actual nozzle contact with the bed, and measure the true nozzle-to-bed distance.
  • Are more reliable on textured or irregular surfaces.
  • Must be mounted under the bed or build plate, and need an auxiliary controller board, so installation is more complex.
  • Are often preferred for delta printers, where the whole effector contacts the bed evenly.

BLTouch:

  • Is an optical/mechanical probe with a deployable pin.
  • Is easier to mount (it attaches to the print head) and is a self-contained unit, so installation is simpler.
  • May have issues with certain bed surfaces (glass, mirrors).
  • Measures a probe-to-bed distance, so it needs a Z offset.
  • Is popular on Cartesian printers, where mounting a probe near the nozzle is easy.

For more information about BLTouch, see the probe documentation.

See the 3D printer guide for machine setup and Endstops for the switches used in homing.

  • ZProbe - main probing documentation

Appendix: original configuration examples

This comes from the older wiki page and has not been checked against the current firmware. The current firmware has no debounce_count setting for the Z probe (the V1 source uses debounce_ms, see probe options), and V2 pin names for the STM32H745 board are not the P1_28 style used below. The text is kept so nothing from the older page is lost; use the examples in Configuration for current settings.

# Z probe configuration for FSR
zprobe.enable                        true
zprobe.probe_pin                     1.28!^       # Pin connected to FSR controller output
zprobe.slow_feedrate                 5            # Slow probe speed in mm/sec
zprobe.fast_feedrate                 100          # Fast probe speed in mm/sec
zprobe.return_feedrate               50           # Speed to return after probe
zprobe.probe_height                  5            # Height above bed to start probe
zprobe.debounce_count                10           # Number of samples for debouncing

# Leveling strategy
leveling-strategy.three-point-leveling.enable  true
leveling-strategy.three-point-leveling.point1  10.0,10.0    # First probe point
leveling-strategy.three-point-leveling.point2  190.0,10.0   # Second probe point
leveling-strategy.three-point-leveling.point3  100.0,190.0  # Third probe point

Pin syntax:

  • 1.28!^ means pin 1.28, inverted (!), with pull-up enabled (^)
  • Adjust based on which endstop connector you’re using
[zprobe]
enable = true
probe_pin = P1_28!^                  # Pin connected to FSR controller output
slow_feedrate = 5                    # Slow probe speed in mm/sec
fast_feedrate = 100                  # Fast probe speed in mm/sec
return_feedrate = 50                 # Speed to return after probe
probe_height = 5                     # Height above bed to start probe
debounce_count = 10                  # Number of samples for debouncing

[leveling_strategy.three_point]
enable = true
point1 = 10.0, 10.0                  # First probe point
point2 = 190.0, 10.0                 # Second probe point
point3 = 100.0, 190.0                # Third probe point

Pin syntax:

  • P1_28!^ means pin P1.28, inverted (!), with pull-up enabled (^)
  • Adjust based on which endstop connector you’re using

The older page also advised, for false triggers, to increase zprobe.debounce_count to filter electrical noise, and to try different values (typically 5-20) if the probe triggers intermittently. With the current setting, try different debounce_ms values instead.

This is a wiki! If you'd like to improve this page, you can edit it on GitHub.