<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <issn pub-type="ppub">1613-0073</issn>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Implementation of a High Measurement Rate VLP System</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>David Moltó</string-name>
          <email>david.molto@uah.es</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Álvaro Hernández</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Elena Aparicio-Esteve</string-name>
          <email>elena.aparicio@urjc.es</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jesús Ureña</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>José M. Villadangos</string-name>
          <email>jm.villadangos@uah.es</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Miguel Cubero</string-name>
          <email>m.cubero@uah.es</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Signal Processing and Communications, Universidad Rey Juan Carlos</institution>
          ,
          <addr-line>Fuenlabrada</addr-line>
          ,
          <country country="ES">Spain</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Electronics Department, University of Alcalá</institution>
          ,
          <addr-line>Alcalá de Henares</addr-line>
          ,
          <country country="ES">Spain</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Optical positioning systems have raised interest in recent years, due to the centimeter accuracy in three-dimension environments they are able to provide, thanks to the use of light emitting diodes (LED) and diode photoreceptors. This work is based on the design and implementation of the signal processing algorithms for an optical indoor positioning system. It is configured using some LED beacons placed at known positions and the corresponding receivers to be positioned moving in the coverage area. The definition and design of the hardware architecture for the processing associated to the receiver, for the case of a Quadrant Photodiode Angular Diversity Aperture (QADA) detector is proposed, analyzing diferent aspects involved in the final performance, such as the fixed-point notation used in the hardware definition. Furthermore, the implementation of the proposal includes an analog conditioning stage, an acquisition system, as well as a FPGA-based (Field-Programmable Gate Array) System-on-Chip (SoC) for implementing the necessary hardware and software elements, required to estimate the final position coordinates of the QADA receiver. In addition to the description of the positioning system and all its stages, some preliminary experimental tests are also shown, including position estimation for two specific locations, achieving the validation of a processing system associated with indoor positioning systems capable of handling high data rates (in the range of Msps).</p>
      </abstract>
      <kwd-group>
        <kwd>Optical positioning systems</kwd>
        <kwd>acquisition system</kwd>
        <kwd>FPGA</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>CEUR
ceur-ws.org</p>
    </sec>
    <sec id="sec-2">
      <title>1. Introduction</title>
      <p>Modern advancements have facilitated the development of various applications and services
based on location-based services (LBS) as tracking of individuals, objects, and vehicles (e.g.,
indoor navigation for guiding people within a building, automatic guided vehicle (AGV)
navigation, drones, etc.). The most commonly used Local Positioning Systems (LPS) can be classified
according to the five technologies that can be used: optical, mechanical, magnetic, acoustic, and
radiofrequency. Among them, LPS that utilize optical signals can use Light Emitting Diodes
(LEDs) already deployed across the majority of existing infrastructure [1].
nEvelop-O
(M. Cubero)
Proceedings of the Work-in-Progress Papers at the 13th International Conference on Indoor Positioning and Indoor
Navigation (IPIN-WiP 2023), September 25 - 28, 2023, Nuremberg, Germany.
CEUR
Workshop
Proceedings</p>
      <p>Optical-based LPSs based on both, visible or infrared (IR) light signals, has gained attention
due to their low cost, easy integration into the working environment, and absence of health
risks [2, 3, 4]. These systems are employed for both outdoor and indoor positioning purposes,
although, generally, the majority of research focuses on indoor positioning, as ambient light
has a significant impact on such systems [ 4]. In indoor environments, whereas the transmitter
is typically a lamp or an array of LEDs, the receivers can be classified into image sensor-based
positioning systems and photoreceptor-based systems. Image sensor-based positioning systems
employ cameras, such as those found in conventional mobile phones or CMOS cameras [3, 5].
However, they require image processing algorithms that slow down position calculations and
increase complexity [6].</p>
      <p>Photodiodes [7] [8], as well as an array of photodiodes [9] [10], find application in
photoreceptor-based positioning systems. These devices generate a current when exposed to
light, which is utilized in estimating the position of the receiver through the implementation
of an appropriate positioning algorithm. Notably, one such algorithm is derived from the
four currents of a Quadrant Photodiode Angular Diversity Aperture (QADA) [9]. The most
commonly used positioning techniques based on optical signals are fingerprinting,
triangulation, trilateration, or multilateration, by using Angle-of-Arrival (AoA) measurements [13],
Time-of-Flight (ToF) measurements [1], or Received Signal Strength (RSS) measurements [11]
[12]. These methods can be combined or used separately. There are other methods that can be
involved, such as proximity-based approaches [14]. The disadvantages of determining ToFs or
Time Diferences of Flight (TDoF), along with the required synchronization, lie in the fact that
estimation errors of 1 ns result in positioning errors in the range of 30 cm due to the high speed
of light [15].</p>
      <p>One of the alternatives for real-time implementation of processing and control algorithms
often involved in these LPS, specifically in the case of IRLPS (Infrared Local Positioning Systems),
is the use of System-on-Chip (SoC) architectures that combine hardware resources with
generalpurpose processors [16]. These often support high-speed signal processing, typical of an FPGA
(Field-Programmable Gate Array), along with the versatility provided by the processor to
communicate with other system resources and handle specific tasks that may not be suitable
for hardware implementation.</p>
      <p>In the case of using QADA receivers with aperture, it is crucial the conditioning block for
the sensor signals. This block must operate within a linear range that accommodates wide
dynamic signal margins, enabling the provision of both the total output (representing all
received radiation from an emitter) and the diferential outputs (indicative of beam deviations in
horizontal and vertical directions) of the QADA. To enable independent use of the positioning
algorithms regardless of the received radiation level, the diferential signals must be subsequently
normalized with respect to the total signal.</p>
      <p>This work focuses on the implementation of an indoor optical positioning system. It is based
on a set of LED beacons as transmitters and a QADA (Quadrant Photodiode Angular Diversity
Aperture) as receiver. The positioning technique employed is based on AoA measurements
between the transmitters and the receiver. The proposed approach includes the low-level
conditioning and acquisition system, and all the blocks (hardware and software) needed to
obtain the final positioning estimates, and implemented by means of a FPGA-based architecture
after the acquisition stage. The novelty of this work is the definition of an eficient
System-onChip architecture for the implementation of the signal processing associated with an indoor
optical positioning system, where high data rates can be handled (in the range of Msps). The
architecture includes the specific peripherals for implementing the demodulation, as well as
the matched filtering with the emitted codes, for the three channels coming from the QADA
receiver involved in the LPS. On the other hand, the final positioning algorithm, based on the
AoA derived from the peaks detected in the correlation signals, is implemented in the processing
system, as it deals with a least squares estimator and some trigonometrical considerations.</p>
      <p>The remainder of the manuscript is organized as follows: Section II provides an overview of
the positioning system; Section III describes the block for signal conditioning and acquisition;
Section IV details the proposed architecture within the programmable logic of the SoC and the
positioning algorithm; Section V presents some preliminary experimental results; and, finally,
conclusions are discussed in Section VI.</p>
    </sec>
    <sec id="sec-3">
      <title>2. Description of the Positioning System</title>
      <p>The IR positioning system consists of an array of transmitters and a receiver, as shown in Fig.
1. The transmitters are four LED beacons, which are located on the ceiling, emitting each one
a signal modulated with a particular code. The employed codes are LS sequences of 1151 bits
generated from 512-bit Golay pairs, with an 127-long interference-free window (IFW) [18]. The
emitted sequences are BPSK (Binary Phase Shift Keying) modulated with a square carrier at 25
kHz (that can be extended up to 250 kHz). The receiver is composed by one (or more) circular
QADA photodetector (model qp50-6-18u-to8) moving anywhere of the coverage area. This
photodetector is covered by a square aperture with a side of  = 2.75 mm and a separation
ℎ = 2.6 mm, as shown in Fig. 2. This ensures that the light beam always impacts within
the sensing area of the QADA, and avoids edge-related issues (non-linearities in subsequent
calculations) [17]. The reception is sampled at a frequency of 250 kHz (that can be extended up
to 2.5 MHz), resulting in an oversampling ratio of 10 samples per carrier period.</p>
      <p>The QADA is composed of four photodiodes, which provide the corresponding currents
depending on the projected illumination in their quadrants. The outputs of the QADA are first
connected to a conditioning stage, which consists of transimpedance amplifiers. At this stage,
the sum of the four outputs   [] , the diference between the upper and lower quadrants   [] ,
and the diference between the right and left quadrants   [] are obtained. It is worth noting
that the signals coming from the amplification stage are proportional to the light intensity
detected by the diferent quadrants. Finally, these signals are digitized by an analog-to-digital
converter (ADC), before going into the digital processing blocks of the system.</p>
      <p>Due to the parallelism of the proposed processing and the high data rate intended to be
handled while capturing the incoming signals, the implementation of the positioning system is
carried out on a FPGA-based System-on-Chip (SoC), which includes programmable logic and
multiple processors. The proposed hardware architecture for the reception block, as shown in
Fig. 3, is based on three processing stages: Demodulation, Correlation, and Peak Correlation
Detection [19]. Firstly, the three mentioned input signals are demodulated, and then passed to
the correlation stage with the transmitted LS sequence. Subsequently, the maximum correlation
value is obtained for every correlated signal. On the other hand, the software processing consists
Y(m)
(Xt,2,Yt,2,Zt,2)
(Xt,4,Yt,4,Zt,4)(Xt,3,Yt,3,Zt,3)
(3.4m)</p>
      <p>Y(m)</p>
      <p>X(m)
of two stages: calculation of impact points and position estimation. Firstly, the central point of
incidence of the light is obtained and, secondly, the position coordinates ( ,  ,  ) of the target
are estimated. All these blocks (hardware, software) will be explained in more detail in the next
Section.</p>
    </sec>
    <sec id="sec-4">
      <title>3. Conditioning System with Adjustable Gain</title>
      <p>As depicted in Fig. 4, three output signals are generated from the four photocurrents supplied
by the QADA: global current (  ), diferential current in the left-right axis (   ), and diferential
current in the bottom-top axis (  ). It is essential that the amplification of these three signals is
identical across all the output channels to facilitate the later normalization of the diferential
currents with respect to the global one. This normalization step is key for accurately calculating
the central point of incidence of the beam passing through the aperture.</p>
      <p>
        Usually, the QADA manufacturer provides the analog conditioning system through an
evaluation board [20], which has been expanded in this study, as illustrated in Fig. 4. The conditioning
QADA (
        <xref ref-type="bibr" rid="ref1">1</xref>
        )
rsum[n]
rlr[n]
rbt[n]
      </p>
      <p>Correlator</p>
      <p>Bank
dsum[n]
dlr[n]
dbt[n]</p>
      <p>Correlator
Bank
Correlator
Bank
Px,2
Py,2</p>
      <p>Impact
Point
Impact
Point
Impact
Point</p>
      <p>Positioning
Algorthm
stage of the QADA outputs incorporates transimpedance amplifiers with continuous and
lowfrequency (backlighting) signal cancellation [21]. To ensure operation under typical conditions
of natural or artificial illumination, the system incorporates a filter that eliminates low-frequency
components in the radiation received by the QADA. These low-frequency components come
from background radiation caused by natural light or artificial systems’ dimming
frequencies. Exploiting the fact that the useful emissions are coded and modulated at relatively high
frequencies, this filtering stage mitigates undesired signals.</p>
      <p>QADA
1
3
4
Transimpedance
amplifiers
1
2
3
4</p>
      <p>Add.</p>
      <p>Diff.</p>
      <p>Diff.</p>
      <p>1 + + 3 + 4
( 1 + − ( 3 + 4) G</p>
      <p>Gain-controlled</p>
      <p>amplifiers
( 2 + 3) − ( 1 + 4) G</p>
      <p>AGC amplifier
G</p>
      <p>RMS
Ajust.</p>
      <p>Additionally, a high dynamic range automatic gain control (AGC) is applied to the three
channels, where the one processing the global signal   assumes a master function, that is,
it provides the gain  determined by its AGC to the other two channels. In any positioning
system, the relative positions between transmitters and receiver vary, resulting in a wide range
of signal levels to be managed (diferences of up to 100 dB among diverse situations). These
signal level variations may occur due to the distance between the emitter and the receiver, or
the angles at which the rays pass through the sensor aperture. This defines some limitations
on the permissible relative emitter-receiver distances and orientations. A high gain can lead
to amplifier saturations, whereas a small gain restricts the reception of low-amplitude signals.
To address this challenge, the AGC is incorporated, which dynamically adapts the received
levels at every circumstance. It is implemented using the Analog Devices AD8338 [22]. For the
channel representing the global sum of signals   , a configuration is employed where the gain
is self-adjusted based on the root mean square (RMS) value of the received signal. This channel
is selected because it always presents the highest signal level. The self-adjusted gain ensures
that the output   maintains a fixed RMS value of 10 mV. The obtained gain G at this stage is
then used to drive the gain of the amplifiers in the other two channels,   and   , which operate
as programmable gain amplifiers.</p>
      <p>The acquisition stage uses an Analog-to-digital converter (ADC) connected to the FPGA
board through the FMC HPC connector. An AD9249-65EBZ board is used, which is based on
the 14-bit AD9249 that allows conversion rates up to 65 Msps. The FPGA design in charge of
addressing this stage consists of two modules: a 3-Wire SPI controller to interact with the SPI
circuitry of the AD9249, and an interface block to acquire and process the input data. The block
diagram of the proposed design is depicted in Fig. 5.</p>
      <p>The 3-Wire SPI controller is made up of a finite state machine (FSM) that manages the three
signals in the bus before, during and after a SPI transaction. Furthermore, a busy port is used to
report to external devices whether it is busy in a transaction or, on the contrary, is available to
start a new one. This peripheral is provided with an AXI4-Lite interface to allow the designer to
set up the bus features, as well as the serial clock frequency by means of the processor available
in the architecture.</p>
      <p>6(3-CH)</p>
      <p>FCO</p>
      <p>D_B1
AD9249 D_B2</p>
      <p>D_C1</p>
      <p>DCO
3-Wire SPI</p>
      <p>ADC
Interface</p>
      <p>DATA_B1
DATA_B2</p>
      <p>DATA_C1
3-Wire SPI
Controller
Data Acquisition Stage</p>
      <p>On the other hand, the core element of this design is the interface block with the ADC. Its
purpose is to carry out the serial data acquisition of the 16 channels. The AD9249 provides the
LVDS serial data D_B1 and D_B2, a bit clock DCO and a frame clock FCO, as labeled in Fig.
5. Firstly, these signals are introduced into a diferential input bufers to obtain the resulting
single-ended signals. Subsequently, a Double Data Rate (DDR) flip-flop stage is used to capture
data in both bit clock edges. The data are fed into the block output synchronized with the
rising edges of the frame clock, which determines the start of a new data frame. Furthermore,
a prescaler is added for downsampling if necessary. This configuration allows high-speed
acquisition rates up to 16.25 Msps.</p>
    </sec>
    <sec id="sec-5">
      <title>4. Proposed Architecture</title>
      <p>The following Subsections describe every stage involved in the proposed hardware architecture;
it should be noted that the stages use a fixed-point model [ 19], where the main objective of
such quantification is to implement the highest possible resolution without adding possible
errors derived from it.</p>
      <sec id="sec-5-1">
        <title>4.1. Demodulation Stage</title>
        <p>
          Since the demodulation symbols involved in (
          <xref ref-type="bibr" rid="ref1">1</xref>
          ) are square wave signals with values of +1 and −1
[19], the demodulator proposed in Fig. 3 can be simplified by discarding the multiplications and
reducing the demodulation to a summation of the input sample, the output sample, and twice
the intermediate sample (
          <xref ref-type="bibr" rid="ref2">2</xref>
          ). This architecture requires a shift register to store the necessary
previous samples, and the length of the register depends on the number of samples in the
demodulation symbol itself. The demodulation stage obtains then the input signals,  
[] ,
  [] , and   [] .
        </p>
        <p>(/2)−1
∑
=0
[] =</p>
        <p>[ − ] −
[] =  [] −  [ −  ] + 2 ⋅ 
−1
∑
=/2</p>
      </sec>
      <sec id="sec-5-2">
        <title>4.2. Correlation Stage</title>
        <p>In the correlation bank in Fig. 3, an eficient correlator is designed for a Complementary Set of
Sequences (CSS) using Golay pairs (2-CSS) [23] [24]. This scheme, also known as 2-ESSC
(eficient set of sequences correlator) as shown in Fig. 6, provides two outputs that simultaneously
correspond to the correlation of the input signal []
with the two complementary sequences  
from the set. The delay blocks  −  in the eficient correlator are scaled by a factor of  = 10
to accommodate oversampling in the LS sequences transmission.</p>
        <p>The use of this 2-ESSC architecture implies some advantages compared to traditional
straightforward implementations of correlators. In the straightforward version, it requires  ⋅ 
Here,  = 2</p>
        <p>is the number of Golay sequence pairs,  = 7
multiplications and  ⋅ ( − 1)</p>
        <p>additions to correlate the input signal with  sequences from
the set. In contrast, the 2-ESSC only requires  2 ⋅ log2  multiplications and  ⋅ log2  additions.
denotes the number of stages used
when generating the Golay pair, and  =</p>
        <p>is the length of the sequences [18].</p>
        <p>
          For the correlation of LS codes, using two 2-ESSC, a matched filter is implemented, as
described in (
          <xref ref-type="bibr" rid="ref3 ref4">3, 4</xref>
          ). This is actually an adaptation of a generic eficient correlator for LS codes,
which is referred to as Eficient LS Code Correlator (ELSC) [ 19]. Compared to other types of
correlators, such as a straightforward one, the ELSC requires fewer operations.
[] =
/2−1
∑
=0
ℎ, 
−( 2 −−1)⋅ 0 [ −( 2 ⋅ 0+ )  ,
  ,0[] +  ,   ,1[] ]
(
          <xref ref-type="bibr" rid="ref1">1</xref>
          )
(
          <xref ref-type="bibr" rid="ref2">2</xref>
          )
(
          <xref ref-type="bibr" rid="ref3">3</xref>
          )
 +/2 [] =
/2−1
∑ ℎ,  −( 2 −−1)⋅ 0 [ −( 2 ⋅ 0+ )  ,
=0
 ∗,0[] +  ,  ∗,1[] ]
(
          <xref ref-type="bibr" rid="ref4">4</xref>
          )
d[n]
        </p>
        <p>Z-Dn</p>
        <p>W1,1</p>
        <p>
          C
+- - Si,1(
          <xref ref-type="bibr" rid="ref1">1</xref>
          )
        </p>
        <sec id="sec-5-2-1">
          <title>Stage 1:BC,2(N)</title>
          <p>
            C
+Si,0(
            <xref ref-type="bibr" rid="ref1">1</xref>
            ) Z-Dn
W1,2
CSi,0(
            <xref ref-type="bibr" rid="ref2">2</xref>
            )
+
          </p>
          <p>
            C
+- - Si,1(
            <xref ref-type="bibr" rid="ref2">2</xref>
            )
Z-Dn
          </p>
          <p>W1,N
Cr,si,0(n)[n]
+
+- C-r,si,1(n)[n]
Stage 2:B C,2(N)</p>
        </sec>
        <sec id="sec-5-2-2">
          <title>Stage N:BC,2(N)</title>
          <p>Note that [] , with 0 ≤  ≤ 2 , represents the correlation of the demodulated input signal []
with the transmitted LS code; and ℎ, ∈ −1, 1 represents the elements of the Hadamard matrix
used for generating the LS code. Similarly,  ,   ,0() and  ,   ,1() represent the correlation
between the signal [] and the sequences  0 and  1 from the sets used in the generation of the
LS code itself. As previously mentioned, for clarity’s sake, the demodulated sequences,   [] ,
  [] , and   [] , obtained from the aforementioned eficient demodulators explained earlier,
are correlated using this architecture.</p>
        </sec>
      </sec>
      <sec id="sec-5-3">
        <title>4.3. Detection of the Maximum Correlation Values</title>
        <p>
          To maximize the detection accuracy, the search of the maximum value is performed on the
correlated signal for the global sum signal, denoted as   [] , as it has the highest amplitude
among the three signals. From the maximum value of this sequence,   , the maximum values
of the other two signals,   and   , can be determined at that same instant. These values are
further normalized, as expressed in (
          <xref ref-type="bibr" rid="ref5">5</xref>
          ), with respect to the sum value   .
        </p>
        <p>̂ =
 ̂ =
 
 
 
 
[  ] = − ⋅ [  ̂ ]
  2  ̂</p>
      </sec>
      <sec id="sec-5-4">
        <title>4.4. Estimation of Central Impact Points</title>
        <p>
          The central incidence point (  ,   ) of the transmitted light beams on the QADA receiver can be
calculated by using the previously obtained ratios   ̂ and  ̂ and the side length  of the square
aperture as shown in (
          <xref ref-type="bibr" rid="ref6">6</xref>
          ).
        </p>
        <p>
          An ofline calibration process can be made to obtain the intrinsic parameters of the sensor
if there is a misalignment between the aperture and the sensor (see Fig. 2) [17]. It should be
(
          <xref ref-type="bibr" rid="ref5">5</xref>
          )
(
          <xref ref-type="bibr" rid="ref6">6</xref>
          )
noted that the manufacturing process of the aperture is quite strict and must be achieved with
the highest possible accuracy (square shape and thickness of the aperture),the fabrication and
placement of the aperture is done with the utmost accuracy, but there will still be imperfections
that can be compensated for with calibration.
        </p>
      </sec>
      <sec id="sec-5-5">
        <title>4.5. Final Position Estimation</title>
        <p>
          The last step is to estimate the position of the QADA receiver, based on the previously calculated
image points ( , ,  , ) in Fig. 3. In order to estimate the target position, it is necessary to know
the positions ( , ,  , ,  , ) of each LED emitter, the focal height of the aperture used (ℎ ), and
an initial estimate of the QADA position (prior estimate). From these data, the position estimate
(,  ) can be estimated using a least squares estimator (LSE), such that (,  ) = ( A ⋅ A)−1 ⋅ A ⋅ b
according to (
          <xref ref-type="bibr" rid="ref7">7</xref>
          ).
(
          <xref ref-type="bibr" rid="ref7">7</xref>
          )
(
          <xref ref-type="bibr" rid="ref8">8</xref>
          )
⎡− ,1  ,1 ⎤
A = ⎢⎢⎢−− ,,23  ,,23 ⎥⎥
        </p>
        <p>⎥
⎣− ,4  ,4 ⎦</p>
        <p>⎡ ,1 ⋅  ,1 −  ,1 ⋅  ,1 ⎤
b = ⎢⎢ ,2 ⋅  ,2 −  ,2 ⋅  ,2 ⎥</p>
        <p>⎥
⎢ ,3 ⋅  ,3 −  ,3 ⋅  ,3 ⎥
⎣ ,4 ⋅  ,4 −  ,4 ⋅  ,4 ⎦</p>
        <p>
          Where ( , ,  , ) are the position of the photoreceptor. Once the estimation of the position
coordinates ( , ) is implemented, the  coordinate is obtained by trigonometric considerations
(
          <xref ref-type="bibr" rid="ref8">8</xref>
          ), where the distances   between the estimated position and the projection of the QADA
photoreceptor in the transmitter’s plane are taken into account.
        </p>
        <p>=  , − ℎ ⋅ (1 +
√
( −  , )2 + ( −  , )2
 ,2 +  ,2
)</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>5. Experimental Results</title>
      <p>Some preliminary experimental tests have been carried out in a 3 × 3 m2 room with a height
of 3.4 m, as shown in Fig. 1. Four LED beacons simultaneously transmit their corresponding
1151-bit LS codes, BPSK modulated with a carrier frequency of 250 kHz at a sampling rate of
2.5 MHz, then using a CDMA (Code Division Multiple Access) technique. The LED beacons are
located in the ceiling of the room, distributed at the four corners of a square with approximately
a side of 1.2 m. The receiver is located on the floor of the room, thus, the final distance between
transmitters and the receiver is longer than 3.4 m. The circular QADA receiver has a square
aperture with a side of  = 2.75 mm on it, with a separation of ℎ = 2.6 mm. The hardware
setup used to perform the measurements is shown in Fig. 7; it includes the conditioning module,
the acquisition module and the SoC with the hardware architecture.</p>
      <p>
        For the test only the estimation of the (,  ) coordinates will be taken into consideration, not
the  coordinate, since the positioning system is evaluated only in 2D. However, it should be
noted that the errors in the estimation of the (,  ) coordinates are added to the possible errors
in the z coordinate, due to the method of calculating it, according to (
        <xref ref-type="bibr" rid="ref8">8</xref>
        ). Tests are performed in
a noisy environment, exposed to artificial and natural light. To validate the proposal, two test
      </p>
      <p>ADC
Conditioning
points are considered, no. 1 located under the beacon B2, and no. 2 in the middle of the square
formed by the beacons. Therefore, they are located at the position (,  , ) = (−1.63, 1.89, 0) m
for point no. 1 (see Fig. 8), and at the position (,  , ) = (−1, 1.4, 0) m for point no. 2 in the
middle of the scenario (see Fig. 9). Thirty position estimates are obtained at each point, from
which we can obtain the mean value and standard deviation shown in Table 1. It is possible
to observe that the averaged estimated coordinates are close to the real position, whereas the
standard deviations of errors remains below 20 cm in the worst case. Note the appearance of a
few outliers (see Fig. 8 and 9) possibly due to impulsive noise in the environment in which the
tests were carried out.</p>
    </sec>
    <sec id="sec-7">
      <title>6. Conclusions</title>
      <p>This work has defined and designed an eficient architecture for the implementation of the signal
processing associated with an indoor 3D infrared positioning system. The positioning technique
employed is based on AoA measurements between the LED transmitters and a QADA receiver.
The proposed architecture involves an analog conditioning stage, an acquisition stage, and a
FPGA-based SoC that implements all the diferent hardware and software modules necessary
to estimate the final position of the QADA receiver. Some preliminary experimental results
have been obtained for two test points, where the achieved standard deviation of the position
estimates are below 20 cm, thus proving the feasibility of the proposal.
[15] T-H. Do, M. Yoo, “An in-Depth Survey of Visible Light Communication Based Positioning</p>
      <p>
        Systems”, Sensors 16(
        <xref ref-type="bibr" rid="ref5">5</xref>
        ), no. 678, pp 1-40, 2016.
[16] S. Knapp, “Field configurable system on chip devices architecture”, Proc. of the 22nd IEEE
      </p>
      <p>Custom Integrated Circuits Conference (CICC), pp. 155-158, 2000.
[17] E. Aparicio-Esteve, Á. Hernández, J. Ureña; “Design, Calibration, and Evaluation of a
Long-Range 3-D Infrared PositioningSystem Based on Encoding Techniques”, IEEE Trans.</p>
      <p>Instrum. Meas., 70, 1–13, 2020.
[18] M. C. Pérez-Rubio. “Generación y correlación eficiente de códigos binarios derivados
de conjuntos de secuencias complementarias para sistemas ultrasónicos”. Tesis doctoral,
Departamento de Electrónica, Universidad de Alcalá, Alcalá de Henares, España, 2009.
[19] D. Moltó, Á. Hernández, E. Aparicio-Esteve, J. Ureña, M. C. Pérez-Rubio, “Fixed-point
Processing for an IR Positioning System based on QADA Receivers,” 2022 IEEE 12th
International Conference on Indoor Positioning and Indoor Navigation (IPIN), Beijing, China, pp.
1-7, 2022.
[20] Sensors Inc., First Sensor Evaluation Boards Data Sheet - Quad Sum and Diference
Ampliifer, Part Description QP50-6-42u SD2. Rev. 14/02/2018, www.first-sensor.com
[21] M. Stitt, W. Meinel. “OPT201 Photodiode-amplifier rejects ambient light”. Burr-Brown</p>
      <p>
        Application Bulletin, USA, 1993.
[22] Analog Devices. AD8338 - Low Power, 18 MHz Variable Gain Amplifier, Datasheet
©20132022 Analog Devices, Inc., 2022.
[23] S. Z. Budisin “Eficient pulse compressor for Golay complementary sequence”, IEEE
Electronics Letters, 27(
        <xref ref-type="bibr" rid="ref3">3</xref>
        ):2019-220, 1991.
[24] B. M Popovic. “Eficient Golay correlator”, IEEE Electronics Letters, 35(17):1427-1428, 1999.
[25] J. Becker, N. Libeau, T. Pionteck, M. Glesner, “Eficient mapping of presynthesized
IPcores onto dynamically reconfigurable array architectures”, Proc of the 11th International
Conference on Field- Programmable Logic and Applicacions (FPL), pp. 584-589, 2001.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>J.</given-names>
            <surname>Ureña</surname>
          </string-name>
          , et al., “
          <article-title>Acoustic local positioning with encoded emission beacons”</article-title>
          ,
          <source>Proc. IEEE</source>
          , vol.
          <volume>106</volume>
          , no.
          <issue>6</issue>
          , pp.
          <fpage>1042</fpage>
          -
          <lpage>1062</lpage>
          , J un.
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>C.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Chi</surname>
          </string-name>
          , S. Liu,
          <string-name>
            <given-names>W.</given-names>
            <surname>Shi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>and J.</given-names>
            <surname>Deng</surname>
          </string-name>
          , “
          <article-title>The research of indoor positioning based on visible light communication”</article-title>
          ,
          <source>China Communications</source>
          , vol.
          <volume>12</volume>
          , no.
          <issue>8</issue>
          , pp.
          <fpage>85</fpage>
          -
          <lpage>92</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>T. H.</given-names>
            <surname>Do</surname>
          </string-name>
          , M. Yoo, “
          <article-title>Performance Analysis of Visible Light Communication Using CMOS Sensors”</article-title>
          ,
          <source>Sensors</source>
          , vol.
          <volume>16</volume>
          (
          <issue>3</issue>
          ), no.
          <issue>309</issue>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>23</lpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>T. H.</given-names>
            <surname>Do</surname>
          </string-name>
          , M. Yoo, “
          <article-title>Potentialities and challenges of VLC based outdoor positioning”</article-title>
          ,
          <source>International Conference on Information Networking (ICOIN)</source>
          , pp.
          <fpage>474</fpage>
          -
          <lpage>477</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>C.</given-names>
            <surname>Danakis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Afgani</surname>
          </string-name>
          , G. Povey, I. Underwood, H. Haas, “
          <article-title>Using a CMOS camera sensor for visible light communication”</article-title>
          ,
          <source>Proceedings of the Globecom Workshops (GC Wkshps)</source>
          , pp.
          <fpage>1244</fpage>
          -
          <lpage>1248</lpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>P. H.</given-names>
            <surname>Pathak</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Feng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Hu</surname>
          </string-name>
          , P. Mohapatra, “Visible Light Communication, Networking, and
          <article-title>Sensing: A Survey, Potential</article-title>
          and Challenges,
          <source>” IEEE Communications Surveys &amp; Tutorials</source>
          , vol.
          <volume>17</volume>
          (
          <issue>4</issue>
          ), pp.
          <fpage>2047</fpage>
          -
          <lpage>2077</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Cai</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Guan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Wu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Xie</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Chen</surname>
          </string-name>
          , L. Fang, “
          <article-title>Indoor High Precision Three- Dimensional Positioning System Based on Visible Light Communication Using Particle Swarm Optimization”</article-title>
          ,
          <source>IEEE Photonics Journal</source>
          , vol.
          <volume>9</volume>
          (
          <issue>6</issue>
          ), pp.
          <fpage>1</fpage>
          -
          <lpage>20</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>T. Q.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y. A.</given-names>
            <surname>Sekercioglu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Neild</surname>
          </string-name>
          , J. Armstrong, “
          <article-title>Position Accuracy of Time-of-Arrival Based Ranging Using Visible Light With Application in Indoor Localization Systems”</article-title>
          ,
          <source>Journal of Lightwave Technology</source>
          , vol.
          <volume>31</volume>
          (
          <issue>20</issue>
          ), pp.
          <fpage>3302</fpage>
          -
          <lpage>3308</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>S.</given-names>
            <surname>Cincotta</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>He</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Neild</surname>
          </string-name>
          , J. Armstrong, “
          <article-title>High angular resolution visible light positioning using a quadrant photodiode angular diversity aperture receiver (QADA)”</article-title>
          ,
          <string-name>
            <surname>Optics</surname>
            <given-names>Express</given-names>
          </string-name>
          , vol.
          <volume>26</volume>
          (
          <issue>7</issue>
          ), pp.
          <fpage>9230</fpage>
          -
          <lpage>9242</lpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>S. H.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H. S.</given-names>
            <surname>Kim</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y. H.</given-names>
            <surname>Son</surname>
          </string-name>
          , S. K Han, “
          <article-title>Three-Dimensional Visible Light Indoor Localization Using AOA and RSS With Multiple Optical Receivers”</article-title>
          ,
          <source>Journal of Lightwave Technology</source>
          , vol.
          <volume>32</volume>
          (
          <issue>14</issue>
          ), pp.
          <fpage>2480</fpage>
          -
          <lpage>2485</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>E.</given-names>
            <surname>Gonendik</surname>
          </string-name>
          , S. Gezici, “
          <article-title>Fundamental Limits on RSS Based Range Estimation in Visible Light Positioning Systems”</article-title>
          ,
          <source>IEEE Communications Letters</source>
          , vol.
          <volume>19</volume>
          (
          <issue>12</issue>
          ), pp.
          <fpage>2138</fpage>
          -
          <lpage>2141</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>H.</given-names>
            <surname>Steendam</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T. Q.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <surname>J</surname>
          </string-name>
          . Armstrong, “
          <article-title>Theoretical Lower Bound for Indoor Visible Light Positioning Using Received Signal Strength Measurements and an Aperture-Based Receiver”</article-title>
          ,
          <source>Journal of Lightwave Technology</source>
          , vol.
          <volume>35</volume>
          (
          <issue>2</issue>
          ), pp.
          <fpage>309</fpage>
          -
          <lpage>319</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>C.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Chi</surname>
          </string-name>
          , S. Liu,
          <string-name>
            <given-names>W.</given-names>
            <surname>Shi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Deng</surname>
          </string-name>
          , “
          <article-title>The research of indoor positioning based on visible light communication”</article-title>
          ,
          <source>China Communications</source>
          , vol.
          <volume>12</volume>
          (
          <issue>8</issue>
          ), pp.
          <fpage>85</fpage>
          -
          <lpage>92</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>C.</given-names>
            <surname>Xie</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Guan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Wu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Fang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Cai</surname>
          </string-name>
          , “
          <article-title>The LED-ID Detection and Recognition Method Based on Visible Light Positioning Using Proximity Method”</article-title>
          ,
          <source>IEEE Photonics Journal</source>
          , vol.
          <volume>10</volume>
          (
          <issue>2</issue>
          ), pp.
          <fpage>1</fpage>
          -
          <lpage>16</lpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>