top of page

Automatic Water Sprinkler System with Muonix Flame Sensor and Relay Module

Fire safety is a critical concern in homes, offices, and industrial spaces. An automatic water sprinkler system can detect flames early and activate water flow to suppress fires before they spread. This post explains how to build such a system using the Muonix flame sensor and a Muonix single channel relay module. You will learn how the flame sensor works, how it triggers the relay to activate the sprinkler, and step-by-step instructions to set up the system safely. Whether you are a DIY enthusiast or a professional, this guide will help you create a reliable fire detection and response system.



Understanding the Muonix Flame Sensor and Relay Module


The core of this automatic sprinkler system is the Muonix flame sensor paired with a Muonix single channel relay module. Here’s how each component functions:


  • Muonix Flame Sensor

This sensor detects the presence of fire by sensing infrared (IR) light emitted by flames. It is sensitive to wavelengths typically between 760 nm and 1100 nm, which correspond to the IR spectrum of fire. When the sensor detects a flame, it outputs a signal indicating the presence of fire.


  • Muonix Single Channel Relay Module

The relay module acts as a switch controlled by the flame sensor’s output. When the sensor signals a fire, the relay activates an electrical circuit that powers the water sprinkler system. The relay isolates the low-voltage sensor circuit from the high-voltage sprinkler system, ensuring safety and reliable operation.


Together, these components create a system that automatically detects fire and triggers water flow to extinguish it.



How the Flame Sensor Detects Fire and Triggers the Sprinkler


The flame sensor continuously monitors the environment for IR light emitted by flames. When a fire starts, the sensor detects the IR radiation and sends a digital signal to the relay module. The relay then closes its normally open contact, completing the circuit that powers the sprinkler pump or valve.


This process happens in real time, allowing the sprinkler system to activate within seconds of detecting a flame. The system can be connected to a water pump or an electrically controlled valve that releases water through sprinkler heads.



Muonix flame sensor and relay module



Step-by-Step Instructions to Set Up the System


Materials Needed


  • Muonix flame sensor

  • Muonix single channel 5V/12V relay module

  • Microcontroller (Arduino, Raspberry Pi, or similar)

  • Water sprinkler system (5V/12V DC pump or solenoid valve with sprinkler heads)

  • Power supply (appropriate voltage for sensor, microcontroller and relay)

  • Connecting wires and breadboard or PCB

  • Protective casing for electronics

  • Water source and piping for sprinklers


Wiring the Components


  1. Connect the Flame Sensor to the Microcontroller

    • Connect the sensor’s VCC pin to the microcontroller’s 5V output.

    • Connect the GND pin to the microcontroller’s ground.

    • Connect the sensor’s digital output pin to a digital input pin on the microcontroller (e.g., pin 7 on Arduino).

  2. Connect the Relay Module

    • Connect the relay module’s VCC and GND pins to the microcontroller’s 5V and ground.

    • Connect the relay input pin (IN) to a digital output pin on the microcontroller (e.g., pin 8 on Arduino).

    • Connect the relay’s normally open (NO) and common (COM) terminals in series with the sprinkler pump or valve power line.

  3. Power the Microcontroller and Relay

    • Use a stable power supply to power the microcontroller and relay module.

    • Ensure the relay’s load circuit (sprinkler pump or valve) is powered according to its specifications.


Programming the Microcontroller


Use a simple program to read the flame sensor’s digital output and control the relay:


```cpp

const int flameSensorPin = 7;

const int relayPin = 8;


void setup() {

pinMode(flameSensorPin, INPUT);

pinMode(relayPin, OUTPUT);

digitalWrite(relayPin, LOW); // Relay off initially

}


void loop() {

int flameDetected = digitalRead(flameSensorPin);

if (flameDetected == HIGH) {

digitalWrite(relayPin, HIGH); // Activate sprinkler

} else {

digitalWrite(relayPin, LOW); // Deactivate sprinkler

}

delay(100); // Small delay for stability

}

```


This code continuously checks for flames and triggers the relay when fire is detected.


Testing the System


  • Place a small flame source (like a lighter or candle) near the flame sensor.

  • Observe if the relay activates and powers the sprinkler system.

  • Confirm the sprinkler water flow starts immediately when the flame is detected.

  • Remove the flame and verify the sprinkler stops after a short delay.



Safety Tips for Installation and Operation


  • Use waterproof and heat-resistant enclosures for all electronic components to prevent damage and electrical hazards.

  • Ensure proper insulation of all wiring to avoid short circuits or accidental contact with water.

  • Test the system regularly to confirm sensors and relays function correctly.

  • Install the flame sensor in a location with a clear line of sight to potential fire sources but away from direct water spray.

  • Use a fuse or circuit breaker in the sprinkler power line to protect against electrical faults.

  • Do not rely solely on this system for fire safety; use it as part of a comprehensive fire protection plan including alarms and manual extinguishers.



Maintenance Advice to Keep the System Reliable


  • Clean the flame sensor lens periodically to remove dust, dirt, or soot that could block IR detection.

  • Check relay contacts for corrosion or wear and replace the relay if it shows signs of damage.

  • Inspect wiring connections for looseness or damage and tighten or replace as needed.

  • Test the system monthly by simulating a flame to ensure the relay and sprinkler activate properly.

  • Replace the water sprinkler heads if they become clogged or damaged to maintain proper water flow.

  • Keep the power supply stable and monitor for voltage fluctuations that could affect sensor or relay performance.



 
 
 

Comments


bottom of page