{'fraction_non_alphanumeric': 0.029485339347959813, 'fraction_numerical': 0.014517121181053926, 'mean_word_length': 4.845158197507191, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Towards Self-Powered WSN: The Design of Ultra-Low-Power Wireless Sensor Transmission Unit Based on Indoor Solar Energy Harvester

: The current revolution in communication and information technology is facilitating the Internet of Things (IoT) infrastructure. Wireless Sensor Networks (WSN) are a broad category of IoT applications. However, power management in WSN poses a significant challenge when the WSN is required to operate for a long duration without the presence of a consistent power source. In this paper, we develop a batteryless, ultra-low-power Wireless Sensor Transmission Unit (WSTx) depending on the solar-energy harvester and LoRa technology. We investigate the feasibility of harvesting ambient indoor light using polycrystalline photovoltaic (PV) cells with a maximum power of 1.4mW. The study provides comprehensive power management design details and a description of the anticipated challenges. The power consumption of the developed WSTx was 21.09µW during the sleep mode and 11.1mW during the operation mode. The harvesting system can harvest energy up to 1.2mW per second, where the harvested energy can power the WSTx for six hours with a maximum power efficiency of 85.714%.


Introduction
The revolution in the microchips industry, especially in microcontrollers (MCUs), helped integrate embedded systems with various types of daily used devices. The demand to connect these devices to the internet became vital due to the emerging technologies in information and communication infrastructure such as high-speed internet, cloud computing, and big data. The Internet of Things (IoT) technology enables machines such as home appliances, medical equipment, and industrial instruments to interact with users and other machines through the internet [1,2]. Portable, Wireless Sensor Network (WSN) represents a broad IoT application sector [3]. The role of WSN in IoT applications is to convert and transfer environmental variables such as temperature, pressure, vibration, and other variables through a wireless network of devices. This network can send and receive data from the internet through a gateway node [3,4]. The WSN system usually consists of four main units: sensing unit, processing unit, wireless communication unit, and power management unit, as shown in Figure 1 [5]. Power management in WSN devices is always a challenging issue. Such devices are required to operate in remote locations for several years without charging or replacing the storage element, compared with other battery-powered devices like mobile phones [6,7]. Battery management techniques, low power MCUs and low power communication technologies are required to mitigate the power consumption in WSN systems. The new emerging Long-Range (LoRa), lowenergy consumption radio modulation technology enables wireless sensor devices to communicate through a low-power consumption profile, compared with other widely used wireless communication technologies like ZigBee, Bluetooth, Wi-fi, and cellular communication bands [7][8][9]. Due to modulation bandwidth limitations, LoRa technology can only be used be used for low data transfer rate applications [10][11][12]. Figure 2 shows a comparison between different wireless communication technologies in terms of data transfer rate, coverage range, and power consumption. Aside from the low power communication technology, energy harvesters play a significant role in WSN power sustainability [13][14][15]. Energy harvesters can be used to harvest the abundant energies from the environment to power IoT devices. Thermal, wind, radio wave, solar, and piezoelectrics energy are examples of such sources [15]. Figure 3 illustrates the concept of energy harvesters in the IoT field. Solar energy is the most widely used type of renewable energy due to its efficiency in converting solar irradiance into electricity when compared to other types of renewable technologies [16]. The PV cells heavily depend on the light intensity to produce electrical energy. However, some IoT applications require an indoor hosting environment. Indoor environments use artificial light sources such as compact fluorescent lamps and LEDs. These devices have a low light intensity compared to sunlight; therefore, the indoor environment poses a challenge to PV cells. Power management strategies are important in reducing power consumption in such a low energy situation. This paper provides a comprehensive study on designing an Ultra-Low-Power (ULP) LoRa-based Wireless Sensor Transmission unit (WSTx) based on indoor solar cells.

Materials and Methods
The study is on the design of self-powered WSTx that can harvest the ambient light from indoor PV cells. The proposed scheme of the ULP WSN system is composed of two main units, the Power Management Unit (PMU) and the WSTx. The PMU has three main elements: a Maximum Power Point Tracking (MPPT) circuit, a buck-boost converter, and a battery charger. The purpose of the PMU is to provide stable and efficient charging and discharging rates to the storage element considering the load from the WSTx. On the other hand, the WSTx consists of three main elements: an MCU, a sensor module, and a communication module, as shown in Figure 4. The purpose of the WSTx is to encode and transfer the sensor data through the communication module.

Study Area
The study has been conducted in the University Tenaga Nasional, Energy Sphere IoT lab. The lab has a 6.5 × 9.5 square meter area consisting of 24 LED ceiling lamps. Each LED has a maximum luminous of 6600 lux, as shown in Figure 5. The LED ceiling lamps are gradually becoming the dominant light source in streets, offices, and workspaces due to their power efficiency compared with fluorescent lamps [17,18]. The main concern about artificial light is the amount of light intensity with respect to the surface of the observer. The intensity of the LED follows the Lampartian principle [19,20], where the degree of illuminance varies according to the cosine angle of the observer. The light intensity of a white LED can be represented using the Gaussian distribution function ( ) as in (1) [20][21][22]. The light intensity varied according to the angular displacement as in Figure 6, where is bounded by a minimum of -90 degrees and a maximum of 90 degrees. The maximum intensity can be obtained at the mean value of the Gaussian distribution. The illuminance intensity of any light source describes the amount of luminous flux at angle as shown in Figure 5, where the illuminance intensity can be calculated as in (2) [19]. Therefore, the illuminance intensity of the LED decreases as the height h from the light source increases, as illustrated in Figure 7.  The illuminance intensity formula can be converted into the cartesian coordination where the illuminance at any point P(x,y,z) can be obtained as in (3) where (X, Y, Z) represent the global coordination with respect to the light source. The equation to obtain the total illuminance from the LED matrix at any point in the surface can be represented in (4) [23].

PV cells
The basic principle behind the PV effect has emerged from semiconductor technology, where the conductivity status of semiconductor materials such as silicon can be determined by adding impurities. The impurities convert the pure semiconductor material into major and minor electron carriers, representing a positive P-channel region or a negative N-channel region [24]. The silicon PV cell is constructed from a PN-junction where a thin N-channel is used to absorb the light allowing the photons to reach the P-channel. If the photon has sufficient energy to hit the bond of the silicon crystal, an electron pair of positive holes and negative electrons will be generated, as illustrated in Figure 8. This process will cause a voltage difference between the N-channel and the P-channel, which by its role will drive the electrical current to flow through the depletion layer [25,26].   [27]. P-c solar cells are synthesized from several silicon crystals. The efficiency of the P-c solar cells can reach 13%. On the contrary, M-c solar cells are synthesized from a single silicon crystal. The M-c silicon cells have higher efficiency than the P-c cells, which can reach 15% [28]. However, the prices of M-c cells are much higher than P-c cells. Besides the silicon-based solar cells, the PV effect can be obtained from different non-silicon materials such as organic solar cells, perovskite solar cells, and dyesensitized solar cells [29][30][31]. In this study, two P-c solar panels have been used to collect the ambient light from the indoor environment. The solar panels have a total area of 11.5 × 23.0 square centimeters, as shown in Figure 9. The light intensity in the study area varies according to the height from the light source. The closer the distance to the light source, the higher the luminance intensity; hence, the generated voltage is proportional to the luminance intensity, as shown in Figure 10. The panels have been connected in a parallel configuration to maximize the output current. The outdoor and indoor performance of the panels is shown in Figure 11. The Figure describes the non-linear relation between current and voltage, known as the IV curve. The MPP is the result of direct multiplication of the maximum current times the maximum voltage , as in (5). The outdoor Maximum Power Point (MPP) value was 1.76 W, and in contrast, the indoor MPP was 1.4mW. The modelling of PV cells is significant to study the efficiency of solar panels. There are two common models for solar cells: the one-diode model and the two-diode model [32]. Both models can represent the sollar cell, whereas, in this study, we used the one-diode representation as in Figure 12. The one-diode model describes the parameters of the solar cells where represents the source photon current generated by the PV effect. The total net current can be calculated as in (6) where is the reverse saturation current, is the shunt current, T is the absolute temperature, q is the charge of the electron, k is the Boltzmann constant, is the shunt resistor, is the voltage difference across the PV cell terminals, and is the diode factor [33,34]. The efficiency of the solar cell is related to the ratio between the input power and the maximum output power. The input power in the outdoor situation is the solar irradiance (1000 w/m2); hence the total size of the solar panel is (11.65 × 23 ) the outdoor efficiency of the P-c solar panels can be estimated as in (8) where FF is the fill factor as in (7). According to P. R.Michael et al [35], for an indoor environment with LED light, the conversation between irradiance and luminance can be estimated as in (9); therefore, the indoor efficiency of the solar panels can be calculated as in (11). Table 1 compares the indoor and outdoor parameters of the solar panels.

Power Management Unit
The PMU is essential for IoT applications that work without a consistent power supply [36][37][38]. In this study, the Texas Instrument bq25570 energy management module [39] has been used to manage the harvested solar power. The module is mainly designed for ULP applications where it provides an efficient power extraction from low power, highinput impedance generators such as solar cells. The module's operation starts by converting the input voltage into higher voltage levels through an embedded DC to DC boost converter. The converter can operate at a low starting input voltage of 330mV; once the voltage at the boost charger terminal reaches 1.8V; the converter will accept lower voltages as 120mV. The efficiency of the boost converter depends on the amount of power reaching the storage element concerning the input power as in (12). Figure 13 shows the efficiency curve of the boost charger concerning the input voltage. Besides this, the module offers a programable MPPT unit that enables extracting the maximum power under various ambient light conditions. Also, the module can maintain a stable output voltage through the embedded buck converter, which can deliver up to 100mA to the buck converter output terminal. Figure 14 shows the bq25570 module and the connection terminals. There are many types of rechargeable batteries that can be used to store the harvested voltage, such as lithium-ion (Li-ion) and Lithium-ion Polymer (LiPo) batteries. However, these types of storage elements have a high Equivalent Series Resistance (ESR) and a short cycle-life [40,41]. The supercapacitor can be used alternative to batteries in energy harvesting applications [42][43][44]. The supercapacitors have low ESR, which provides a fast peak power delivery. Also, supercapacitors have a long cycle-life compared with Li-ion batteries. In this study, we used a 90F supercapacitor with a maximum charging voltage of 4.2V to store the harvested solar power. Figure 15 shows the open-circuit supercapacitor charging curve through the PMU.  The wireless sensor unit consists of three main components, the DHT11 humidity and temperature sensor, the ATMEGA328P MCU, and the RFM96W LoRa module [45,46] as shown in Figure16, more design details can be found in APPENDIX A. Table 2 describes the current and voltage characteristics of the WSTx components. The MCU can manage the control signals and the communication protocols; hence, the MCU is the key element of reducing the power consumption from the WStx. Many studies have been published about reducing MCU power consumption. For instance, Amit Sinha et al. [47] proposed an Operating System (OS) based dynamic power management of WSN. The authors proposed event-driven power management to reduce the power consumption where the OS can automatically determine the operation mode of the MCU. Also, the OS can adjust the MCU frequency to optimize the power consumption. The authors suggest an ARM-based MCU for the OS implementation. However, the implementation of OS in limited resource 8-bit microcontrollers such as the ATMEGA328P will force the MCU to operate at higher frequencies dissipating more energy. Another study by Ling Lin et al. [38] proposed a multipower space fabrication scheme for MCUs to reduce the power consumption during sleep mode, which required a redesign of the MCU. Angelo Silva et al. [48] proposed a power gating technique to reduce the power consumption during the sleep mode. Power gating techniques simply disable the power line from all the WSTx elements. The efficiency of this technique highly depends on the type of WSN application. The disadvantage of power gating is the power consumption during the initialization period, which is required upon resting all the WSTx elements. The initialization period is the period needed for the WSTx to define the communication parameters, registers, and connection ports. One important consideration about designing ultralow-power WSN is the type of MCU. Some microcontrollers have a relatively high power consumption under the deep sleep mode [49]. For example, Md. Rokonuzzaman et al [50] proposed a similar self-power WSN device based on an indoor solar harvester. The study used the ESP32 MCU, DHT temperature humidity sensor, moisture sensor, and ADP5091 PMU with a total power consumption of 200mW, representing a considerable consumption value. The harvested energy lasted for 96s via a 0.47 F supercapacitor. To reduce the power consumption from the WSTx, we proposed a firmware-based power managing method. The proposed method applies only to digital sensors due to its programmability feature. The method has two stages, the initialization stage and the main program loop stage, as in Figure 18. The initialization is only performed once to avoid high power consumption during the initialization period [51]. The initialization stage consists of three procedures. The first procedure is the MCU initialization which includes the following tasks: disabling the unused devices inside the MCU, such as the Brown-Out Detector (BOD) and the Analog to Digital Converter (ADC), setting the input and output ports, defining the operating frequency, defining the sleep mode, and setting the Watch-Dog-Timer (WDT). The BOD is the device responsible for distinguishing between high and low voltage levels. However, in such an energy harvesting situation, the low voltage level from the boost charger is always less than the standard BOD logic level. Disabling the BOD will help accept voltages lower than the BOD level as low as 1.8V, representing the minimum voltage level to operate the MCU and the Lora module. Figure 17 shows the logic voltage levels of the boost charger versus the BOD 2.7 voltage level. The ADC converts the continuous-time signals into digital signals. Usually, the ADC is attached to an analog sensor that measures a physical quantity. However, the analog to digital transformation process consumes more energy; hence a digital sensor can be used to avoid using the ADC. The clock frequency is essential in reducing power consumption, where higher clock rates require more power [51]. The ATMEGA38P has six sleeping modes: idle, ADC noise reduction, power-down, power-save, standby, and extended standby.  Figure 19 illustrates the power consumption of the ATMEGA328P sleep modes, where the power down represents the most miniature power consumption mode. The power-down sleep mode halts the system clock where an interrupt signal is required to wake up the processor. Since the WDT is separate from the system clock, it can be used as a system clock independent device to wake up the processor. Therefore, we used the WDT to produce an internal interrupt signal after completing the sleep duration. The WDT has been set to the maximum time-out value of 8 seconds. The second stage of the initialization is of the RFM96 LoRa module. This process aimed to define the LoRa modulation, define the communication parameter, and set the RFM96 sleep mode. The communication between the MCU and the LoRa module is done through the Serial Peripheral Interface (SPI) protocol. The third stage of the initialization is the sensor initialization which consists of setting the sensor pins and defining the sensor communication protocol where the DHT11 uses a half-duplex single-wire serial communication protocol. The sampling rate of the DHT sensor has been set to 1Hz, which is the maximum sampling frequency of the device; hence a ts delay of 1 second has been added after every reading.
The program loop starts with acquiring the data from the sensor through the singlewire protocol. This process requires an amount of delay ts. After the delay period, the MCU will transfer the sensor data to the LoRa module, which will transmit the data to the gate node or any neighbour node. After the transmission process, the LoRa module will go to sleep mode, followed by the MCU. Some digital sensors also can be configured to enable the sleep mode; therefore, more power can be saved during the sleep mode. The WDT will interrupt the MCU after the time-out duration, and the loop will start again from acquiring new data from the sensor.

Results
This section provides details about the designed ultra-low power WSTx. To develop an efficient energy harvester, the source power Ps from the PMU should always be greater than the consumption power Pc. Therefore, the lower power the consumption at the WSTx, the more efficient the harvesting system. Practically, some amount of power dissipates through the power management and the storing processes, affecting the harvesting system's efficiency. Mathematically, the power consumption can be described as the in (13) where is the initial stored energy, is the charging efficiency, f is the capacity limit function which has been described in (14), Pleak is the capacitance leakage power, and B is the size of the supercapacitor [52].
The maximum voltage limit of the supercapacitor represents one of the fundamental limitations in the harvesting system, where it will affect the Ps side [52]. Also, the supercapacitor has an internal resistance in which self-discharging occurs without the presence  Figure 20 shows the voltage drop across the supercapacitor terminal due to the self-discharging impact. The voltage drop can be minimized by increasing the deep sleep duration. However, the WDT of the ATMEGA328P has a maximum time-out duration of 8 seconds. Table 3 shows the results of the proposed firmware-based power reduction technique. In these measurements, the transmission power of the LoRa module has been set to a fixed gain of 7dbm; also, the power consumption has been measured with a fixed input voltage of 3.7V. The results prove the efficiency of disabling the ADC, reducing the internal clock frequency to 1MHz, and selecting the power-down sleep mode. This technique reduced power consumption during the sleep mode to 21.09µW and 11.1mW at the operation mode. Figure 21 shows the current consumption during the initialization, operation, and sleep mode concerning the solar input the boost charger output.  The algebraic summation of the power consumption through the WSTx elements represents the total power consumption .as in (15). Where Pβ is the power consumption through the Printed Circuit Board (PCB) and the resistors. Figure 22 describes the percentage of the net power consumption of the WSTx component. The energy can be described as the amount of power consumption per time unit (16), where the total energy consumption can be calculated as in (17) [53]. Equation (17) emphasizes the crucial role of sleep duration in reducing the energy where tcycle describes how frequent the operation cycle is; therefore, increasing the sleep time will decrease the sum of the active durations. The sleep duration should be long enough to allow the solar harvester to compensate for the consumed power. Figure 23 shows the closed-circuit voltage drop across the supercapacitor terminals as an impact of the 8 seconds sleep duration. However, the WDT time-out of 8 seconds is not enough to support the WDTx for a long time where the capacitor charge can last only for continuous 6 hours. The critical deep sleep time can be estimated based on the energy harvesting rate. Figure 24 compares the energy harvesting during the open-and closed-circuit configuration. The closed-circuit harvesting rate can reach a maximum of 1.2mW per second; however, the energy harvesting rate declines rapidly due to the imbalance between power consumption and the power source. Therefore at least 12 seconds of deep sleep are required to match the power consumption during the operation mode. The maximum power efficiency of the WSTx unit can be calculated as in (18). Fortunately, the current revolution in the Lithium-ion capacitor may significantly improve the supercapacitor electrical characteristics [54] by reducing the selfdischarging rate.

Discussion
The study shows the ability of the indoor solar harvester to support theWSTx device without depending on any external source of power supply. However, some points that can be addressed by future works are listed below.


Studying the feasibility of using different types of PV technologies.
 Using different MCUs that has long WDT time-out duration.
 Studying the impact of using Lithium-ion capacitors to improve the self-discharging effect.

Conclusions
The aim of this paper was to design a low power WSTx unit using indoor solar power harvester and LoRa technologies. A description of the design details and the expected power management limitations have been provided. The results showed a significant improvement had been achieved in the power consumption during the sleep mode with 21.09µW and 11.1mW during the operation mode. The stored energy can support the WSTx for a continuous 6 hours. The study demonstrated a potential towards self-powered WSN by utilizing emerging energy harvesting and low power communication technologies. Furthermore, we discussed the efficiency of using polycrystalline photovoltaic PV cells to harvest the ambient indoor light. The PV panels can provide a maximum power of 1.4mW. The power consumption of the developed WSTx was 21.09µW during the sleep mode and 11.1mW during the operation mode, where the harvested energy can support the WSTx for a continuous 6 hours. The harvesting system was able to harvest up to 1.2mW per second, Where the designed WSTx achieved a maximum power efficiency of 85.714%.