Electronics for Mechanical Engineers: Dividers, Filters, Op-Amps, ADCs and the 555 Timer
Sensors produce small, noisy signals; actuators need more current than a logic pin can give. Between them sits a small set of standard circuits: voltage dividers, RC filters, op-amp amplifiers, transistor or relay drivers, and timers. Knowing their equations lets you read a datasheet, size a resistor or check why a reading is noisy.
Key takeaways
- Ohm's law V = I·R and the divider Vout = Vin·R₂/(R₁ + R₂) cover most sensor interfacing.
- An RC low-pass has cut-off fc = 1/(2πRC) and falls at 20 dB per decade; use it before an ADC as an anti-alias filter.
- Non-inverting op-amp gain = 1 + Rf/Rg; instrumentation amplifiers amplify bridge signals and reject common-mode noise.
- ADC resolution: LSB = full-scale range / 2ⁿ; a 16-bit ±10 V converter resolves about 305 µV.
- 555 astable: f = 1.44/((R₁ + 2R₂)·C); monostable pulse t = 1.1·R·C. Always put a flyback diode across relay coils.
1. Basics
2. Filtering
Higher-order active filters (Butterworth, Bessel) fall faster: a 4th-order filter falls at 80 dB/decade. Use them before an ADC to stop aliasing, choosing fc below half the sample rate.
3. Op-amp circuits
| Circuit | Gain | Use |
|---|---|---|
| Voltage follower (buffer) | 1 | Isolate a high-impedance source |
| Non-inverting amplifier | 1 + Rf/Rg | Amplify sensor voltages |
| Inverting amplifier | −Rf/Rin | Summing, scaling |
| Difference amplifier | R2/R1 (matched) | Remove common voltage |
| Instrumentation amplifier | 1 + 2R/Rg (typical 3-op-amp) | Strain-gauge bridges, thermocouples |
| Integrator / differentiator | 1/(sRC), sRC | Acceleration to velocity, rate signals |
4. Analogue-to-digital conversion
A 16-bit converter on ±10 V has an LSB of 305 µV. Match the input range to the signal: a 10 mV signal on a ±10 V range uses only 33 codes.
5. Switching loads
- Transistor switch: choose base current IB ≈ IC/10 for saturation; RB = (Vlogic − 0.7)/IB. Logic-level MOSFETs need no base current.
- Relays and solenoids: put a diode across the coil (cathode to +) to clamp the inductive spike when switching off.
- Optocouplers: isolate PLC or DAQ inputs from noisy field wiring.
- Contact bounce: mechanical switches bounce for 1–10 ms; debounce with an RC + Schmitt trigger or in software.
6. The 555 timer and counters
Example: R₁ = 1 kΩ, R₂ = 10 kΩ, C = 10 µF → f = 6.86 Hz, duty 52.4 %.
7. Calculators
555 timer, RC filter and ADC resolution
8. Self-test: check your understanding
Pick an answer to see the explanation. Numerical answers are accepted within the stated tolerance (±3 % unless noted).
9. References and further reading
- Horowitz, P. and Hill, W., The Art of Electronics, 3rd ed., Cambridge University Press, 2015.
- Texas Instruments, NE555 / LM555 datasheet; CD4017B datasheet.
- Analog Devices, A Designer's Guide to Instrumentation Amplifiers, 3rd ed.
- Kester, W. (ed.), Data Conversion Handbook, Analog Devices / Newnes, 2005.