<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JCC</journal-id><journal-title-group><journal-title>Journal of Computer and Communications</journal-title></journal-title-group><issn pub-type="epub">2327-5219</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jcc.2016.417003</article-id><article-id pub-id-type="publisher-id">JCC-73136</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject></subj-group></article-categories><title-group><article-title>
 
 
  Microcontroller-Based Sinusoidal Voltage Generation for Electrical Bio-Impedance Spectroscopy Applications
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Juan</surname><given-names>A. Castro</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>A.</surname><given-names>Olmo</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Pablo</surname><given-names>Pérez</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>A.</surname><given-names>Yúfera</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Departamento de Tecnología Electrónica, Universidad de Sevilla, Seville, Spain</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>jcastro@dte.us.es(JAC)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>29</day><month>12</month><year>2016</year></pub-date><volume>04</volume><issue>17</issue><fpage>51</fpage><lpage>58</lpage><history><date date-type="received"><day>October</day>	<month>30,</month>	<year>2016</year></date><date date-type="rev-recd"><day>Accepted:</day>	<month>December</month>	<year>26,</year>	</date><date date-type="accepted"><day>December</day>	<month>29,</month>	<year>2016</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  A sinusoidal voltage wave generator is proposed based on the use of micro-processor digital signals with programmable duty-cycles, with application to real-time Electrical Cell-substrate Impedance Spectroscopy (ECIS) assays in cell cultures. The working principle relies on the time convolution of the programmed microcontroller (μC) digital signals. The expected frequency is easily tuned on the bio-impedance spectroscopy range [100 Hz, 1 MHz] thanks to the μC clock frequency selection. This system has been simulated and tested on the 8 bits μC Arduino
  <sup>TM </sup>Uno with ATmega328 version. Results obtained prove that only three digital signals are required to fit the general specification in ECIS experiments, below 1% THD accuracy, and show the appropriateness of the system for the real-time monitoring of this type of biological experiments.
 
</p></abstract><kwd-group><kwd>Sinusoidal Voltage Generator</kwd><kwd> Electrical Cell-Substrate Impedance Spectroscopy (ECIS)</kwd><kwd> Bioimpedance</kwd><kwd> Microcontroller (&#181;C)</kwd><kwd> Total Harmonic Distortion (THD)</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Sinusoidal voltage generators are basic building blocks in many instrumentation and signal acquisition systems, as in spectroscopy analysis, where AC voltage signals must be generated in a defined frequency range [<xref ref-type="bibr" rid="scirp.73136-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.73136-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.73136-ref3">3</xref>] . The application to impedance measurements in cell-culture assays is actually known as Electrical Cell-substrate Impedance Spectroscopy (ECIS) technique [<xref ref-type="bibr" rid="scirp.73136-ref3">3</xref>] . Real- time signal generation is essential for the monitoring of many biological pro- cesses. The cell bio-impedance obtained can be directly related with several biological processes, such us motility, cell attachment, cell index, membrane transfer, tumor cells detection, etc., employing only one cell seeding, since all data are obtained from the same cell culture. This means the employment of a non-de- structive process that avoids endpoint-based protocols.</p><p>In ECIS, excitation is usually done with ac current sources, while processing steps are based on algorithms useful to decode the sample voltage response to signal excitation [<xref ref-type="bibr" rid="scirp.73136-ref4">4</xref>] . This paper describes how sinusoidal voltage signals required in ECIS setups can be derived from digital signals using a microcontroller (&#181;C). As a difference to other recent &#181;C based realizations for a fixed frequency [<xref ref-type="bibr" rid="scirp.73136-ref5">5</xref>] and to other current bioimpedance monitoring systems [<xref ref-type="bibr" rid="scirp.73136-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.73136-ref5">5</xref>] [<xref ref-type="bibr" rid="scirp.73136-ref6">6</xref>] [<xref ref-type="bibr" rid="scirp.73136-ref7">7</xref>] , our work uses the mathematical properties of time convolution and the adequate design of digital signals. This way, we are avoiding the synchronization with the input signals as a requirement for the technique to work well, therefore facilitating the implementation of the monitoring circuit and improving the robustness of its spectroscopy results.</p></sec><sec id="s2"><title>2. Methodology</title><sec id="s2_1"><title>2.1. Sinusoidal Waveform Generation</title><p>The proposed approach is based on the design of digital signals in which the duty-cycle (δ) can be programmed. This fact is used for the high harmonics exact cancellation. Signal processing is performed in the frequency domain, whereas signal manipulation is done in the time domain. For a given digital signal f<sub>d</sub>(t), with period T, amplitude A and interval d at high state, the C<sub>n</sub> Fourier coefficients at the harmonics ω<sub>n</sub> = nω<sub>o</sub>, are given by</p><disp-formula id="scirp.73136-formula459"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-1730481x2.png"  xlink:type="simple"/></disp-formula><p>The sin(x) function has zeros when πnδ = mπ (n, m belong to N), being δ = d/T. A method to derive a sinusoidal voltage signal based on δ selection is proposed.</p><p>The mathematical basis of the proposed method is the time convolution of two signals. For two given functions, f<sub>d</sub><sub>1</sub>(t) and f<sub>d</sub><sub>2</sub>(t), the time convolution has a Fourier spectrum defined by the product of independent spectra of the functions F<sub>d1</sub>(ω) and F<sub>d2</sub>(ω) respectively, expressed as</p><disp-formula id="scirp.73136-formula460"><label>(2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-1730481x3.png"  xlink:type="simple"/></disp-formula><p>In particular, when the signals have a rectangular form with the same period, T, but different duty cycle δ, the frequency spectrum of each signal will have zero components at frequencies in which sin(πnδ) is cancelled. In this work, we assume that all digital outputs have the same amplitude. The basic block pro- cessing scheme (<xref ref-type="fig" rid="fig1">Figure 1</xref>) considers the FFT’s of M rectangular signals with the same period T, and different δ<sub>n</sub>(n = 1, 2, ∙∙∙, M).</p><p>For f<sub>d</sub><sub>1</sub>(t) rectangular signal, with δ = 0.5, all even C<sub>n</sub> coefficients are cancelled. The spectrum of f<sub>d</sub><sub>2</sub>(t) must be designed to null the first useless odd harmonic of f<sub>d</sub><sub>1</sub>(t) that is 3ω<sub>o</sub>. By selecting its duty-cycle as one third of T, the first non-desired odd harmonic (3ω<sub>o</sub>) is cancelled since sin(πn/3) is zero when 3|n (C<sub>3</sub>, C<sub>6</sub>, ∙∙∙). It can be easily deduced that considering only two functions f<sub>d</sub><sub>1</sub>(t) and f<sub>d</sub><sub>2</sub>(t), with δ = 0.5 and δ = 0.33, all non-eliminated harmonics are co-primes with 2 and 3. This is shown more clearly in <xref ref-type="fig" rid="fig2">Figure 2</xref>. For this reason, the Fourier coefficients after multiplying these functions are given by</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> Proposed block diagram for sinusoidal voltage generation. Square signals are generated by the microcontroller and then convoluted</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-1730481x4.png"/></fig><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> Harmonic spectra of rectangular signals with 50% and 33% of duty-cycle (a, b) and V<sub>n</sub><sub>,2</sub> signal (c). As it can be observed in V<sub>n</sub><sub>,2</sub> signal, the harmonic cancellation is produced in even harmonic frequencies and in multiples of the third harmonic</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-1730481x5.png"/></fig><disp-formula id="scirp.73136-formula461"><label>(3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-1730481x6.png"  xlink:type="simple"/></disp-formula><p>where V<sub>n</sub><sub>,i</sub> represents the nth coefficient of the complex Fourier series for the convolution of the i signals, and P<sub>i</sub>, the ith element of the ordered set composed by the prime numbers, P, i.e. P = {2, 3, 5, ∙∙∙}. In the case i = 2, Equation (4) is obtained. This process can be extended to three or more digital signals, increasing the lower element in P set, which means to increase the sinusoidal voltage signal quality.</p><disp-formula id="scirp.73136-formula462"><label>(4)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-1730481x7.png"  xlink:type="simple"/></disp-formula></sec><sec id="s2_2"><title>2.2. Experimental Setup</title><p>The proposed system has been tested on the 8 bits microcontroller (&#181;C) Ar- duino™ Uno with ATmega328 version. Arduino™ is an open-source electronics prototyping platform [<xref ref-type="bibr" rid="scirp.73136-ref8">8</xref>] . Besides the &#181;C, we use a DAC 0808 to create an analog version, and a first order RC Smoothing Active Filter (SAF). The cutoff frequency of the SAF is programmed to the nearest higher frequency as the wanted signal. This paper will show the output to 100 Hz, 1 kHz and 10 kHz signals, and the SAF cutoff frequencies are 200 Hz, 2 kHz and 20 kHz respectively.</p></sec></sec><sec id="s3"><title>3. Results</title><sec id="s3_1"><title>3.1. Theoretical Results</title><p>Matlab&#174; R2014b simulations have been performed for several digital signals. <xref ref-type="fig" rid="fig3">Figure 3</xref> shows the waveforms obtained for rectangular functions with 1, 2, 3 and 4 convoluted signals, with duty-cycles of 0.5, 0.33, 0.2 and 0.14 respectively. Waveforms are presented after Fourier coefficients have been multiplied in the frequency domain, and then, the inverse Fourier transform is calculated. To evaluate the quality of the sinusoidal signals obtained, the Total Harmonic Distortion (THD) is observed in <xref ref-type="fig" rid="fig4">Figure 4</xref>.</p><p>Taking only three convoluted signals it is possible to obtain a THD below 1% (about 0.5%), which is usually enough in ECIS technique. Total Harmonic distortion expected as a function of the number of convoluted signals is represented in <xref ref-type="fig" rid="fig4">Figure 4</xref>. To select the working frequency it must be set the &#181;C clock signal, a difference to other &#181;C based realizations [<xref ref-type="bibr" rid="scirp.73136-ref5">5</xref>] . It was considered the ARM Cortex-M7 &#181;C as an example for further implementation.</p></sec><sec id="s3_2"><title>3.2. Experimental Results</title><p>Real-time signal generated by the 8 bits microcontroller is presented in the following figures, in which channel 1 is a sinusoidal wave produced by the Press 2 MHz Function Generator GF-232, and channel 2 shows the proposed generator output. In <xref ref-type="fig" rid="fig5">Figure 5</xref>, we can see that the approximate generator GF-232 THD is</p><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Waveforms obtained for functions v<sub>1</sub>(t), v<sub>2</sub>(t), v<sub>3</sub>(t) and v<sub>4</sub>(t), the inverse FFT of V<sub>n</sub><sub>,1</sub>, V<sub>n</sub><sub>,2</sub>, V<sub>n</sub><sub>,3</sub> and V<sub>n</sub><sub>,4</sub> signals in Equation (3)</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-1730481x8.png"/></fig><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> THD versus number of squared signals</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-1730481x9.png"/></fig><p>0.88%, while the proposed generator is 0.85%, being these two results approximately 0.3% higher than the theoretical THD expected result, around 0.5%, shown in section 3.1.</p><p>In <xref ref-type="fig" rid="fig6">Figure 6</xref>, the outputs of the four selected frequencies (100 Hz, 1 KHz, 10 KHz and 18.5 KHz) are presented. The highest frequency that can be achieved</p><fig id="fig5"  position="float"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> Spectra of the 100 Hz sinusoidal signals of GF-232 (a) and the proposed generator output (b). We can observe the similarity of the two results, in spite of the low cost of our experimental implementation</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-1730481x10.png"/></fig><fig id="fig6"  position="float"><label><xref ref-type="fig" rid="fig6">Figure 6</xref></label><caption><title> Comparatives between the commercial sine generator (blue) and the proposed generator (yellow) at 100 Hz (a), 1 KHz (b), 10 KHz (c) and 18.5 KHz (d). In (d), the high level language programming efects can be observed, increasing the rate of noise</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-1730481x11.png"/></fig><p>with the selected &#181;C, with an acceptable rate of noise, is around 18.5 KHz. This is derived, mainly, by the clock drift and the high level programming language, which can be easily sorted out with another &#181;C. With the proposed system, the frequency can be easily changed in real-time, what is of utmost importance in the monitorization of ECIS biological experiments.</p></sec></sec><sec id="s4"><title>4. Conclusion</title><p>This work presents an alternative sinusoidal voltage signal generator for real time Electrical Cell-substrate Impedance Spectroscopy assays employing cell cultures. The signal synthesis algorithm proposed relies on time convolution of rectangular signals, with a programmable duty-cycle easily defined by &#181;C circuits. Furthermore, frequency can be configured in real time, enabling advanced spectroscopy applications. Results obtained from simulations prove that only three digital signals are required to fit the general specifications in ECIS experiments, below 1% THD, being confirmed these theoretical results with the proposed experimental work. The circuit solution proposed as programmable sinusoidal voltage signal generator is simple, robust and easy to be implemented for this and other spectroscopy applications.</p></sec><sec id="s5"><title>Acknowledgements</title><p>This work was supported in part by the Spanish founded Project: TEC 2013- 46242-C3-1-P: Integrated Microsystem for Cell Culture Assays, co-financed with FEDER.</p></sec><sec id="s6"><title>Cite this paper</title><p>Castro, J.A., Olmo, A., P&#233;rez, P. and Y&#250;fera, A. (2016) Microcontroller-Based Sinusoidal Voltage Generation for Electrical Bio-Impedance Spectro- scopy Applications. Journal of Computer and Communications, 4, 51-58. http://dx.doi.org/10.4236/jcc.2016.417003</p></sec></body><back><ref-list><title>References</title><ref id="scirp.73136-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Yúfera, A. and Rueda, A. (2010) Design of a CMOS Closed-Loop System with Applications to Bio-Impedance Measurements. Microelectronics Journal, 41, 231-239.  
https://doi.org/10.1016/j.mejo.2010.02.006</mixed-citation></ref><ref id="scirp.73136-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Daza, P., Olmo, A., Canete, D. and Yúfera, A. (2013) Monitoring Living Cell Assays with Bio-Impedance Sensors. Sensors and Actuators B: Chemical, 176, 605-610.  
https://doi.org/10.1016/j.snb.2012.09.083</mixed-citation></ref><ref id="scirp.73136-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Giaever, I. and Keese, Ch. (1986) Use of Electric Fields to Monitor the Dynamical Aspect of Cell Behaviour in Tissue Culture. IEEE Transactions on Biomedical Engineering, 33, 242-247. https://doi.org/10.1109/TBME.1986.325896</mixed-citation></ref><ref id="scirp.73136-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Pérez-García, P., Maldonado, A., Yúfera, A., Huertas, G., Rueda, A. and Huertas, J.L. (2016) Towards Bio-Impedance Based Labs: A Review. Journal of Electrical Engineering, 4, 116-127.</mixed-citation></ref><ref id="scirp.73136-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Wissenwasser, H., Vellekoop, M.J. and Heer, R. (2011) Signal Generator for Wireless Impedance Monitoring of Microbiological Systems. IEEE Transactions on Instrumentation and Measurements, 60, 2039-2046.</mixed-citation></ref><ref id="scirp.73136-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Lee, W. and Cho, S.H. (2015) Integrated All Electrical Pulse Wave Velocity and Respiration Sensors Using Bio-Impedance. IEEE Journal of Solid-State Circuits, 50, 776-785. https://doi.org/10.1109/JSSC.2014.2380781</mixed-citation></ref><ref id="scirp.73136-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Pradhan, R., Mandal, M., Mitra, A. and Das, S. (2014) Assessing Cytotoxic Effect of ZD6474 on MDA-MB-468 Cells Using Cell-Based Sensor. IEEE Sensors Journal, 14, 1476-1481. https://doi.org/10.1109/JSEN.2013.2296717</mixed-citation></ref><ref id="scirp.73136-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">AA.VV. Arduino Uno (2016). https://www.arduino.cc/en/Main/ArduinoBoardUno</mixed-citation></ref></ref-list></back></article>