Electronic – arduino – Protecting a comparator in a tension measurement device

arduinocomparatormicrocontrollerswitches

I am building a device to measure the tension of a conducting wire using an Arduino.

The basic circuit concept consists of two stages:

  1. The wire is placed in a strong magnetic field. Then the Arduino send a 2 seconds saw-tooth pulse going up to 24V through the wire which cause it to vibrate in its fundamental frequency ranging around 60-200 Hz.

  2. Since the wire is now vibrating in a magnetic field, it produces an induced AC EMF with the same vibration frequency. The voltage on the wire is amplified using a comparator which sends a square wave back to the Arduino where the frequency is measured. Calculating the tension from the fundamental frequency is then very simple to do.

A more detailed schematic:

schematic

simulate this circuit – Schematic created using CircuitLab

I am looking for a way to protect the 5V comparator from the 24V pulse going through the wire that will not affect my ability to measure the induced voltage later on.

An Ideal solution would be a way to switch the system from the "pulse stage" to the "measure stage", each time disconnecting the unnecessary part of the circuit. I was thinking of achieving that using a MOSFET switch but got it all messed up. I did manage to pull it off with a mechanical relay disconnecting the comparator but I rather find a different solution.

Note that this is an individual device that will not be mass produced, so a solution does not have to be cost efficient.

This is my first circuit I ever design and my first time asking for help on StackExchange so if there is anything unclear please tell and I'll be happy to explain some more.

Best Answer

The MAX913 has a fairly high input bias current (8uA maximum) so it won't tolerate too much series resistance in the input before you start to see significant errors. Even 1000 ohms can cause more than 5mV offset.

A series resistor of maybe 500 ohms and back-to-back (inverse parallel) Schottky diodes (eg. 1N5817) across the input may work for you. Presumably the signal from the wire is less than a couple hundred mV (if not you'll be exceeding the input CM range of the comparator and also you'd get some damping of the wire with this configuration). Add another 100 ohms from the diodes to the input if you feel paranoid. Also a matching resistance of about 500 or 600 ohms respectively from the inverting input to ground to match off the offsets due to bias current.

Edit: We also need to consider the resistance of the wire, so the resistance should be 510 + 100 + 200 ohms in this case, or 810 ohms.

The input bias current of the comparator can be as much as 8uA from each input, but the difference between the two currents is tightly matched.. only 300nA at room temperature typical and 1uA worst case over temperature. That means that if we match the resistance, the offset due to the bias current will only be 0.24mV typical and 0.8mV maximum worst case. Since the comparator itself has an offset of 0.1mV typical and 3mV maximum worst case, it doesn't change things much.

Eg:-

schematic

simulate this circuit – Schematic created using CircuitLab