TrySet Resistance R (Ω) to 10000 and Capacitance C (nF) to 100, then increase capacitance while comparing cutoff and settling time.
ObserveThe default pair yields a 1.00 ms time constant, 159.15 Hz cutoff and 5.00 ms settling; the 60 Hz line says the cutoff is too high.
ExplainResistance R (Ω) times capacitance gives the time constant; cutoff is its reciprocal divided by two pi, and settling is five time constants.
Technical boundaries. The calculation assumes a single ideal RC stage without loading or component tolerances. Its 60 Hz message switches when cutoff falls below 60 Hz; attenuation is calculated only in that branch, without an entered rejection target.
RC Filter Calculator
Use resistance and capacitance to estimate the cutoff, then check that the desired signal can pass.
viewof rc_r = Inputs.range([100,100000], {value:10000,step:100,label:"Resistance R (Ω)"})viewof rc_c_nF = Inputs.range([1,10000], {value:100,step:1,label:"Capacitance C (nF)"})
Try it yourself! Use the RC filter calculator above to trade off noise rejection against response time. The goal is not “maximum filtering”; the goal is “enough filtering while still seeing the real sensor event.”
1. Baseline
Start with R = 10 kΩ and C = 100 nF. Notice the cutoff is about 159 Hz.
2. More filtering
Increase C to 1 µF. Noise rejection improves, but the sensor response becomes slower.
3. Too much filtering
Push R or C very high and ask whether a fast event would be delayed or missed.
Design question: for a sensor that changes every few seconds, what cutoff removes motor noise without hiding the real change?
Rise Time: A first-order step rises from 10% to 90% in about 2.2τ; about 5τ reaches within 1% of the final value.
Sensor Applications:
Noise Filtering: Remove electrical noise from analog sensor readings.
Debouncing: Smooth mechanical switch bounces.
Anti-Aliasing: Filter high frequencies before ADC sampling.
Smoothing: Reduce jitter in sensor measurements.
Example: A 10 kOhm resistor with a 100 nF capacitor gives a time constant of 1 ms and a cutoff of about 159 Hz. That removes faster electrical noise while preserving slower sensor changes.