Introduction: Flame Logger

About: I love robotics, tech, science anything technical. I love learning, currently in school for cybersecurity, learning network protocols, cloud infrastructure.

This is a simple project; to make a flame sensor and have the information data logged. I wanted to hook something up to my boiler to log the time of the flame is on. Since the boiler is older, this seemed to be the easiest way

To embark on the creation of a data logging flame sensor, utilizing an Arduino Uno as the central controller alongside a flame sensor and an SD card module, a meticulous series of steps must be undertaken to seamlessly integrate these components into a cohesive system that detects, records, and stores flame detection data reliably."

This version aims to elaborate on the complexity and intricacies involved in orchestrating the integration of the mentioned components to ensure an effective and reliable system for detecting and logging flame data.I have not seen anything like this online (hence the intractable) there are many DataLogging for Time Temp etc but nothing for recording flames or really much else.

Supplies

Arduino UNO

Flame Sensor

HiLetgi Mini Logging Recorder, Data logger Module Shield V1.0 Expansion Shield

jumper wires

Step 1: Parts

Not much to say here- all parts are found on amazon

Elegoo EL-CB-001 UNO R3 Board ATmega328P ATMEGA16U2 with USB Cable for Arduino $12

HiLetgo Mini Logging Recorder Data Logger Module Shield V1.0 For Arduino UNO SD Card $ 7

Jumper wires- Less than $10

IR Flame Sensor Module Detector Smartsense For Temperature Detecting Compatible With Arduino by Atomic Market $7

I had some of this stuff due to few sets that I bought.

Step 2: Flame Sensor

Typically a flame sensor that is set up to be hooked up to an Arduino has four connections

1 VCC - voltage

2 GND - Ground

3 A0- Analog Out

4 D0- Digital Out

Some Sensors have only DO ( digital outs)

Step 3: Arduino UNO

There is so much information on the Arduino line that I'm not going to talk about tall that here

YouTube "Arduino" and you will have all the info you need.

Step 4: Data Logger

This particular Data Logger has a RTC ( Real Time Counter) attached to it, it uses and needs a CR1202 watch battery to record if the Arduino loses power.

VERY IMPORTANT

This Data Logger's ChipSelect is set to Pin10- (we'll get to this- but important)

Since this is a Shield all you have to do is plug in into the Arduino- so all you have to do hook the flame sensor to the expansion board.

Step 5: Hardware Set Up

1. Set Up the Hardware:

  • Connect the HiLetgo Mini Logging Recorder Shield (SD card module) to your Arduino Uno.
  • Wire the flame sensor to the Arduino Uno using jumper wires. Connect the sensor's output pin to a digital pin on the Arduino (for example, pin 2).


Step 6: LETS CODE


#include <SPI.h>

#include <SD.h>


const int flamePin = 2; // Flame sensor connected to pin 2

int flameValue = 0;

File dataFile;


void setup() {

  Serial.begin(9600);

  pinMode(flamePin, INPUT);

  if (!SD.begin(10)) { // Initialize SD card

    Serial.println("SD card initialization failed!");

    return;

  }


  Serial.println("SD card initialized.");

  dataFile = SD.open("flameData.txt", FILE_WRITE); // Create or open a file for logging

  if (dataFile) {

    Serial.println("Logging flame data...");

  } else {

    Serial.println("Error opening file for logging!");

  }

}


void loop() {

  flameValue = digitalRead(flamePin); // Read flame sensor value

  if (flameValue == HIGH) {

    Serial.println("Flame detected!");

    dataFile.println("Flame detected!"); // Log flame detection

  }

  delay(1000); // Adjust delay time as needed for your project

}

Step 7: In Conclusion

In the fiery pursuit of engineering brilliance, this data logging flame sensor project exemplifies the fusion of innovation and practicality. With the Arduino Uno as its orchestrator, the flame sensor and SD card module harmonize seamlessly, casting a vigilant eye on the elusive flicker of flames. As data dances through the circuits, each recorded instance of detected fire becomes a testament to the power of technology harnessed for safety and awareness. In this pursuit, the glow of creativity melds with the precision of technology, illuminating a path towards a safer tomorrow.