<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Riani on Medium]]></title>
        <description><![CDATA[Stories by Riani on Medium]]></description>
        <link>https://medium.com/@triani.arn0106?source=rss-af5149a4e033------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*G-Z0a2HEwJjqeiSz</url>
            <title>Stories by Riani on Medium</title>
            <link>https://medium.com/@triani.arn0106?source=rss-af5149a4e033------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 08:40:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@triani.arn0106/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Automated Indoor Air Quality Control: Design and Implementation of an Arduino-Based Purifier Using…]]></title>
            <link>https://medium.com/@triani.arn0106/automated-indoor-air-quality-control-design-and-implementation-of-an-arduino-based-purifier-using-0c6038181187?source=rss-af5149a4e033------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c6038181187</guid>
            <category><![CDATA[autonomous-environmenta]]></category>
            <category><![CDATA[arduino-based-control]]></category>
            <category><![CDATA[mq-135-gas-sensor]]></category>
            <category><![CDATA[iot-based]]></category>
            <category><![CDATA[air-purification]]></category>
            <dc:creator><![CDATA[Riani]]></dc:creator>
            <pubDate>Fri, 10 Oct 2025 20:25:03 GMT</pubDate>
            <atom:updated>2025-10-10T20:25:03.560Z</atom:updated>
            <content:encoded><![CDATA[<h3>Automated Indoor Air Quality Control: Design and Implementation of an Arduino-Based Purifier Using the MQ-135 Gas Sensor</h3><h3>Abstract</h3><p>The proliferation of airborne contaminants in enclosed spaces necessitates proactive <strong>Indoor Air Quality (IAQ)</strong> management. This paper presents the <strong>Design and Implementation</strong> of an <strong>Autonomous Air Purification System</strong> engineered for real-time monitoring and active pollutant mitigation. The system utilizes the <strong>MQ-135 gas sensor</strong> for wide-spectrum contaminant detection, interfaced with an <strong>Arduino Uno microcontroller</strong> for intelligent control logic. The actuation mechanism involves a <strong>high-efficiency particulate air (HEPA) filter</strong> coupled with a dedicated fan, managed by a solid-state relay. Empirical results confirm the system’s high responsiveness, demonstrating its capability to maintain a safe <strong>pollutant parts-per-million (PPM)</strong> level by automatically initiating the filtration cycle when ambient concentration thresholds are breached. This solution offers a <strong>cost-effective and scalable platform</strong> for enhancing respiratory safety in residential and small-scale commercial environments.</p><p><strong>Keywords:</strong> Air Quality, MQ-135 Sensor, Arduino, Automation, HEPA Filter, Demand-Controlled Ventilation.</p><h3>1. Introduction: The Mandate for Intelligent IAQ Systems</h3><p>The increasing energy efficiency of modern buildings — leading to reduced air exchange rates — has inadvertently amplified the risks associated with <strong>Sick Building Syndrome (SBS)</strong> and chronic respiratory diseases. Common indoor pollutants, including <strong>Volatile Organic Compounds (VOCs)</strong>, <strong>smoke particulate matter</strong>, and <strong>noxious gases (NOx​, CO)</strong>, often accumulate to concentrations significantly higher than outdoor levels. Conventional air purifiers operate continuously, resulting in substantial <strong>energy dissipation</strong> and a reduced filter lifespan, regardless of the actual air quality. <strong>The fundamental problem addressed by this research is the lack of an energy-efficient, responsive, and autonomous filtration mechanism that actively engages remediation efforts only when pollutant levels cross a critical safety threshold, thereby transitioning IAQ management from passive to proactive control.</strong> To achieve this, we propose an intelligent system that executes a <strong>Demand-Controlled Ventilation (DCV)</strong> strategy, optimizing power consumption and extending the operational lifespan of the filter media.</p><h3>2. Materials and System Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*hcg1_fUXI7ac80WFKdfPNw.png" /><figcaption>Figure 1: Block Diagram of the Autonomous Air Purification System.</figcaption></figure><p>The proposed air purifier is realized through a modular, three-tier architecture: the Sensing Module, the Control Module, and the Actuation Module, interconnected to form a robust feedback loop.</p><h4>2.1. The Sensing Module: The MQ-135 Gas Sensor</h4><p>The <strong>MQ-135 sensor</strong> functions as a <strong>chemiresistor-type transducer</strong>. It utilizes a tin dioxide (SnO2​) sensing layer, whose electrical <strong>conductivity</strong> changes proportionally upon adsorption of specific gas molecules. The sensor is optimized for compounds such as <strong>Ammonia (NH3​), Nitrogen Oxides (NOx​), Benzene, Alcohol, and Carbon Dioxide (CO2​)</strong>, making it an effective proxy for general IAQ assessment across a wide spectrum of common indoor contaminants.</p><p>The sensor provides an <strong>analog output voltage</strong> which is inversely proportional to the air quality (i.e., a higher voltage indicates higher pollutant concentration). This analog signal is the primary input to the control system.</p><h4>2.2. The Control Module: Arduino Uno Microcontroller</h4><p>The <strong>Arduino Uno</strong> board, featuring the <strong>ATmega328P</strong> microcontroller, serves as the central processing unit (CPU) and decision-making engine. Key functionalities include:</p><ol><li><strong>Analog-to-Digital Conversion (ADC):</strong> Digitizing the continuous voltage signal from the MQ-135 into a 10-bit integer value (0–1023).</li><li><strong>Algorithm Execution:</strong> Running the core control logic, which incorporates a <strong>calibrated safety threshold</strong> and applies conditional statements to determine the required output state.</li><li><strong>Signal Output:</strong> Generating a binary <strong>ON/OFF digital signal</strong> (HIGH or LOW) that dictates the operational status of the filtration unit.</li></ol><h4>2.3. The Actuation Module</h4><p>This module facilitates the physical remediation of the air and consists of two primary electromechanical components:</p><ul><li><strong>HEPA Filtration Unit:</strong> This filter employs a dense mat of randomly arranged borosilicate glass fibers to trap particulates through three mechanisms: <strong>impaction, interception, and diffusion</strong>. It is specified to remove a minimum of <strong>99.97%</strong> of airborne particles with a size of <strong>0.3 μm (MPPS — Most Penetrating Particle Size)</strong>, crucial for eliminating fine dust and airborne pathogens.</li><li><strong>Axial Fan:</strong> This mechanism provides the necessary <strong>airflow rate (CFM — Cubic Feet per Minute)</strong> to create negative pressure, drawing ambient air through the HEPA filter media and back into the environment.</li><li><strong>5V DC Relay Module:</strong> An electromagnetically-operated switch that ensures <strong>galvanic isolation</strong> between the low-voltage microcontroller logic (5V) and the higher-voltage power supply required for the fan motor, guaranteeing safety and protecting the sensitive control circuitry.</li></ul><h3>3. Operational Logic and Signal Processing</h3><p>The efficacy of the system is rooted in precise signal processing and a validated control protocol.</p><h4>3.1. Sensor Calibration and Threshold Determination</h4><p>Accurate performance hinges on the <strong>baseline calibration</strong> of the MQ-135 sensor. The sensor must first be aged and characterized in a known environment of <strong>clean air</strong> to determine the baseline resistance (R0​). The resistance ratio (Rs/R0​, where Rs is the sensor resistance) is then used to accurately correlate the measured voltage with a standard PPM concentration value, referencing the sensor’s manufacturer datasheet and established linearization curves.</p><p>For this prototype, the <strong>control threshold</strong> was empirically set at an <strong>Analog-to-Digital (ADC) value of 50</strong>. This value represents the critical point where the concentration of target gases necessitates immediate intervention, providing a <strong>precautionary safety margin</strong> against rapidly deteriorating IAQ.</p><h4>3.2. Automated Control Flow</h4><p>The system operates based on a real-time, self-regulating control protocol:</p><ol><li><strong>Continuous Sampling:</strong> The Arduino continuously polls the MQ-135 sensor via its analog input pin (A0) at a predetermined, consistent sampling frequency (e.g., 500 ms).</li><li><strong>Condition Assessment:</strong> The acquired ADC value (VADC​) is compared against the predefined digital threshold (VThreshold​=50).</li><li><strong>Filtration Activation:</strong> If the logical condition VADC​&gt;VThreshold​ is satisfied, indicating pollutant concentrations exceed the safety limit, the Arduino immediately transmits a <strong>HIGH</strong> digital signal to the relay module’s input pin, closing the relay contacts and <strong>powering the fan ON</strong>. The system enters the active remediation phase.</li><li><strong>Standby/Energy Conservation:</strong> If the condition VADC​≤VThreshold​ is met, the air quality is deemed satisfactory. The Arduino transmits a <strong>LOW</strong> signal to the relay, ensuring the fan remains <strong>OFF</strong> and placing the system in an <strong>energy-saving standby mode</strong>.</li></ol><p>This logic creates a robust, <strong>Hysteresis-free ON/OFF control mechanism</strong> that directly links system operation to quantitative ambient air quality metrics.</p><h3>4. Performance Validation and Discussion</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*9yYoS1A7TYVKdlGrdLNzeA.png" /><figcaption>Figure 2: Physical Prototype of the Autonomous Air Purification System.</figcaption></figure><p>The system was rigorously tested under controlled and simulated real-world conditions to validate its responsiveness and control loop integrity.</p><p>Test ConditionMQ-135 Analog Reading (ADC Units)System StatusObserved Action<strong>Clean Ambient Air</strong>42−44StandbyFan OFF (Power Optimization)<strong>Light Pollution (VOCs/Low CO)</strong>51−66Active RemediationFan ON / Filtration Commenced<strong>Heavy Pollution (Concentrated Smoke)</strong>483−684Active RemediationFan ON / Maximum Airflow Rate</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*-Vt52AvNc5tPzDvovqvj5Q.png" /><figcaption>The proposed air purifier is realized through a modular, three-tier architecture. A comprehensive list of the hardware employed, along with their respective roles in the system, is presented in <strong>Table 1</strong>.</figcaption></figure><p>The validation process yielded critical insights:</p><ol><li><strong>High Sensitivity and Reliability:</strong> The MQ-135 sensor accurately registered a near 15-fold spike in the ADC value upon exposure to heavy contamination, confirming its reliability as a trigger mechanism for active filtration.</li><li><strong>Control Loop Integrity:</strong> The <strong>Arduino-Relay interface</strong> demonstrated minimal switching latency, ensuring the immediate and automatic activation of the fan upon crossing the ADC threshold of 50. Conversely, the system correctly maintained the fan in the OFF state during periods of satisfactory air quality, confirming the success of the DCV strategy.</li></ol><h3>5. Conclusion</h3><p>This research successfully designed and verified an <strong>Autonomous Air Purifier</strong> that leverages the electrochemical sensing capability of the MQ-135 sensor coupled with the processing power of the Arduino platform. The resulting system effectively manages IAQ through a <strong>demand-driven actuation strategy</strong>, leading to significant improvements in energy efficiency over continuously running units while maintaining a high standard of air purity through HEPA filtration. This prototype represents a practical, affordable, and easily deployable model for future <strong>Smart Home</strong> environmental control systems. Future work should focus on integrating <strong>Internet of Things (IoT) connectivity</strong> for remote data logging and implementing a <strong>Proportional-Integral-Derivative (PID) control algorithm</strong> to modulate fan speed (and thus CFM) proportionally to the detected pollutant concentration for greater operational granularity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c6038181187" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Ultrasonic Sensors Measure Water Level in Industrial Systems]]></title>
            <link>https://medium.com/@triani.arn0106/how-ultrasonic-sensors-measure-water-level-in-industrial-systems-6cd7fc96b361?source=rss-af5149a4e033------2</link>
            <guid isPermaLink="false">https://medium.com/p/6cd7fc96b361</guid>
            <category><![CDATA[instrumentation]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[process-control]]></category>
            <category><![CDATA[industrial-engineering]]></category>
            <dc:creator><![CDATA[Riani]]></dc:creator>
            <pubDate>Fri, 10 Oct 2025 19:39:22 GMT</pubDate>
            <atom:updated>2025-10-10T19:39:22.647Z</atom:updated>
            <content:encoded><![CDATA[<h3>How Ultrasonic Sensors Measure Water Level in Industrial Systems</h3><h3>Introduction: The Imperative of Non-Contact Level Measurement</h3><p>Accurate and reliable liquid level measurement is a cornerstone of operational efficiency and safety in process industries, including petrochemical refining, power generation, and water treatment. Conventional contact-based level sensors often face challenges like corrosion, fouling, and maintenance issues, leading to inaccurate or inconsistent real-time data. To overcome these operational constraints, modern facilities, such as the <strong>Utilities Unit at PT Kilang Pertamina Internasional Refinery Unit III Plaju</strong>, have adopted non-contact measurement technologies, with the <strong>Ultrasonic Level Transmitter</strong> emerging as a robust and efficient solution. This technology is critical for maintaining process stability, particularly in demanding applications like the <strong>Cooling Tower Basin</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*sjGEcjFWm69pALPn_Q6PJw.png" /><figcaption><strong><em>Figure 1.</em></strong><em> Principle of ultrasonic level measurement showing the relationship between the measured distance (S), tank height (H), and liquid level (h). The transmitter outputs a proportional 4–20 mA signal corresponding to the detected level.</em></figcaption></figure><h3>The Technical Principle: Time-of-Flight (ToF)</h3><p>The functionality of an ultrasonic sensor for level measurement is based on the <strong>Time-of-Flight (ToF)</strong> principle. This non-invasive method allows for highly accurate distance sensing without any moving parts or direct contact with the measured medium (the water).</p><h4>Mechanism of Measurement:</h4><ol><li><strong>Pulse Emission:</strong> An ultrasonic sensor, housed in a <strong>transducer</strong>, emits a burst of high-frequency sound waves (ultrasound) towards the liquid surface.</li><li><strong>Acoustic Reflection:</strong> The pulse travels through the air/gas space and is reflected as an <strong>echo</strong> upon hitting the water surface.</li><li><strong>Time-of-Flight Calculation:</strong> The sensor measures the time elapsed between the initial pulse emission and the return of the echo. This is the “Time-of-Flight” (TTOF​).</li><li><strong>Distance Conversion:</strong> The distance (D) from the transducer to the liquid surface is calculated using the constant speed of sound © in the vapor space:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/241/1*dCjPqlt4K4eirOsdWsismA.png" /></figure><p>The formula includes division by two because the time measured is for the round trip (down and back). The speed of sound © is often temperature-compensated by the transmitter to maintain high precision.</p><p><strong>Level Calculation:</strong> Crucially, the final <strong>Level (L)</strong> of the liquid is determined by subtracting the measured distance (D) from the sensor’s predetermined zero-level reference point, known as the <strong>span</strong> or <strong>maximum tank height (H)</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*_eGSWxEH5ZBL7qsZuH2KLA.png" /></figure><p>The result is a highly precise measurement of the water level. This data is then translated into a standard industrial signal, typically a <strong>4–20 mA current output</strong>, which represents the measured level percentage (e.g., 4 mA corresponds to 0% level, and 20 mA corresponds to 100% level).</p><h3>Application in Industrial Control Loops</h3><p>In a facility like a refinery, the ultrasonic transmitter is not merely a monitoring device; it is a critical component of a closed-loop <strong>Level Control System</strong>. Its primary function is to feed reliable level data back into the plant’s <strong>Distributed Control System (DCS)</strong>.</p><h4>The Control Loop in the Cooling Tower Basin:</h4><ul><li><strong>Sensing (LT):</strong> The <strong>Ultrasonic Level Transmitter (LT)</strong> continuously measures the water level in the Cooling Tower Basin. This measurement is crucial because the basin serves as the reservoir for the entire cooling system, which prevents equipment overheating.</li><li><strong>Controlling (LC):</strong> The <strong>Level Controller (LC)</strong> — often a function block within the DCS — receives the 4–20 mA signal from the LT. It then compares the <em>actual level</em> against a predetermined <em>setpoint</em>.</li><li><strong>Actuating (LV):</strong> If the actual level deviates from the setpoint (e.g., due to evaporation or blowdown), the LC generates a control signal to modulate the position of a final control element, specifically the <strong>Control Valve (LV22001)</strong>. This valve controls the inflow of <strong>CW Make Up</strong> (fresh water) into the basin.</li><li><strong>Level Stability:</strong> By constantly monitoring and adjusting the valve position, the system ensures that the water level is maintained at a precise, stable point, thereby enhancing the operational efficiency of the entire cooling system.</li></ul><p>The implementation of the industrial-grade ultrasonic transmitter effectively solves the instability problems associated with non-real-time measurement, providing the high degree of accuracy required in complex, high-stakes industrial environments.</p><h3>Conclusion: Enhancing Process Reliability</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*z6lkxxagC6NWI_G8FY2_0Q.png" /><figcaption><strong>Figure 2.</strong> Control system of the Cooling Tower Basin, where the ultrasonic transmitter (LT) provides real-time level data to the controller (LC) to regulate the makeup water valve (LV22001).</figcaption></figure><p>The adoption of ultrasonic sensors for liquid level measurement signifies a move towards greater process reliability and automation in industrial systems. Their <strong>non-contact nature</strong> offers significant operational advantages: it eliminates concerns about maintenance, corrosion, and fouling, ensuring the sensor’s output remains accurate and consistent over time.</p><p>By integrating this precise level data into sophisticated control loops, companies can proactively manage essential utilities, such as the cooling water supply, thereby mitigating risks like equipment overheating and ensuring continuous, safe, and efficient plant operation. Ultrasonic technology is thus established as an indispensable element in modern industrial instrumentation and control architecture.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6cd7fc96b361" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>