{"id":491,"date":"2022-11-24T04:57:38","date_gmt":"2022-11-24T04:57:38","guid":{"rendered":"https:\/\/portfolio.wcu.edu\/fjgonzaleztrejo1\/?p=491"},"modified":"2022-11-24T04:57:38","modified_gmt":"2022-11-24T04:57:38","slug":"driving-a-fan-with-a-relay-and-infrared-sensor","status":"publish","type":"post","link":"https:\/\/portfolio.wcu.edu\/fjgonzaleztrejo1\/2022\/11\/24\/driving-a-fan-with-a-relay-and-infrared-sensor\/","title":{"rendered":"Driving a Fan with a Relay and Infrared Sensor"},"content":{"rendered":"<p><iframe loading=\"lazy\" title=\"Driving a Fan with a Relay and Flame Sensor\" width=\"1080\" height=\"608\" src=\"https:\/\/www.youtube.com\/embed\/7PFRUgX8Q7w?feature=oembed\"  allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<p>In this circuit, I&#8217;ll be turning on a fan utilizing a relay, which will turn the fan on depending on the reading of the flame sensor. This system will be used in our firefighting robot project. The goal of this circuit is to detect a flame using an flame sensor, and triggering a response to enable a fan to blow out the flame using a relay to control power to the fan. The flame sensor used is modified to detect infrared light, and can send a analog or digital output signal in the presence of an infrared source, like a flame. I was able to trigger the fan to turn on by using a handheld remote control with an infrared output. I connected the flame sensor to the Arduino Uno using the analog output pin on the flame sensor that can output a number with a range between 0-1000, depending on the distance of the infrared source from the sensor, and the intensity of the light.<\/p>\n<p>The output of the flame sensor can be used to create a range for which a function can execute, for example, do X if the output is less than 200. The Arduino is programmed to send power to a relay, which is connected to a fan on the &#8220;normally open&#8221; terminal of the relay, meaning that the connection between the fan and relay is an open circuit when the relay is not powered or idle, meaning no power to the fan. When the output of the flame signal is within range, power is sent to the relay, which an electromagnetic closes a switch within the relay, completing the circuit to the fan, turning it on, and blowing out the flame.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; In this circuit, I&#8217;ll be turning on a fan utilizing a relay, which will turn the fan on depending on the reading of the flame sensor. This system will be used in our firefighting robot project. The goal of this circuit is to detect a flame using an flame sensor, and triggering a response [&hellip;]<\/p>\n","protected":false},"author":1931,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-491","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/portfolio.wcu.edu\/fjgonzaleztrejo1\/wp-json\/wp\/v2\/posts\/491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/portfolio.wcu.edu\/fjgonzaleztrejo1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/portfolio.wcu.edu\/fjgonzaleztrejo1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/portfolio.wcu.edu\/fjgonzaleztrejo1\/wp-json\/wp\/v2\/users\/1931"}],"replies":[{"embeddable":true,"href":"https:\/\/portfolio.wcu.edu\/fjgonzaleztrejo1\/wp-json\/wp\/v2\/comments?post=491"}],"version-history":[{"count":1,"href":"https:\/\/portfolio.wcu.edu\/fjgonzaleztrejo1\/wp-json\/wp\/v2\/posts\/491\/revisions"}],"predecessor-version":[{"id":492,"href":"https:\/\/portfolio.wcu.edu\/fjgonzaleztrejo1\/wp-json\/wp\/v2\/posts\/491\/revisions\/492"}],"wp:attachment":[{"href":"https:\/\/portfolio.wcu.edu\/fjgonzaleztrejo1\/wp-json\/wp\/v2\/media?parent=491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/portfolio.wcu.edu\/fjgonzaleztrejo1\/wp-json\/wp\/v2\/categories?post=491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/portfolio.wcu.edu\/fjgonzaleztrejo1\/wp-json\/wp\/v2\/tags?post=491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}