keepcalculator

06 Numbers and Powers

How to Reduce Drift and Noise in Flexible Sensors

Card No. 06·43940 · Updated · Standard formula, shown below

Flexible sensors—used in wearables, soft robotics, and health monitoring—often suffer from signal drift (a slow change in baseline over time) and noise (random fluctuations that obscure the true reading). This guide walks you through practical steps to stabilize the output, covering hardware fixes, shielding, and software filtering. You’ll need basic soldering tools, a multimeter, and access to your sensor’s data acquisition system.

What You’ll Need

  • Flexible sensor (e.g., strain, pressure, or bend sensor)
  • Multimeter or oscilloscope
  • Soldering iron and solder (or conductive epoxy)
  • Shielding material (copper tape, conductive fabric, or foil)
  • Insulating tape or heat-shrink tubing
  • Microcontroller or data acquisition system (e.g., Arduino, Raspberry Pi)
  • Power supply (battery or regulated DC supply)
  • Software for data logging (e.g., Python, Arduino IDE)
  • Optional: low-pass filter components (resistor, capacitor)

Step-by-Step

  1. Check the sensor’s mechanical stability. Ensure the sensor is not being stretched, bent, or twisted beyond its rated range. Mechanical stress beyond spec causes permanent deformation and baseline drift. Mount the sensor on a stable substrate (e.g., thin plastic or fabric) that matches its flexing direction.
  2. Secure all connections. Loose wires are a major source of intermittent noise. Solder wires directly to the sensor’s contact pads if possible. If soldering is not feasible, use a crimped connector and wrap the joint with insulating tape. Avoid breadboard connections for permanent setups—they become unreliable over time.
  3. Use a regulated power supply. Fluctuations in supply voltage directly affect sensor output, causing drift. A battery (e.g., 3.7V LiPo) or a regulated bench supply is better than a wall adapter with ripple. If using a microcontroller, use its regulated 3.3V or 5V output, but check the sensor’s required voltage.
  4. Add shielding. Flexible sensors are often unshielded and pick up electromagnetic interference (EMI) from nearby electronics. Wrap the sensor and its lead wires with copper tape or conductive fabric, leaving the active sensing area exposed. Connect the shield to ground at one end only (to avoid ground loops).
  5. Twist the lead wires. If you have two wires going to the sensor, twist them together. This cancels out magnetic interference. Keep the wires as short as possible—long wires act as antennas.
  6. Apply a low-pass filter. Noise is often high-frequency (e.g., 50/60 Hz mains hum or radio interference). A simple RC low-pass filter can smooth the signal. Choose a cutoff frequency below your signal’s frequency but above the noise. For a strain sensor reading slowly (e.g., 1 Hz), a cutoff of 10 Hz works. Use a resistor (e.g., 10 kΩ) and capacitor (e.g., 1 µF) to get a cutoff of ~16 Hz (formula: 1/(2πRC)).
  7. Implement software filtering. In your code, apply a moving average or a low-pass filter (e.g., exponential moving average). For example, in Arduino: smoothed = 0.9 * smoothed + 0.1 * raw. Adjust the alpha (0.1) based on your noise level—lower values smooth more but add lag.
  8. Calibrate the baseline. Drift often appears as a slowly changing zero point. Record the sensor output when it is unloaded (or in a known state) at the start of each session. Subtract this baseline from your readings. If drift is temperature-related, you may need to compensate with a temperature sensor.
  9. Use differential measurement. If possible, use a Wheatstone bridge or a differential amplifier to cancel common-mode noise. This is especially effective for resistive sensors like strain gauges.
  10. Test and iterate. After each change, log data for at least a minute without touching the sensor. Compare the standard deviation (noise) and the slope of the baseline (drift). Aim for a noise level below 1% of your signal range and drift below 0.5% per hour.

Common Mistakes

  • Over-flexing the sensor. Exceeding the bend radius permanently damages the sensing element.
  • Using long unshielded wires. They pick up noise from nearby electronics.
  • Ignoring power supply ripple. A noisy supply adds noise directly to the output.
  • Filtering too aggressively. A very low cutoff frequency will smooth out real signal changes, making the sensor sluggish.
  • Forgetting to ground the shield. An ungrounded shield is useless and can act as an antenna.
  • Skipping baseline calibration. Without a baseline, drift is indistinguishable from real signal.

Tips

  • Use a shielded cable (e.g., coaxial) for the sensor leads if possible.
  • Apply a conformal coating (e.g., silicone spray) to protect the sensor from humidity, which can cause drift.
  • Place the sensor away from motors, transformers, and other EMI sources.
  • In software, use a median filter for spikes—it removes outliers better than averaging.
  • For long-term drift, take periodic baseline readings and update the offset.
  • If using a microcontroller, use the internal ADC with a reference voltage that is stable (e.g., internal 1.1V reference) rather than the supply voltage.

Troubleshooting

Noise is still high after shielding. Check that the shield is grounded properly. Try using a twisted pair of wires instead of parallel wires. Also, verify that the sensor is not vibrating or moving slightly—mechanical micro-movements cause noise.

Baseline drifts even when the sensor is untouched. Temperature changes are the most common cause. Measure the temperature near the sensor and see if the drift correlates. If so, you need temperature compensation. Also, check if the sensor is exposed to air currents or sunlight—enclose it if possible.

The signal is noisy only when the microcontroller is connected. The microcontroller’s digital switching can inject noise into the analog reading. Use a separate ground for the sensor and the digital circuits, and add a capacitor (e.g., 100 nF) between the sensor’s power and ground near the sensor.

The output jumps suddenly. This often indicates a loose connection or a crack in the sensor. Inspect the solder joints and the sensor’s surface for damage. If the sensor is cracked, it may need replacement.

Filtering makes the signal too slow. Increase the cutoff frequency or reduce the smoothing factor. You need to find a balance between noise reduction and response time.

Frequently Asked Questions

Q: What is drift in a flexible sensor?
A: Drift is a slow, unintended change in the sensor’s output over time when the measured physical quantity remains constant. It often comes from material creep, temperature changes, or aging of the sensor.

Q: What is noise in sensor readings?
A: Noise is random, high-frequency fluctuation in the output signal. It can be caused by electromagnetic interference, mechanical vibration, or thermal effects.

Q: Can I completely eliminate noise?
A: No, but you can reduce it to an acceptable level. A combination of shielding, filtering, and proper grounding can reduce noise to below 1% of the signal range.

Q: How do I choose the right cutoff frequency for a low-pass filter?
A: The cutoff should be higher than the highest frequency of your signal of interest, but lower than the noise frequency. For a slowly varying sensor (e.g., body movement), a cutoff of 5–20 Hz is typical. If you don’t know the signal frequency, start with 10 Hz and adjust.

Q: Is it better to use analog filtering or digital filtering?
A: Both have advantages. Analog filters (RC) are simple and fast, but they add components. Digital filters are flexible and can be adjusted in code. In practice, a combination works best: a simple RC filter to remove high-frequency EMI, then digital smoothing in software.

Q: Why does my sensor drift when I touch it?
A: Touching the sensor transfers heat and may cause slight mechanical stress. Also, your body can act as an antenna, injecting 50/60 Hz noise. Wash your hands and ground yourself, and try to avoid touching the sensor during measurements.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →