{"product_id":"flame-sensor-module","title":"Flame Sensor Module","description":"\u003cp\u003e\u003cspan\u003eDetects open flame by detecting light that is in the infrared spectrum.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDescription\u003c\/h2\u003e\n\u003cp\u003eThe Flame Sensor Module is used to detect an open flame by detecting light that is in the infrared spectrum as produced by an open flame.\u003c\/p\u003e\n\u003ch2\u003e\u003cstrong\u003ePACKAGE INCLUDES:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eFlame Sensor Module\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eKEY FEATURES OF FLAME SENSOR MODULE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eDetects infrared in the spectrum produced by an open flame\u003c\/li\u003e\n\u003cli\u003eProvides both an analog and digital output with a sensitivity adjustment\u003c\/li\u003e\n\u003cli\u003e3.3 and 5V compatible\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThis sensor module is primarily used to detect an open flame.  It does this by detecting light that is in the IR (infrared) spectrum which is emitted by a flame.  That spectrum is typically in the range of 700-1100nm.\u003c\/p\u003e\n\u003cp\u003eThis module is similar to a regular IR detector, but with a broader detection range.  It can be used as a general IR detector for other applications where a broad detection range is desired.\u003c\/p\u003e\n\u003ch3\u003eOutputs\u003c\/h3\u003e\n\u003cp\u003eThe module has both an analog output and a digital output with sensitivity adjustment on the module.\u003c\/p\u003e\n\u003cp\u003eThe Analog output on ‘\u003cstrong\u003eA0\u003c\/strong\u003e‘ is normally a voltage of approximately 1\/2 Vcc when no signal is detected.  The actual voltage level will depend on the setting of the sensitivity pot. If a flame is detected, that output voltage will drop towards ground depending on the strength of the IR detected.\u003c\/p\u003e\n\u003cp\u003eThe Digital output on ‘\u003cstrong\u003eD0\u003c\/strong\u003e‘ is normally LOW.  When IR is detected by the sensor, the output goes HIGH.  The sensitivity adjustment can be used to set the trip point.  LED2 will light when the output goes HIGH.\u003c\/p\u003e\n\u003ch3\u003eModule Connections\u003c\/h3\u003e\n\u003cp\u003eThere is a 4-pin header on the assembly.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 4 Header \u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eGND \/ G\u003c\/strong\u003e  = Ground\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003e‘+’\u003c\/strong\u003e = Vcc (3.3 – 5V)\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eA0 =\u003c\/strong\u003e Analog output, connects to analog input on uC\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eD0\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e= Digital output, connects to digital input on uC\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\u003cstrong\u003eOUR EVALUATION RESULTS:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cp\u003eThese modules are interesting for experimenting with flame detection as part of a fire detector setup.  They can also be used to monitor a flame to determine if it has gone out, such as a pilot light.  Commercial fire detection systems often also include light flicker detection to help determine if a flame is present since most sources of IR including sunlight can trigger this module, not just a flame.\u003c\/p\u003e\n\u003cp\u003eThe module is straight forward to use.  Hook up ground and Vcc (3.3 or 5V).  A red LED lights when power is applied.  There is a red or green LED2 that lights when IR within the sensor range is being detected.  If that LED is always on, adjust the sensitivity adjustment potentiometer CCW until the LED goes off.  If a match or other flame is then lit and held in front of the sensor, the LED should come on showing that it is being detected.  An IR TV remote can also be used to test the operation of the device by pointing it at the sensor and pressing any button.\u003c\/p\u003e\n\u003cp\u003eThe simple program below can be used to monitor both the analog and digital outputs of the device to see how it reacts to the presence of a flame.\u003c\/p\u003e\n\u003ch3\u003eFlame Sensor Module Example Program\u003c\/h3\u003e\n\u003cpre class=\"copy-the-code-target\"\u003e\u003cspan\u003e\/*\u003c\/span\u003e\n\u003cspan\u003eFlame Sensor Module Test\u003c\/span\u003e\n\n\u003cspan\u003eBasic code to monitor the outputs of the flame sensor module \u003c\/span\u003e\n\u003cspan\u003e*\/\u003c\/span\u003e\n\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eflameDigitalPin\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e7\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Random digital pin for monitoring the digital output\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eflameAnalogPin\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eA0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Random analog pin for monitoring the analog output\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003edigitalValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e     \u003cspan\u003e\/\/ Variable to hold the returned digital value\u003c\/span\u003e\n\u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eanalogValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e      \u003cspan\u003e\/\/ Variable to hold the returned analog value\u003c\/span\u003e\n\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Initialization\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003esetup\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \n\u003cspan\u003e{\u003c\/span\u003e \n  \u003cspan\u003epinMode\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eflameDigitalPin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eINPUT\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Set pin as Input\u003c\/span\u003e\n  \u003cspan\u003epinMode\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eflameAnalogPin\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eINPUT\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Set pin as Input\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ebegin\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e9600\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e      \u003cspan\u003e\/\/ Set output window comm rate\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Main\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eloop\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \n\u003cspan\u003e{\u003c\/span\u003e\n \n    \u003cspan\u003edigitalValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003edigitalRead\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eflameDigitalPin\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cspan\u003eanalogValue\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eanalogRead\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eflameAnalogPin\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Digital: \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003edigitalValue\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Analog: \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eanalogValue\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n \n  \u003cspan\u003edelay\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e1000\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cbutton class=\"copy-the-code-button\" data-style=\"svg-icon\" title=\"Copy\"\u003e\u003csvg aria-hidden=\"true\" role=\"img\" class=\"copy-icon\" viewbox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" focusable=\"false\"\u003e\u003cpath d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z\"\u003e\u003c\/path\u003e\u003cpath d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\u003c\/pre\u003e\n\u003ch2\u003e\u003cstrong\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/strong\u003e\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eInspected\u003c\/li\u003e\n\u003cli\u003eBasic outputs verified\u003c\/li\u003e\n\u003cli\u003ePackaged in a resealable ESD bag for protection and easy storage.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eThis module is the same or similar to the KY-026\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch4\u003e\u003cstrong\u003eTechnical Specifications\u003c\/strong\u003e\u003c\/h4\u003e\n\u003ctable class=\"table table-hover\" width=\"855\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eMaximum Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Vcc\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e3.3 – 5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          I\u003csub\u003eMax\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eMaximum Current Draw\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u0026lt;  7mA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003e Operating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Wavelength\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e700-1100nm (typical)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e36 x 15mm  (1.4x 0.6″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45683446284523,"sku":"","price":3.12,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/Flame-Detection-Module-1.jpg?v=1723005243","url":"https:\/\/keszooxstore.com\/products\/flame-sensor-module","provider":"Keszoox","version":"1.0","type":"link"}