Interfacing of Flame Sensor with Arduino

Hello friends, I hope you all are fine and having fun with your lives. Today, I am going to share a new tutorial which is Interfacing of Flame Sensor with Arduino. I have recently posted a tutorial in which I have shared the Flame Sensor Library for Proteus. Now in this tutorial, I am gonna use that Flame Sensor Library and will interface this Flame Sensor with Arduino. So, if you haven't downloaded this file then I suggest you to download this Flame Sensor Library so that you can easily simulate this flame Sensor in Proteus.

I am sharing interfacing of this Flame Sensor with Arduino today, but soon I will also post a tutorial on Interfacing of Flame Sensor with PIC Microcontroller. If you guys have any questions then ask in comments. I have also given the Simulation file and the Programming code below to download. But I would recommend you to design this proejct on your own so that you make mistakes and then learn from them. So, let's get started with Interfacing of Flame Sensor with Arduino:

Interfacing of Flame Sensor with Arduino

  • You can download the complete Proteus Simulation along with Arduino programming code from the below button:

Download the Simulation

  • Now design a small Arduino code as given below:
#include <LiquidCrystal.h>

LiquidCrystal lcd(13, 12, 11, 10, 9, 8);

int Flame = 7;

void setup() {
  Serial.begin(9600);
  pinMode(Flame, INPUT_PULLUP);
  lcd.begin(20, 4);
  lcd.setCursor(0,0);
  lcd.print("Flame : ");
  lcd.setCursor(1,2);
  lcd.print("www.TheEngineering");
  lcd.setCursor(4,3);
  lcd.print("Projects.com");
}

void loop() {
  if(digitalRead(Flame) == HIGH){lcd.setCursor(8,0);lcd.print("Detected    ");}
  if(digitalRead(Flame) == LOW ){lcd.setCursor(8,0);lcd.print("Not Detected");}
  
}
  • Add this code in your Arduino software and compile it to get the Hex File from Arduino Software.
  • Upload this hex file in your simulation and then run your simulation and if everything goes fine then you will get something as shown in below figure:
  • In the above figure, you can see the sensor is off that's why in the LCD its written that no smoke detected.
  • Now, let's bring some Flame by clicking the Logic State on Flame Sensor and you will see the below results:
  • Now you can see in the above figure that when the Flame is detected then the LCD indicated that Flame has detected.
  • That's how we can easily simulate the Flame Sensor with Arduino.
  • I have explained this project in detail in the below video:
That's all for today. I hope you have enjoyed this project and now you can easily interface your Flame Sensor with Arduino in Proteus ISIS.

Flame Sensor Library for Proteus

Hello friends, I hope you all are fine and having fun with your lives. In today's tutorial, I am going to share a new Flame Sensor Library for Proteus. This Flame Sensor is not available in Proteus and its library is not yet developed anywhere. We are the first ones designing this new Flame Sensor Library for the first time. I am quite excited while sharing it as it's our team efforts that we are able to design new Proteus Libraries which are helpful for students.

We are planning to share more sensor libraries this week. I hope you guys are going to enjoy them and share them with your friends so that they can also know about them. Other bloggers are warmly welcome to share this library on their blogs but do mention our blog link in it as a favor. As this flame sensor is concerned, you can also interface it with any Microcontroller like Arduino, 8051 Microcontroller, PIC Microcontroller etc. It is also used in Embedded Systems Projects especially related to security.

If you have any questions, then ask in the comments. In this next tutorial, I will show you How to interface this Flame Sensor with Arduino in Proteus ISIS. So, now let's get started with this new Flame Sensor Library for Proteus.

Note: Other Proteus Libraries are as follows:

Flame Sensor Library for Proteus

  • First of all, download the Flame Sensor Library for Proteus by clicking the below button:
Flame Sensor Library for Proteus

  • Once you downloaded the file, extract it.
  • You will find three files in the zip file named as:
    • FlameSensorTEP.IDX
    • FlameSensorTEP.LIB
    • FlameSensorTEP.HEX
  • Now post the libraries files in the Library folder of your Proteus software.
Note:
  • Once you are done, restart your Proteus software and in the components, search for Flame Sensor, as shown in the below figure:
  • Now select this module and place it in your workspace and it will look something as shown in the below image:
  • The Flame sensor is shown in the above figure, it has four pins on it.
  • One of them is Vcc on which you need to give +5V.
  • The other one is GND which you need to ground.
  • The third one is the OUT pin, which will turn HIGH when this Flame sensor will sense the flame.
  • The fourth pin on the side is the TestPin, when it goes HIGH it means the sensor has sensed flame.
  • Because we can't actually bring flame in the Proteus software. :)
  • So, that's why we are using TestPin and when you make this pin HIGH, it will be like the sensor is sensing the Flame and it will give a HIGH signal on your output.
  • Now double-click your flame sensor and in the program file section, upload the FlameSensorTEP.HEX file which you downloaded in the above section and placed in the Library folder of your Proteus software as shown in below figure:
  • You should also have a look at these Arduino Projects for Beginners.
  • After uploading the Hex file now click OK and your sensor is ready to be used.
  • So, now design a simple circuit as shown in the below figure:
  • Now you can see I have applied +5V on Vcc and GND on GND.
  • I have attached a logic state on TestPin, now as the logic state is 0 means no flame was detected by the flame sensor, that's why the OUT pin is zero and the LED is off.
  • Now I am making the TestPin HIGH, and then you will see the OUT Pin will go HIGH and LED will go ON which means the Flame Sensor has detected the Flame, shown in the below figure:
  • Now you can see in the above figure that as I clicked the button the LED goes HIGH.
  • This example simulation is also given in the above file.
  • You should also interface it with different Microcontrollers like Arduino, 8051 Microcontroller, PIC Microcontroller etc.
  • I have also explained the same tutorial in the below video:

So, that's all for today. I hope you have enjoyed this Flame Sensor Library for Proteus. If you are new to Embedded Systems then you should first read this Arduino Tutorial for Beginners. Let me know your suggestions about this amazing Proteus Library. Thanks.

Syed Zain Nasir

I am Syed Zain Nasir, the founder of <a href=https://www.TheEngineeringProjects.com/>The Engineering Projects</a> (TEP). I am a programmer since 2009 before that I just search things, make small projects and now I am sharing my knowledge through this platform.I also work as a freelancer and did many projects related to programming and electrical circuitry. <a href=https://plus.google.com/+SyedZainNasir/>My Google Profile+</a>

Share
Published by
Syed Zain Nasir