Docsity

APPUNTI SENSOR SYSTEMS, Sbobinature di Sensori e Trasduttori

Toggle sidebar
bg1
1
Sensor Systems
Example of sensors in the smartphone
In all the smartphones we will found inertial measurement unit, which is a combination of
an accelerometer and a gyroscope that provides acceleration on x-y-z and angular velocity;
then we will find microphones for audio acquisition part (by now there are almost two
microphones), then there is for example a barometers and cameras.
CMOS image sensor: the first thing that we think about is the number of pixels and
nowadays we can have two solutions:
• Big pixels (for example not a high number of pixels like 12 of 1,8 microns size) so not
many pixels and large pixel's size that are able to collect more light and so giving
better performance in low light environment;
• Have a large number of pixels (for example 48+ pixels).
In the S7 smartphone the sensor used for the camera is a combination of two chips: the
CMOS CIS sensor which is the light detecting part of the circuit that contains the photodiode
and the amplifier and literally on the back one on the top of the other the digital circuit.
What we can see from this image is that we have this line with these big interconnects used
to connect the chip one in top of the other. The top part is the image sensor and is a flip
chip bonded to the electronic part of the sensor.
Why would we connect two different chips together? Couldn't we put the two sensors on
the same chip? We could but probably it won't be the best solution because image
optimizing process are not really well suited to fit high density logic so we would use a
specifically tuned process for image sensor and purely digital process for the digital part
(and so we will have the best solution for both) and we connect them as closest as possible
because transferring data need power and the less is the distance and less is the power
needed to transfer the same amount of data. So, we will see that a common solution is to
move the digital processing as closest possible to the analog part because it's easier to deal
with and then we can compress the data to reduce the consumption and optimize the
performance. Let's take a look of this zoom section of the image sensor:
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Anteprima parziale del testo

Scarica APPUNTI SENSOR SYSTEMS e più Sbobinature in PDF di Sensori e Trasduttori solo su Docsity!

Sensor Systems

Example of sensors in the smartphone

In all the smartphones we will found inertial measurement unit , which is a combination of an accelerometer and a gyroscope that provides acceleration on x-y-z and angular velocity; then we will find microphones for audio acquisition part (by now there are almost two microphones), then there is for example a barometers and cameras.

CMOS image sensor : the first thing that we think about is the number of pixels and nowadays we can have two solutions:

  • Big pixels (for example not a high number of pixels like 12 of 1,8 microns size) so not many pixels and large pixel's size that are able to collect more light and so giving better performance in low light environment;
  • Have a large number of pixels (for example 48+ pixels).

In the S7 smartphone the sensor used for the camera is a combination of two chips: the CMOS CIS sensor which is the light detecting part of the circuit that contains the photodiode and the amplifier and literally on the back one on the top of the other the digital circuit. What we can see from this image is that we have this line with these big interconnects used to connect the chip one in top of the other. The top part is the image sensor and is a flip chip bonded to the electronic part of the sensor.

Why would we connect two different chips together? Couldn't we put the two sensors on the same chip? We could but probably it won't be the best solution because image optimizing process are not really well suited to fit high density logic so we would use a specifically tuned process for image sensor and purely digital process for the digital part (and so we will have the best solution for both) and we connect them as closest as possible because transferring data need power and the less is the distance and less is the power needed to transfer the same amount of data. So, we will see that a common solution is to move the digital processing as closest possible to the analog part because it's easier to deal with and then we can compress the data to reduce the consumption and optimize the performance. Let's take a look of this zoom section of the image sensor:

We can see that there are vertical black lines, they are literally holes that defines the pixels so this is a pixel. Behind the pixels there are the corresponding electronic part (for example the transistors). Then, we see that on top of the pixels there are rectangles of different colors and this is the color filter because a silicon sensor is sensitive to a large range of wavelength and if we want to detect colors, we have to add something that allow to pass only that color of light. The color filter alternates because in a sensor we have one quarter of the pixel that is sensitive to the red light, one quarter that is sensitive to the blue light and the remaining half is sensitive to the green light: this is done because the human eye is done in a way to detect better the green wavelength and so, this sensor is done in order to better perform the human eye characteristics.

After the chip is completed, so after the chip is bonded, we add on the top other parts for other functionality like these kinds of domes that are micro lenses used to focus the light inside the active area of the pixel where we have the best sensitivity. As we can see the micro lenses don't seem to be aligned with the pixels: this because the cameras of the smartphones are very small and so, the lenses are very close to the sensor itself. So, we cannot expect the lens to provide planar wave, the lens provides a light that in the center is in orthogonal direction but on the side is skewed (distorta) so, we offset the lenses toward the edge of the sensor to compensate the angle of the light and so the skewed light is than focused in the correct spot.

More advance thing is the dual pixel phase detection autofocus: in the old cameras we have to focus manually changing the position of the lens element to focus the correct target. The first implementation of an autofocus method was based on contrast, so we move the lens until we get the maximum contrast between adjacent pixels and this gives us information if it's in focus. But when we are in out of focus, we don't know if we are too close or too far, so we have to move the lens in one direction and see if it gets better or worst. We can do better by splitting each pixels into two parts, then use some optic thing where if the light is correctly focused it will impinge (interferire) in one specific position of the pixels if it's out of focus in front maybe the position is more close together and if it's out of focus is more distant so we don't only know if we are in focus or out of focus but we know also in which direction we are in out of focus. This is done by the combination of electronic and optical engineering.

So, we sent first the light at the red wavelength and we see how much light will came back, the same for the other wavelength and then by a little bit of processing we are able to detect the relative concentration of the two and this gives us not only the heart rate but also the oxygenation of the blood. The processing is done all in the same chip

Proximity sensor : it's an optical detector to detect if for example we are holding the phone near our ear. The amount of the light that is received is proportional to the distance from our head, but the LD is modulated in order to don't have the influence of the environment light. We put two functionalities (la detezione della distanza del telefono della testa e il fatto di aggiustare la luminosità dello schermo in base alla luce ambientale) into the same detector because, in the end. the only thing we have to add is 4 time the detection circuit, so it's more economical.

Pressure Sensors : in the smartphone is present because provides information about altitude and it's used to detect variation in altitude. Very low power consumption.

Gyroscope + Accelerometer = Inertial measurement unit use to provide the orientation of

the phone respect the ground, the movement of the phone, for gaming when we are moving our phone. They have specific functionality built in, so the accelerometer is able to do its own processing and is able to distinguish the single event that characterize a step. Very low power consumption during this step measurements.

Many phones have multiple gyroscopes: for example, we can have one gyroscope in the camera with a microcontroller. If we have for example more than one camera probably each camera has its own gyroscope.

Compass : magnetic sensor to correctly orient the maps, it has three axes where it measures the magnetic field. Sometimes we have to calibrate it because it doesn't have anything that actually point to the north but it only measures x-y-z: so, it doesn't know if there is some offset and so, swinging the phone around, we are just moving through the full scale (from - full scale to + full scale) in all the three directions and it can figure out where the actual zero is and know where the north is.

The last sensor (in the example of the microphone) is the touch screen panel done with capacitive sensor and controller.

The sensors can be classified based on 2 main parameters:

1. Classification based on physical phenomena: if we have a sensor that measure light, we can define it as an optical sensor (photodiode, infrared sensor, CCD, CMOS, APS, etc.). We can have also thermal sensor that measures the temperature (RTD, thermistor and thermocouple), magnetic sensor that measure magnetic field (Hall effect sensor, magneto-resistive sensor), mechanical sensor that measures strain (strain gauge), force (piezoelectric sensor), displacement and distance (capacitive, inductive, acoustic or optical) and acceleration and orientation (MEMS: technology that allows to manufacture mechanical system inside chip), viscosity, pressure, etc., chemical sensor that measure pH (pH-meter); 2. Classification based on measuring mechanism: in this case, we refer to what kind of signal the sensors directly provides, such as in which way they provide a signal. So, we can have resistive changing, capacitive changing or inductive changing; also, they can be based on the piezoelectric effect , where the deformation of the piezoelectric material provides a separation of charges. In this classification, we can also find Hall effect and MEMS technology.

Let’s now consider the principal sensors’ characteristics: § Sensitivity: it is just the linearization of the I/O characteristic of the sensor around the working/operating point. In other words, it is the ratio between the change in the output signal to a small change in input physical signal (=slope of the I/O fit line).

§ Resolution (LSB): the smallest increment of measure that a device can make (Least Significant Bit);

§ Full Scale Range (FSR): the maximum interval of measure that a device can cover; § Number of bits (n): in sensor with digital output, 2n^ is the number of levels in which the FSR is divided and so, we can relate these 2 quantities in the following way:

!!^ =

§ Accuracy: error between the result of a measurement and the true value (Gold Standard) being measured; § Repeatability/Precision: the ability of the sensor to output the same value for the same input over a number of trials;

If the sensor is not really accurate, but it is very precise, we can calibrate out the error because we can compensate it.

§ Linearity: the deviation of the output from a best-fit straight line for a given range of the sensor. We can have differential Non-Linearity (DNL) , such as the

difference of the real step compared to the ideal one: DNL(i) = D in(i)-LSB , but

also we have the integral Non-Linearity (INL), which is the cumulative sum of the DNL before the given value considered or, in other words, the distance between real and ideal output voltage;

§ Transfer function (frequency response): the relationship between physcial input signal and electrical output signal as a function of frequency. The bandwidth is the frequency range between the lower and the upper cut-off frequencies, within the sensor transfer function is constant gain or linear; § Noise: random fluctuation in the measured value. In the case in which is average value is zero and its variance is not null, means that it introduces a variation with

Operational amplifiers

We will start with a briefly review on the basic configurations of the OpAmps and then we are going to see the application of the OpAmps as filters, some problematic like compensation and finally a digital use of the OpAmps as comparator and Schmitt trigger. An operation amplifier, in its heart, is a differential amplifier whose output is the differential input multiplied by a gain which is typically frequency-dependent, such as:

!! = !"#$$ ∗ $(&)

Typically, the gain A is very big (order 10^6 ) and so, under normal operating assumption, we can say that the reasonable output voltage could be reach with very small differential input voltage. In the first approach to OpAmps, we say that the differential input is 0 V. It is true as long as the circuit is configured in a negative feedback configuration , which means that the output of the circuit VO is feedback to a summing node so that the circuit senses its output and corrects its output thanks to the feedback. So, under negative feedback assumptions, we can say that the differential feedback is zero. Other characteristic of the OpAmps is the input impedance, such as the current that enters in the terminals, is very high, at least infinity (=no current enters in the OpAmps, ideally).

In the INVERTING configuration of the OpAmps, we have a differential voltage, which is zero, and a certain input voltage different from zero VIN: in this condition, we generate a certain amount of current flowing in R 1 and this current, thanks to a current Kirchhoff law, since it cannot enter in the OpAmp, it flows in R 2 generating a voltage across the R 2 At this point, the output voltage is given by the following expression:

This the “inverting configuration” because the gain is negative. Other things that we have to remember are that:

  • the current that enters in the amplifier circuit is set by the R 1 resistor and so, the input impedance is set by R 1 ;
  • the output impedance can be considered to be zero, such as an ideal voltage source in the output.

Another common configuration is the NON-INVERTING configuration , in which we move the input voltage to the non-inverting terminal of the OpAmps and we can obtain that the output voltage is related again to R 1 and R 2 , but in this case they are related in different way:

The advantage of this circuit is that the input impedance is infinity because we enter directly in the non-inverting terminal of OpAmp and so, ideally, it is not required any current (this is helpful when the sensor has an high impedance: in this case, an inverting configuration is not suitable because we have to much current (we could increase the value of R 1 but this generates other problems in term of bandwidth and noise)). This circuit is suitable for high impedance sensors but also if we want a non-inverted gain of the voltage. Nothing changes in term of output impedance.

Another possible circuit is the voltage and current adder : with this circuit what we want to do is to sum voltages or currents and to do that we can use the following configuration.

This circuit takes an n-input voltage sources and, using a virtual ground configuration, converts the voltage vi into a current i through the resistor Ri. Then all the currents enter in the virtual ground and so, due to the negative feedback, the sum of the currents flows in the resistor R. it means that we are summing up all the currents and we obtain an output voltage that is dependent on the sum of the currents. Hence, we can consider this circuit either as a current adder (if we just replace the input voltage sources with current sources and we skip the resistors Ri) or as a voltage adder because it sums each voltage with a gain which depends on the feedback resistor R (equal for all) and the conversion resistor Ri

If there are no mismatches , the Common-mode gain, such as the transfer between the average voltage between v 1 and v 2 and the output, is zero. However, due to the fact that the two gains are set by physical resistors, R 1 is not equal to R3 (in reality, we have a slightly different resistor value, which is given by the tolerance of the resistor, 0.05% up to 1%). So, due to mismatches, the gains can be different meaning that not only we can have a slightly off in the differential gain, but also, we can have a common mode gain which can be expressed with the following expression:

Hence, even if this circuit, in an ideal implementation, works well, in practice this is not the case due to this tolerance in the real components.

A second downside of this component is that the positive input impedance and the negative input impedance are different :

  • the positive input impedance is essentially the series of R 3 and R 4 ;
  • the negative input impedance is set by R 1. Unless, we choose R 1 as the sum of R 3 and R 4 , the 2 input impedances are different meaning that we are asking to the two voltage sources different amount of current to be provided to the circuit.

A solution to that is the Instrumentation Amplifier (INA), which is the circuit that we will actually use whenever we want to treat properly a differential signal. it has lots of advantages: firstly, both the voltage sources V 1 and V 2 enter to the same non-inverting terminal of two OpAmps meaning that both sources see an ideally input impedance. We are NOT asking any current to be provided by the two voltage sources and so, if we want to have the same behavior of infinity input impedance with the voltage subtractor, we need to add a buffer to the input of the circuit and by the time we do that we hand-up with 3 OpAmps. This INA still uses 3 OpAmps in a smarter way : indeed, it is a single chip.

So, the differential gain in this circuit can be split into 2 parts/stages (green line):

  1. First stage;
  2. Voltage subtractor.

The advantage of this INA in respect to two buffers followed by a subtract is that we are able to set the gain of the circuit based on the RG.

Indeed, the first stage of the circuit provides a gain over V 2 -V 1 that is AI in the formula:

This is a differential gain meaning that we have a differential input, and, in turn, we have a differential output. Then, we use the voltage subtractor to bring back the single output and in this stage, we can also have a gain choosing the two resistances different. In real circuits, all of the resistors in the INA are equal/identical , they are built inside the integrated circuit and within the same chip is possible to achieve excellent tolerances (very small variations among the 6 resistors) and it has a very positive effect over the Common- mode gain , that is very close to zero. Remember that the common mode gain is the ratio between the output voltage an the common-mode voltage, which is the average between the two voltages. Also, the differential amplifier wants that its output should be proportional on the difference of the inputs, not their average!

A parameter that describes the performances of the INA is the “CMRR” (common mode rejection ratio), which indicates how little of the input common mode voltage transfers to the output and it is typically described by the ratio between the differential gain and the common mode gain. This number has to be high as possible (greater than 90dB). Typical values of the gain that can be set within INA are either “1” up to “100-1000”. Also, we have twin extremely high input impedances (greater than 10MΩ) and extremely low output impedance (lower than 100Ω)

RG is not inside the chip as we can see in the figure of the “Pin-Out of the INA”.

The PIN represented are:

  • available externally pair of PIN where we can connect RG;
  • the positive and the negative inputs (In);
  • Output Pin;
  • Output sense;
  • Output reference.

In the REAL INA, the upper terminal of R 2 is broken out to the output sense that is externally connected to the output; instead, the terminal of the lower R 2 is the reference that should be connected to the reference voltage, typically ground. This is done because, maybe, there is a certain amount of wire ( model as a resistor Rs ) between the output of the amplifier and the input of the following circuit. Looking at the following circuit:

Talking about transfer function, the ideal integrator (dashed line in the graph) has a pole in the origin (pole at frequency zero) and generates zero at infinity frequency. So, the gain tends to infinity for DC because, essentially, an integration of a constant current means to increase the voltage to infinity.

Although this ideal integrator is a circuit that is intrinsically stable (=it does NOT oscillate), it is NOT physically implementable because any DC voltage leads to saturation because we have a certain power supply and the output voltage cannot exceed this value. In order to make this circuit feasible and usable in practice , we must to set a limit in the DC gain and we do that by posing a parallel resistor RP to the capacitance C. This means that in DC, the capacitor is an open circuit and so, we have an inverting gain. Then, we have a pole and for frequency higher than the pole, this circuit follows the integrator transfer function. Hence, the real integrator behaves as an inverting gain at DC and low frequencies and as an integrator only at high frequencies. The real integrator gain drops at 20 dB/dec due to a single pole in its frequency response.

The complementary circuit is the derivator in which we have swapped the resistor and capacitor. “Derivator” means that the input current to the OpAmps is set by the impedance of the capacitor: so, higher is the frequency of the input, the lower the impedance of the capacitor and greater is the current that enters in the virtual ground and produces a higher grain. The ideal derivator has a gain that increases and reaches infinity at infinity frequency, but this circuit has two issues:

  • Not able to work in DC because in DC we have no current that can enter in the circuit because the capacitor in DC behaves as a short-circuit (infinity impedance) and so, the output is zero;
  • The system is intrinsic unstable (phase margin is zero) and this is unusable to the stability in practice. So, while the integrator is unusable due to DC concerns, the derivator is unusable at high frequency due to stability.

In order to make the circuit usable, we have to make a limit to the circuit at high frequency and to do that, we insert a series resistance Rs at the input, meaning that at low frequency, where the capacitor impedance dominates, the circuit can still follows the transfer function of the derivator, but at high frequency the capacitor impedance drop so much and so, the resistances Rs dominates and the circuit hands-up behaving like an inverting amplifier.

The derivator can be only used at frequencies lower than the one of the pole, and its frequency is set by the capacitance and the series resistance.

If we take the inverting stage and we remove the input resistance, we obtain another circuit that is called “ transimpedance amplifier ”. The gain of this circuit is not a number, but it has the size of the resistance. In other words, this circuit has a gain which is a resistance, because it takes current as input and it provides a voltage as output (the gain must be in Ohm):

The gain is “-R 2 ” and so, we can have something that behave like a negative resistor. Notice that the gain is independent of the load RL. in addition, both the input impedance and the output impedance are roughly zero.

We have also the opposite circuit, such as the transconductance amplifier : here, at the input, we have a voltage and, as output, it provides a current.

The first option (figure on the left) is suitable for load that requires little current to be driven: in this case, we can put the load itself into the feedback of the OpAmp. An input

We can also make II order active filter in order to obtain, for example, a band pass filter by combining the derivator part and the integrator part: in this way, we introduce 2 poles and the zero in the origin due to the presence of C 1. The bandwidth is set in the low frequency by R 1 and C 1 and the high frequency is set by R 2 and C 2.

We can talk about the stability in different ways: in automatic, we can talk about phase margin and gain margin (in electronics, we consider only the phase margin) and if the circuit has a too low of the phase margin, the system oscillates and if the phase margin is zero we have an oscillator. However, if we want to make an amplifier, we do NOT to have something that oscillates, but we want something that has a damped response.

In the most general possible term, the oscillations are caused by the delay s in the feedback path: the higher is the delay, the higher is the phase shift that is introduced in the delay, the higher is the probability of the circuit to oscillates. If we want damped response, we do not want additional delay on the feedback path.

In practice, we have always to think about that practical implementation of circuits are affected by parasitic components, for example we might have that the input capacitance of the OpAmp has an additional capacitance due to the piece of copper or other reasons. The capacitance C in the next figure creates a delay between the output and the feedback node that reduces the phase margin and introduces the risk of oscillation.

Other things that may cause instability can be capacitive load : if we have a too high capacitive load and we have parasitic resistance between the output of the OpAmp and the load (or just the output impedance of the OpAmp which can be few tens of Ohm), we have the introduction of an RC delay that may causes oscillation.

To deal with types of things, in particular with the position of the parasitic capacitance, we have to pay attention on the construction of the circuit. Some guidelines to go to more stable circuit are the following: if we want to have a more stable circuit, we want to have shorter delay and to that we can reduce the RC constant by reducing the value of feedback resistor , for example passing to 2 k and 4 k (instead of 20 and 40 as reported in the figure). It means that we move the pole to higher frequencies and the gain does NOT change, but we speed up the charging and discharging of the capacitance Cx. However, we are asking the OpAmp to provide more current to the feedback network.

To compensate, we can add a feedforward capacitance in parallel with the feedback resistance and this introduces a zero. To correctly sizing this feedforward capacitor is very tricky: what we could do is a parametric simulation (“Spice parametric sweep”) to optimize for the best value of compensation capacitor. This value is very small in the order picofarad because in general the stability depends on the behavior of the circuit at high frequencies. Indeed, we can achieve 90° phase margin by setting the equality here reported

In the case of transimpedance amplifier , the stability is mostly affected by the capacitance at the inverting terminal, but also by the presence of a certain capacitance of the sensor.