{"id":3312,"date":"2020-04-28T19:48:43","date_gmt":"2020-04-29T00:48:43","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=3312"},"modified":"2020-04-28T19:50:26","modified_gmt":"2020-04-29T00:50:26","slug":"luminox-o2-sensor-on-arduino","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/luminox-o2-sensor-on-arduino\/","title":{"rendered":"LuminOx O2 Sensor on Arduino"},"content":{"rendered":"\n<p>The LuminOx Oxygen sensor seems to be a pretty decent O2 sensor and easy to get setup and running.<\/p>\n\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-sst-sensing\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/www.sstsensing.com\/product\/luminox-optical-oxygen-sensors-2\/\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Pin<\/strong><\/td><td><strong>Designation<\/strong><\/td><\/tr><tr><td>1<\/td><td>Vs (+5V)<\/td><\/tr><tr><td>2<\/td><td>GND (0V)<\/td><\/tr><tr><td>3<\/td><td>3.3V UART* Sensor Transmit<\/td><\/tr><tr><td>4<\/td><td>3.3V UART* Sensor Receive<\/td><\/tr><tr><td>&nbsp;<\/td><td><em>* 5V tolerant<\/em><\/td><\/tr><\/tbody><\/table><figcaption>Looks like it is 5V tolerant so you should not need a logic level shifter.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Wiring Up LuminOx O2 Sensor to Arduino<\/h2>\n\n\n\n<p>Fortunately wiring up the LuminOx O2 Sensor to an Arduino is super easy<\/p>\n\n\n\n<p>In the code example below we will use pins 10 and 11 to communicate with the sensor.  So you can wire it up as follows<\/p>\n\n\n\n<p>sensor pin 1 -> 5V power<br>sensor pin 2 -> Ground<br>sensor pin 3 -> pin 10<br>sensor pin 4 -> pin 11 <\/p>\n\n\n\n<figure class=\"wp-block-gallery columns-2 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"927\" height=\"1024\" src=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/04\/Arduino-LuminOx-O2-Sensor-Wiring-1-1-927x1024.jpg\" alt=\"\" data-id=\"3316\" class=\"wp-image-3316\" srcset=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/04\/Arduino-LuminOx-O2-Sensor-Wiring-1-1-927x1024.jpg 927w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/04\/Arduino-LuminOx-O2-Sensor-Wiring-1-1-272x300.jpg 272w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/04\/Arduino-LuminOx-O2-Sensor-Wiring-1-1-768x848.jpg 768w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/04\/Arduino-LuminOx-O2-Sensor-Wiring-1-1-1391x1536.jpg 1391w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/04\/Arduino-LuminOx-O2-Sensor-Wiring-1-1-1854x2048.jpg 1854w\" sizes=\"auto, (max-width: 927px) 100vw, 927px\" \/><figcaption class=\"blocks-gallery-item__caption\">LuminOx Sensor and RedBoard<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"1024\" src=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/04\/Arduino-LuminOx-O2-Sensor-Wiring-1-2-729x1024.jpg\" alt=\"\" data-id=\"3317\" data-full-url=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/04\/Arduino-LuminOx-O2-Sensor-Wiring-1-2-scaled.jpg\" data-link=\"https:\/\/www.incredigeek.com\/home\/?attachment_id=3317\" class=\"wp-image-3317\" srcset=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/04\/Arduino-LuminOx-O2-Sensor-Wiring-1-2-729x1024.jpg 729w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/04\/Arduino-LuminOx-O2-Sensor-Wiring-1-2-214x300.jpg 214w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/04\/Arduino-LuminOx-O2-Sensor-Wiring-1-2-768x1078.jpg 768w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/04\/Arduino-LuminOx-O2-Sensor-Wiring-1-2-1094x1536.jpg 1094w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/04\/Arduino-LuminOx-O2-Sensor-Wiring-1-2-1459x2048.jpg 1459w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/04\/Arduino-LuminOx-O2-Sensor-Wiring-1-2-scaled.jpg 1823w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/figure><\/li><\/ul><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Arduino Code for LuminOx O2 Sensor<\/h2>\n\n\n\n<p>Should be able to just copy and past the code into the arduino editor and upload it.<\/p>\n\n\n\n<div style=\"height: 250px; position:relative; margin-bottom: 50px;\" class=\"wp-block-simple-code-block-ace\"><pre class=\"wp-block-simple-code-block-ace\" style=\"position:absolute;top:0;right:0;bottom:0;left:0\" data-mode=\"php\" data-theme=\"monokai\" data-fontsize=\"14\" data-lines=\"Infinity\" data-showlines=\"true\" data-copy=\"false\">#include &lt;SoftwareSerial.h>\n\nSoftwareSerial mySerial(10, 11); \/\/ RX (O2 Pin 3), TX (O2 Pin 4)\n\nvoid setup() {\n  Serial.begin(9600);\n  mySerial.begin(9600);\n}\n\nvoid loop() {\n if (mySerial.available())  {\n    Serial.write(mySerial.read());\n    }\n}<\/pre><\/div>\n\n\n\n<p>Open up the serial console to view the sensor output<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"583\" height=\"308\" src=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/04\/image-31.png\" alt=\"\" class=\"wp-image-3318\" srcset=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/04\/image-31.png 583w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/04\/image-31-300x158.png 300w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/04\/image-31-500x264.png 500w\" sizes=\"auto, (max-width: 583px) 100vw, 583px\" \/><figcaption>LuminOx O2 Sensor Output<\/figcaption><\/figure>\n\n\n\n<p><strong>Helpful links<\/strong><br>Datasheet: <a href=\"https:\/\/www.sstsensing.com\/product\/luminox-optical-oxygen-sensors-2\/\">https:\/\/www.sstsensing.com\/product\/luminox-optical-oxygen-sensors-2\/<\/a><br>Arduino forum: <a href=\"https:\/\/forum.arduino.cc\/index.php?topic=601622.15\">https:\/\/forum.arduino.cc\/index.php?topic=601622.15<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The LuminOx Oxygen sensor seems to be a pretty decent O2 sensor and easy to get setup and running. Pin Designation 1 Vs (+5V) 2 GND (0V) 3 3.3V UART* Sensor Transmit 4 3.3V UART* Sensor Receive &nbsp; * 5V &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/luminox-o2-sensor-on-arduino\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[717],"tags":[715,1010,992,990,985],"class_list":["post-3312","post","type-post","status-publish","format-standard","hentry","category-arduino","tag-arduino","tag-luminox","tag-o2","tag-sensor","tag-sensors"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=3312"}],"version-history":[{"count":5,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3312\/revisions"}],"predecessor-version":[{"id":3323,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3312\/revisions\/3323"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=3312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=3312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=3312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}