Introduction measurement or control system is made up of the acquisition of information gathered by a sensor or transducer, the processing of the said information and presentation of results, so that they can be perceived and interpreted by the human observer [1]. There are generally six types of signals in the field of engineering namely mechanical, thermal, magnetic, electrical, optical and molecular (chemical). In this paper, signal measurements are made using a MEMS (Microelectromechanical Systems) based magnetic field sensor. Magnetic field sensors are used in areas of medicine, telephony mobile, steel industry, automotive industry, GPS navigation, among other areas. A Microelectromechanical System (MEMS) is a device with dimensions of small microns that incorporate electrical and mechanical components. Hence, MEMS are used to reduce size, save energy consumption and decrease the cost of magnetic field sensors [2]. In this paper we analyze and test a magnetic field sensor based on MEMS technology with an Arduino board which will be used to power and acquire the signal generated by the sensor along with an electronic system designed to condition the acquired Author ? ? ?: Tamale Technical University. e-mails: enoch@tatu.edu.gh, hnrykwame@gmail.com, dkrah@tatu.edu.gh signal so that it can be measured linearly. The Transmission of the conditioned signal will be carried out wirelessly. Fig. 1: General structure of a measurement and control system [1] Magnetic field sensors are devices in which a physical quantity can produce an alteration of a magnetic field or an electric field, without a change in inductance or capacitance. These sensors detect magnetic fields caused by magnets or electrical currents. The strength of a magnetic field can be measured using different types of techniques with each technique having unique properties that make it more suitable for specific applications. These applications can range from sensing the presence of any change in the magnetic field, to accurately measure the scalar and vector properties of a magnetic field. Magnetic field sensors can be divided into two types: ? Vector component. ? Scalar Magnitude. # A # Global Journal of Researches in Engineering ( ) Volume XX Issue IV Version I Vector type sensors can be divided into sensors that are used to measure Low Field (< 1mT) and High Field (> 1mT). The instruments that measure low fields are commonly known as magnetometers, and Instruments that measure high fields are usually referred to as Gaussimeters. # a) MEMS Technology Based Sensor The MEMS sensor detects the flux density of a magnetic field using the Lorentz force as shown in Figure 2. It has a resonant structure of 700 x 600 x 5 µm, with a rectangular circuit, four flexible silicon beams and an arrangement of longitudinal and transverse silicon beams. The resonant structure is attached to a silicon substrate through two beams of torsion (60 x 40 x 5 µm). The MEMS sensor also contains a jumper Wheatstone bridge with four p-type piezoresistors, two of them are positioned on flexible beams and the other two on the surface of the silicon substrate [3]. The MEMS sensor operates with the Lorentz force, which is generated by the interaction between a magnetic flux density and an excitation current sinusoidal through an aluminum circuit, as shown in Figure 3. The magnetic flux density is applied in the longitudinal direction of the resonant structure [3]. The Lorentz force is amplified when the resonant structure operates at its first resonant frequency. This causes a longitudinal deformation in the two piezoresistors located on the flexible beams, causing the initial resistances to change. This generates a variation in the voltage output of the Wheatstone bridge. Consequently, the electrical voltage signal from the bridge becomes proportional to the magnetic flux density applied to the MEMS sensor [4]. Signal conditioners are measuring elements that offer from an output signal of an electrical sensor, a signal suitable for displayed or used in a later process. The functions of signal conditioners are: filtering, amplification, modulation and demodulation, and impedance matching. # Fig. 4: Signal conditioning A filter is a device that separates the signals according to their frequency or other criteria. The filter can be located at the input or intermediate stage. When the filter is located in the input stage, it can be of electrical, mechanical, pneumatic, thermal, or electromagnetic type. When the filter is located in an intermediate stage, it is normally of the electrical type. An amplifier is a device that, by using energy, magnifies the amplitude of a phenomenon. For this purpose, amplifiers used are mainly operational amplifiers with some key characteristics such as: ? High input resistance (hundreds of M?). # ? Low output resistance (below 1?). ? Large open loop gain (104 to 106). ? Large CMRR (common mode rejection ratio) (Gd / Gc). ? Good range of operating frequencies. ? Low sensitivity to variations in the power supply. ? Great stability at ambient temperature change. Modulation is a set of techniques for transporting information over a carrier wave, normally sine. This allows for a better use of the communication channel transmitting more information simultaneously and protecting it from noise and interference. Demodulation as its name indicates, is the reverse of modulation. It is the set of techniques to recover the information carried on a carrier wave. So in any telecommunication there will always be at least one modulator-demodulator pair. The objective of impedance matching is for maximum transfer of power to exist so that all the energy sent by the source are received by powered devices. If the source has an impedance less than connected device, it is required to place resistance equal to the impedance of the source in parallel with the high impedance device. # III. # System Design a) Sensor Feed The sensor is powered by two signals, one with a frequency of 1 KHz and the other with a frequency of 14.376 KHz. At these frequencies, the sensor has a response with a linear behavior within a range of 40 µT to 2000 µT. To generate these signals, the Arduino Nano The Arduino Nano board has 6 pins that provide PWM (Pulse-width modulation) output. PWM or pulse width modulation is a technique that is used to simulate a variable analog output to obtain a digital output. The resulting signal is a square wave, and its great feature is that the duration can be varied with a pulse when it is positive or 5 volts. However, this variation does not affect the duration between each pulse and cycle, which means that the signal frequency remains the same. Figure 5 shows the general PWM representation scheme. The importance of PWM in this work is fundamental, since using this technique seeks to generate the square and sinusoidal signals required by the MEMS sensor. The Arduino Nano is initially programmed to generate the PWM signal at a frequency of 490Hz. It is generated at this frequency because it is the default frequency for PWM on pin D9 of the Arduino. The signal generation is done using software through the programming of the ATMega328 chip incorporated in the Arduino Nano board. For the amplification stage of the output signal of the MEMS sensor, the AD524 integrated circuit, which is an instrumentation amplifier designed for high precision data acquisition applications is used. This amplifier has three programmable gain pins of 10, 100, and 1000. It operates with a supply voltage range of ± 6V to ± 18V. The frequency of operation is 25MHz so the output signal is not distorted with respect to the input signal. The programmable pins of the amplifier are 13, 12 and 11 for gains of 10, 100 and 1000 respectively. For the amplification of the MEMS sensor signal a gain of 1000 is needed per what pin 11 of the amplifier is used. The circuit connection of the amplification of the MEMS sensor signal is shown in Figure 7. To demodulate the signal generated by the instrumentation amplifier, the AD630 integrated circuit is used. This integrated circuit allows demodulation of a signal at a high speed and precision. The AD630 operates with a supply voltage range of ± 5V to ± 18V. The frequency of operation is approximately 350 KHz, hence the signal output is not distorted with respect to the input signal. The connection scheme for the demodulation of the amplified sensor signal MEMS is shown in Figure 8. The AD630's output signal connects to a thirdorder low-pass filter to eliminate noise in the signal, leaving the connection diagram as shown in Figure 9. The output from the third order low pass filter is the ultimate signal of the system and the desired signal to be visualized and analyzed with a computer. # Results Figure 10 shows the experimental setup used for the characterization of the signal conditioning system inside an environmental chamber along with the virtual instrument, which can be run on a computer connected to the PCI-DAS6031 data acquisition card. The electrical response of the sensor to atmospheric pressure is obtained experimentally using a Helmholtz coil to apply magnetic densities of -150 µT to +150 µT. For this test the signal conditioning system of the magnetic field sensor is inserted into an environmental chamber in order to maintain a controlled temperature of 26 °C. The sensor is placed in the center of the Helmholtz coil, where the magnetic field density is homogeneous. The bridge Wheat stone's sensor is powered with 1 kHz signal and aluminum loop with 14.376 signal is fed at a current of 20mA. From the virtual instrument the output voltage of the system could be measured electronically using the data acquisition card. # Conclusion Because the MEMS sensor generates a very small output signal, in the microvolt scale, it is necessary to amplify this signal to obtain one that is on the millivolt scale. For this stage of amplification, we search an amplifier that works with a supply voltage of 9volts to use a single power supply for the entire electronic system. The signal amplified by the AD524 is a modulated signal, so it is necessary to undertake a signal demodulation step to recover the source signal from the amplified signal. For this, a demodulator is sought, like the other devices which operates on a 9volt supply voltage. When testing the demodulator, it is observed that there was curl in the demodulated signal. Due to this, a further stage of filtering the signal to eliminate noise in it becomes necessary. For the filtering stage, a third order low pass filter was designed. When passing the signal demodulated by this filter the unwanted ripple in the signal is removed, obtaining an expected analog signal. As can be seen in the previous points, an improvement in the design of the signal acquisition system of a magnetic field sensor based on MEMS technology has been successful by a decrease in electronic components on the motherboard, as well as lower consumption of energy, changing the 15volts power supply for a 9volts is enough to power the Arduino board and other components. 23![Fig. 2: MEMS magnetic field sensor](image-2.png "Fig. 2 :Fig. 3 :") ![Signal Conditioner System for Mems based Magnetic Field Sensors using Arduino Global Journal of Researches in Engineering ( ) Volume XX Issue IV Version I board is used. Arduino is selected mainly because it works with a quartz crystal, which has a great advantage of stability in frequency and phase.](image-3.png "A") 56![Fig. 5: PWM (Instructable) General Representation b) Arduino Connection to Mems Sensor In comparing the sinusoidal and square signals, a better resolution and precision is observed in square signals, as they are closer to the desired frequencies and in this case, they do not have distortion like the sinusoidal signals. Taking this into account, the MEMS sensor is powered with the 1 KHz and 14.376 KHz square signals. The Arduino output pins for the 1 KHz and 14.376 KHz signals are the pins 6 and 12 respectively. The 1 KHz signal connects to the MEMS sensor on pin 4 and the 14.376 KHz signal connects on pin 5. The connection of the Arduino to the MEMS sensor is shown in Figure 6. The output signal from the MEMS sensor is in the order microvolts therefore we use an amplifier to obtain a signal in the order of millivolts.](image-4.png "Fig. 5 :Fig. 6 :") 7![Fig. 7: Connection diagram for signal amplification of the MEMS sensor d) Demodulation of the Amplified SignalTo demodulate the signal generated by the instrumentation amplifier, the AD630 integrated circuit is used. This integrated circuit allows demodulation of a signal at a high speed and precision. The AD630 operates with a supply voltage range of ± 5V to ± 18V. The frequency of operation is approximately 350 KHz, hence the signal output is not distorted with respect to the input signal. The connection scheme for the demodulation of the amplified sensor signal MEMS is shown in Figure8.](image-5.png "Fig. 7 :") ![Signal Conditioner System for Mems based Magnetic Field Sensors using Arduino Global Journal of Researches in Engineering ( ) Volume XX Issue IV Version I](image-6.png "A") 8![Fig. 8: AD630 Amplifier Connection Diagram e) Filtering the Demodulated SignalThe AD630's output signal connects to a thirdorder low-pass filter to eliminate noise in the signal, leaving the connection diagram as shown in Figure9. The output from the third order low pass filter is the ultimate signal of the system and the desired signal to be visualized and analyzed with a computer.](image-7.png "Fig. 8 :") ![Signal Conditioner System for Mems based Magnetic Field Sensors using Arduino Global Journal of Researches in Engineering ( ) Volume XX Issue IV Version I](image-8.png "A") 9![Fig. 9: Filter circuit of demodulated signal](image-9.png "Fig. 9 :") 10![Fig. 10: Experimental Test](image-10.png "Fig. 10 :") 11![Fig. 11: Graph of the output signal](image-11.png "AFig. 11 :") ![](image-12.png "") © 2020 Global Journals Year 2020 F © 2020 Global Journals Year 2020 F © 2020 Global Journals Year 2020 F © 2020 Global Journals * Signal Sensors And Conditioners 4th Edition RPallás Areny 2005 Marcombo * Design, Fabrication, And Characterization Of A Resonant Magnetic Field Sensor Based On Mems Technology ALHerrera-May PJGarcía-Ramírez LAAguilera-Cortés JMartínez-Castillo RJuárez-Aguirre SMDomínguez-Nicolás CFBravo-Barrera &EFigueras 10.1080/10584587.2011.575013 Integrated Ferroelectrics 126 1 2011 * Digital Signal Processing By Virtual Instrumentation Of A Mems Magnetic Field Sensor For Biomedical Applications RJuárez-Aguirre Domínguez-NicolásSm EManjarrez EtAl 10.3390/S131115068 Sensors 13 11 2013 * Arduino Website Arduino Cc/ Main/Timerpwmcheatsheet On April 05, 2020 * Arduino Website S FArduino On April 05, 2020 * Signal Conditioning System With A 4-20 Ma Output For A Resonant Magnetic Field Sensor Based On Mems Technology SMDomínguez Nicolás RJuárez Aguirre PJGarcía Ramírez ALHerrera May 2011 * Dominguez-Nicolas Sm RJuarez-Aguirre Herrera-MayAl PGarcia-Ramirez EFigueras -DGutierrez * Respiratory Magnetogram Detected WITH A Mems Device TapiaEa Ja ATrejo EManjarrez Doi:10.7150/ Ijms.4732 Int J Med Sci 10 11 2013 * Design Of Conceptual Mems Applied To Magnetic Field Leak Detection CAGutierrez Rojas HGámez Cuatzin AEspinosa Risce INTERNATIONAL JOURNAL OF Computational And Electronic Systems 2011 * Measurement, Instrumentation, And Sensors JHansman 2000 Crc Press Llc * TS FInstructable Instructables. Retrieved /Www.Instructables. Com/Id/Analog-Output-Convert-Pwm-To- On April 05, 2020 * Research Of The Monolithic Integrated 3-D Magnetic Field Sensor Based On Mems Technology XZhao YBai QDeng CAi XYang And DWen 10.1109/Jsen.2017.2736639 In Ieee Sensors Journal 17 18 15 Sept.15, 2017 * Design Of The Lorentz Force Based Resonant Magnetic Sensor For Sige Mems On Cmos Process HHongoh MTsukiyama KKanda TFujita And KMaenaka Doi:10. 1109/Iciev.2018.8641060 Joint 7th International Conference On Informatics, Electronics & Vision (Iciev) And 2018 2nd International Conference On Imaging, Vision & Pattern Recognition (Icivpr) Kitakyushu, Japan 2018. 2018 * Mems Torsion Oscillator Magnetic Field Sensor XYin QJiao LYuan And SLiou 10.1109/Tmag.2013.2252153 In Ieee Transactions On Magnetics 49 7 July 2013 * Characterization And Model Validation Of A Micromechanical Resonant Magnetic Field Sensor WZhang And JE -Lee Doi: 10.1109/ Transducers.2013.6627153 2013 Transducers & Eurosensors Xxvii: The 17th International Conference On Solid-State Sensors, Actuators And Microsystems (Transducers & Eurosensors Xxvii) Barcelona 2013