        <style>
            #donation_buttons td{
                border:medium none;
                background: inherit !important;
            }
            #donation_buttons table{               
                border:medium none;
                margin: auto;
                width: auto;
            }
        </style>
        {"id":6397,"date":"2021-04-23T01:59:33","date_gmt":"2021-04-23T01:59:33","guid":{"rendered":"https:\/\/rogerbit.com\/wprb\/?p=6397"},"modified":"2021-04-23T01:59:33","modified_gmt":"2021-04-23T01:59:33","slug":"ts01-non-contact-temperature-sensor","status":"publish","type":"post","link":"https:\/\/rogerbit.com\/wprb\/2021\/04\/ts01-non-contact-temperature-sensor\/","title":{"rendered":"TS01 non-contact temperature sensor"},"content":{"rendered":"<p><iframe loading=\"lazy\" title=\"\ud83c\udf21\ufe0f Sensor de temperatura sin contacto TS01 de DFRobot\" width=\"1160\" height=\"653\" src=\"https:\/\/www.youtube.com\/embed\/egSRc_Tes9k?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p>In this video we will see the TS01 non-contact temperature sensor in the 0 to 3 Volt version of DFRobot. We will see how to easily connect it to an Arduino one together with an oled display we will be able to record the temperature of different objects that are around us without having to touch them Ideal for an industrial environment, and be able to take the temperature remotely safely.<\/p>\n<p>You can find more DFRobot products on\u00a0<a href=\"https:\/\/www.dfrobot.com\/?tracking=6054215fb144f\">https:\/\/www.dfrobot.com\/?tracking=6054215fb144f<\/a><\/p>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-6381\" src=\"https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/dfrobot-logo-1.png\" sizes=\"(max-width: 285px) 100vw, 285px\" srcset=\"https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/dfrobot-logo-1.png 601w, https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/dfrobot-logo-1-300x216.png 300w\" alt=\"\" width=\"285\" height=\"205\" \/><\/p>\n<p>And the TS01 non-contact temperature sensor in\u00a0<a href=\"https:\/\/www.dfrobot.com\/product-1823.html\">https:\/\/www.dfrobot.com\/product-1823.html<\/a><\/p>\n<hr \/>\n<p>You may be interested in projects in Arduino, pic, robotics, telecommunications,\u00a0<a href=\"http:\/\/www.youtube.com\/user\/carlosvolt?sub_confirmation=1\">subscribe http:\/\/www.youtube.com\/user\/carlosvolt?sub_confirmation=1<\/a>\u00a0videos with full source code and diagrams<\/p>\n<div id=\"ubm-banners-rotation-n1\" data-interval=\"4000\" class=\"ubm_banners_rotation\" style=\"overflow: hidden; width: 200px; height: 150px;\"><div id=\"3_ubm_banner\" class=\"ubm_rotating_banner\"><a href=\"https:\/\/bit.ly\/3aXRDAu\" target=\"_blank\" rel=\"dofollow\"><img src=\"https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/useful_banner_manager_banners\/3-2-logo youtube.png\" width=\"100%\" height=\"100%\" alt=\"SUSCRIBETE A NUESTRO CANAL DE YOUTUBE, TUTORIALES GRATIS\" \/><\/a><\/div><\/div>\n<hr \/>\n<h4>introduction<\/h4>\n<div class=\"desCon\">\n<p>The DFRobot TS01 IR temperature sensor is a non-contact thermal sensor, which can be used to measure the infrared intensity of the object to calculate the temperature of its surface without touching it. The built-in temperature compensation for the sensor greatly ensures the accuracy of the temperature measurement. The all-metal sensor package makes it able to protect against impacts, water, dust, etc. With stable output data, this temperature sensor can exhibit much better measurement performance than most other similar\u00a0<a href=\"https:\/\/www.dfrobot.com\/category-64.html\" target=\"_blank\" rel=\"noopener\">products on<\/a>\u00a0the market. The product has been calibrated over a wide temperature range before leaving the factory. With an operating temperature of -40oC -85oC, the sensor can be used to measure the temperature of -70oC to 380oC while providing a maximum accuracy of 0.5oC.<\/p>\n<p>An optical filter (long wave pass) that cuts off visible radiant flow and near-infrared is integrated into the package to provide immunity to the environment and sunlight. Its field of view is as small as 5o, which means that for a heat source 10 cm in outer diameter, the maximum measurement distance of the sensor can reach up to 116 cm.<\/p>\n<\/div>\n<div><\/div>\n<div>In addition, we use protective cables to reduce external radiation interference to the sensor, as well as to reduce its own radiation interference to the outdoor environment, which makes the sensor can be applied to all kinds of complicated industrial situations. At the same time, product accuracy has increased greatly.<\/div>\n<div>\n<h4>characteristics<\/h4>\n<div class=\"desCon\">\n<ul>\n<li>Non-contact temperature measurement<\/li>\n<li>Industrial grade operating temperature range<\/li>\n<li>Analog voltage output<\/li>\n<li>Metal packaging<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone size-large wp-image-6374\" src=\"https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/SEN0256-1024x145.png\" sizes=\"(max-width: 1024px) 100vw, 1024px\" srcset=\"https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/SEN0256-1024x145.png 1024w, https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/SEN0256-300x42.png 300w, https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/SEN0256-768x109.png 768w, https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/SEN0256-1536x217.png 1536w, https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/SEN0256-2048x290.png 2048w, https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/SEN0256-820x116.png 820w, https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/SEN0256-1320x187.png 1320w\" alt=\"\" width=\"1024\" height=\"145\" \/><\/p>\n<\/div>\n<h4>specification<\/h4>\n<div class=\"desCon\">\n<ul>\n<li>Supply voltage: 5.0 x 24 V DC<\/li>\n<li>Operating current: 20 mA<\/li>\n<li>Signal output: analog voltage 0 x 3 V<\/li>\n<li>Operating temperature: -40oC to 85oC<\/li>\n<li>Measuring temperature: -70oC to 380oC<\/li>\n<li>Accuracy: \u00b1 0.5oC \u00b1 4oC<\/li>\n<li>Field of View: 5&#8242;<\/li>\n<li>Degree of defense: IP65<\/li>\n<li>Probe Diameter: 15.4mm \/ 0.61&#8243;<\/li>\n<li>Probe length: 78 mm \/ 3.07 \u00ab<\/li>\n<li>Cable length: 1.5 m \/ 59.06 \u00ab<\/li>\n<li>Interface type: DuPont 3Pin + DuPont 1Pin<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-6373\" src=\"https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/SEN0256.jpg\" sizes=\"(max-width: 600px) 100vw, 600px\" srcset=\"https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/SEN0256.jpg 600w, https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/SEN0256-300x300.jpg 300w, https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/SEN0256-150x150.jpg 150w\" alt=\"\" width=\"600\" height=\"600\" \/><\/p>\n<h2 id=\"target_6\">Measurement precision gradient diagram<\/h2>\n<ul>\n<li>The sensor&#8217;s field of view (FOV) is 5 degrees. The target dimension and the optical properties of the IR temperature sensor decided the maximum distance between the target and the probe. The sensor field of view is shown below.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone size-large wp-image-6375\" src=\"https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/SEN0264-01-1024x153.jpg\" sizes=\"(max-width: 1024px) 100vw, 1024px\" srcset=\"https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/SEN0264-01-1024x153.jpg 1024w, https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/SEN0264-01-300x45.jpg 300w, https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/SEN0264-01-768x115.jpg 768w, https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/SEN0264-01-820x123.jpg 820w, https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/SEN0264-01.jpg 1168w\" alt=\"\" width=\"1024\" height=\"153\" \/><\/p>\n<ul>\n<li>The gradient diagram of the sensor measurement accuracy is shown below (To is the measured temperature; Ta is the temperature of the environment in which the sensor is located). Note that the temperature error only applies to a certain isothermal condition, and is only valid when the detected object is completely filling the sensor&#8217;s field of view.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-6376\" src=\"https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/SEN0256AccuracyDiagram01.png\" sizes=\"(max-width: 698px) 100vw, 698px\" srcset=\"https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/SEN0256AccuracyDiagram01.png 698w, https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/SEN0256AccuracyDiagram01-300x178.png 300w\" alt=\"\" width=\"698\" height=\"415\" \/><\/p>\n<p>source code<\/p>\n<pre class=\"lang:default decode:true \" title=\"Source code\">#include \"U8glib.h\"\/\/Librer\u00eda para el control del display oled\r\nU8GLIB_SH1106_128X64 u8g(U8G_I2C_OPT_NONE);\/\/ I2C \/ TWI \/\/ Se habilita esta linea seg\u00fan el display a usar en este caso el driver SH1106 \r\nfloat i;\r\nvoid setup() {\r\nSerial.begin(9600);\/\/Velocidad del monitor serie\r\n}\r\nvoid loop() {\r\n  \/\/ Leemos el promedio de la entrada anal\u00f3gica 0 \r\n  unsigned int pinA3=pinA3_promedio(200);\/\/Llamamos a la funci\u00f3n para promediar 200 datos del pin anal\u00f3gico\r\n i=((double)pinA3*450\/614.4-70);\/\/Calculo para convertir los datos a grados cent\u00edgrados\r\n  Serial.print(i);\r\n  Serial.println(\"\\u2103\");\/\/Imprimimos el simbolo de grados\r\n  delay(100);\r\n\/\/Display   \r\n    u8g.firstPage();  \r\n  do {\r\n    draw();\/\/Llama a la funci\u00f3n draw\r\n  } while( u8g.nextPage() ); \r\n}\r\n\/\/Funci\u00f3n para promediar los volares obtenidos en el pin anal\u00f3gico A3\r\n int pinA3_promedio(double n)\r\n{\r\n  long sumatoria=0;\r\n  for(int i=0;i&lt;n;i++)\r\n  {\r\n    sumatoria=sumatoria+analogRead(A3);\r\n    \/\/delay(1);\r\n  }  \r\n  return(sumatoria\/n);\r\n}\r\n\/\/Funci\u00f3n para mostrar datos en el display\r\nvoid draw(void) {\r\n  \/\/Imprimimos en pantalla el valor de la frecuencia obtenida\r\n  u8g.setFont(u8g_font_unifont);\r\n  u8g.setPrintPos(0, 20); \r\n  u8g.print(\"Temp: \");\r\n  u8g.print(i);\r\n  u8g.print(\"^C\");\r\n  }<\/pre>\n<p>circuit<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-large wp-image-6372\" src=\"https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/circuito-1001x1024.jpg\" sizes=\"(max-width: 1001px) 100vw, 1001px\" srcset=\"https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/circuito-1001x1024.jpg 1001w, https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/circuito-293x300.jpg 293w, https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/circuito-768x786.jpg 768w, https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/circuito-1501x1536.jpg 1501w, https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/circuito-2001x2048.jpg 2001w, https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/circuito-820x839.jpg 820w, https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2021\/04\/circuito-1320x1351.jpg 1320w\" alt=\"\" width=\"1001\" height=\"1024\" \/><\/p>\n<hr \/>\n<div class=\"page-sidebar widget\" id=\"donation_buttons\"><form action=\"https:\/\/www.paypal.com\/cgi-bin\/webscr\" method=\"post\" target=\"_blank\" ><input type=\"hidden\" name=\"business\" value=\"donacion@rogerbit.com\"><input type=\"hidden\" name=\"bn\" value=\"mbjtechnolabs_SP\"><input type=\"hidden\" name=\"cmd\" value=\"_donations\"><input type=\"hidden\" name=\"item_name\" value=\"Ayuda a RogerBit.com\"><input type=\"hidden\" name=\"item_number\" value=\"www.rogerbit.com\"><input type=\"hidden\" class=\"set_donation_button_amount\" name=\"amount\" value=\"1\"><table ><tbody><tr><td><label for=\"rogerBit necesita de tu ayuda para seguir existiendo :-)\">rogerBit necesita de tu ayuda para seguir existiendo :-)<\/label><\/td><\/tr><\/tbody><\/table><table ><tbody><tr><td><input style=\"margin-top:10px;\" type=\"image\" name=\"submit\" border=\"0\" src=\"https:\/\/www.paypal.com\/en_US\/i\/btn\/btn_donateCC_LG.gif\" alt=\"PayPal - The safer, easier way to pay online\"><\/td><\/tr><\/tbody><\/table><input type=\"hidden\" name=\"currency_code\" value=\"USD\"><input type=\"hidden\" name=\"notify_url\" value=\"https:\/\/rogerbit.com\/wprb\/?Donation_Button&#038;action=ipn_handler\"><\/form><\/div>\n<hr \/>\n<p><strong>RECOMMENDED PROJECT<\/strong><\/p>\n<p><iframe loading=\"lazy\" title=\"Subiendo datos de Temperatura Humedad Presi\u00f3n Altitud luz a Ubidots y sensor HTU21D BMP180 BH1750FVI\" width=\"1160\" height=\"653\" src=\"https:\/\/www.youtube.com\/embed\/HhWU47YBQVE?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<\/div>\n<\/div>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>In this video we will see the TS01 non-contact temperature sensor in the 0 to 3 Volt version of DFRobot. We will see how to easily connect it to an Arduino one together with an oled display we will be able to record the temperature of different objects that are around us without having to [&hellip;]<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":6377,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[648],"tags":[45,29,1160,443,1158,934,1166,1167,1168,1169,1165,1164,986,1155,1156,1157],"_links":{"self":[{"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/posts\/6397"}],"collection":[{"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/comments?post=6397"}],"version-history":[{"count":1,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/posts\/6397\/revisions"}],"predecessor-version":[{"id":6398,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/posts\/6397\/revisions\/6398"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/media\/6377"}],"wp:attachment":[{"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/media?parent=6397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/categories?post=6397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/tags?post=6397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}