Main Menu

Secondary Menu

How to Track Fire With Flame Sensor

Introduction: How to Track Fire With Flame Sensor

How do we track fire using 8 Channel Flame Sensor that will be driven by servo motor?

The workflow of this fire tracking is the reading of 8 Channel Flame Sensor simultaneously, and then searched for the smallest flame value using the MIN function of the Arduino. Why do we use the smallest? Because the closer the source of flame, the smaller the value will be generated.

After searching for the smallest value, it will then look for the position on which the Flame Sensor detects the flame, which will serve as the reference point of movement of the servo motor. If the first flame sensor is read, then the servo movement will go to 180 degrees. If the 8th flame sensor is read, then the servo will move to 0 degrees.

In the above program, the servo will be given the pulse width according to error * 23. The value of 23 is taken due to the maximum degree of servo 180 and the number of 8 sensors, so that 180/8 = 22.5 will be rounded to 23.