{"id":79118,"date":"2026-03-03T13:47:04","date_gmt":"2026-03-03T11:47:04","guid":{"rendered":"https:\/\/portal.stem.edu.gr\/?post_type=courses&#038;p=79118"},"modified":"2026-03-03T13:47:05","modified_gmt":"2026-03-03T11:47:05","slug":"excel-en","status":"publish","type":"courses","link":"https:\/\/portal.stem.edu.gr\/en\/courses\/excel-en\/","title":{"rendered":"Application for recording sensor values \u200b\u200bfrom Serial to a chart and .xlsx or .csv or ThinkSpeak"},"content":{"rendered":"<p>Many times we need to export to a .xlsx or .csv file or to the online think Speak, the measurements from the sensors that we have integrated into our applications.<\/p>\n<p>This application, before being recorded in a .xlsx or .csv file, displays on the screen (in real time) up to 8 measurements simultaneously (which are sent to the PC&#8217;s serial port separated by &#8220;,&#8221; or &#8220;:&#8221;) and automatically creates a diagrammatic representation. The .xlsx or .csv file that is created after the recording is finished opens in EXCEL-like applications for further processing. Optionally, these values \u200b\u200bare sent simultaneously and automatically to the online Think Speak&#8230;<\/p>\n<p>In the attachments ([Resources] option) there are versions of the application for each Operating System.<\/p>\n<p>__________<\/p>\n<p>Steps for running the application:<\/p>\n<p>A. After registering on this material, a [Resources] option appears from where we &#8220;download&#8221; the version of the application depending on the Operating System we have.<\/p>\n<p>B. We unzip the .zip file (it may not be necessary. It is usually decompressed automatically during the &#8220;download&#8221;)<\/p>\n<p>C. In Mind+, we use the appropriate command to write data from the sensors to the serial port. The sending to the serial port must have the format: measurement1, measurement2, measurement3, &#8230; measurement8. The following STEM Extensions commands do this automatically&#8230;<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-medium wp-image-75223\" src=\"https:\/\/portal.stem.edu.gr\/wp-content\/uploads\/2025\/12\/\u03a3\u03c4\u03b9\u03b3\u03bc\u03b9\u03cc\u03c4\u03c5\u03c0\u03bf-2025-12-27-07.10.23-1024x441.png\" alt=\"\" width=\"1024\" height=\"441\" srcset=\"https:\/\/portal.stem.edu.gr\/wp-content\/uploads\/2025\/12\/\u03a3\u03c4\u03b9\u03b3\u03bc\u03b9\u03cc\u03c4\u03c5\u03c0\u03bf-2025-12-27-07.10.23-1024x441.png 1024w, https:\/\/portal.stem.edu.gr\/wp-content\/uploads\/2025\/12\/\u03a3\u03c4\u03b9\u03b3\u03bc\u03b9\u03cc\u03c4\u03c5\u03c0\u03bf-2025-12-27-07.10.23-150x65.png 150w, https:\/\/portal.stem.edu.gr\/wp-content\/uploads\/2025\/12\/\u03a3\u03c4\u03b9\u03b3\u03bc\u03b9\u03cc\u03c4\u03c5\u03c0\u03bf-2025-12-27-07.10.23-768x331.png 768w, https:\/\/portal.stem.edu.gr\/wp-content\/uploads\/2025\/12\/\u03a3\u03c4\u03b9\u03b3\u03bc\u03b9\u03cc\u03c4\u03c5\u03c0\u03bf-2025-12-27-07.10.23-116x50.png 116w, https:\/\/portal.stem.edu.gr\/wp-content\/uploads\/2025\/12\/\u03a3\u03c4\u03b9\u03b3\u03bc\u03b9\u03cc\u03c4\u03c5\u03c0\u03bf-2025-12-27-07.10.23.png 1174w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p><span style=\"color: #ff6600\"><em>Example from micro:bit, Esp32-E and Arduino Uno, to Mind+ with the STEM Extension, where we pass two (2) or one (1) measurements, out of the eight (8) that we have at our disposal&#8230;<\/em><\/span><\/p>\n<p>\u00a0<\/p>\n<p>D. We run our program in Mind+ or in any other programming environment (which reads sensor values \u200b\u200band sends them to the serial port in the format: measurement1, measurement2, measurement3, &#8230; measurement8. )<\/p>\n<p>E. We start the recording application (by double-clicking on it). We can start it just before the program that reads the sensor values \u200b\u200b(which we download to the microprocessors) starts running, and running at the same time:<\/p>\n<p>Displays the values \u200b\u200bon the screen in real time.<br \/>Displays a plot of the values.<br \/>Optionally, it can also send the values \u200b\u200b(up to 8) to ThinkSpeak<br \/>At the end, it creates a .xlsx or .csv file, with as many columns as the measurements and as many lines as the values \u200b\u200breceived from the serial recording.<br \/>F. We stop the recording application and the .xlsx or .csv file is automatically created. which we can then open with the EXCEL like program, for further processing.<\/p>\n<p>\u00a0<\/p>\n<p>With several new functions.<\/p>\n<p>For this projection to work (linear) one to eight values \u200b\u200bare needed.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-medium wp-image-79256\" src=\"https:\/\/portal.stem.edu.gr\/wp-content\/uploads\/2026\/01\/\u03a3\u03c4\u03b9\u03b3\u03bc\u03b9\u03cc\u03c4\u03c5\u03c0\u03bf-2026-01-23-15.05.28-1024x727.png\" alt=\"\" width=\"1024\" height=\"727\" srcset=\"https:\/\/portal.stem.edu.gr\/wp-content\/uploads\/2026\/01\/\u03a3\u03c4\u03b9\u03b3\u03bc\u03b9\u03cc\u03c4\u03c5\u03c0\u03bf-2026-01-23-15.05.28-1024x727.png 1024w, https:\/\/portal.stem.edu.gr\/wp-content\/uploads\/2026\/01\/\u03a3\u03c4\u03b9\u03b3\u03bc\u03b9\u03cc\u03c4\u03c5\u03c0\u03bf-2026-01-23-15.05.28-150x107.png 150w, https:\/\/portal.stem.edu.gr\/wp-content\/uploads\/2026\/01\/\u03a3\u03c4\u03b9\u03b3\u03bc\u03b9\u03cc\u03c4\u03c5\u03c0\u03bf-2026-01-23-15.05.28-768x545.png 768w, https:\/\/portal.stem.edu.gr\/wp-content\/uploads\/2026\/01\/\u03a3\u03c4\u03b9\u03b3\u03bc\u03b9\u03cc\u03c4\u03c5\u03c0\u03bf-2026-01-23-15.05.28-1536x1091.png 1536w, https:\/\/portal.stem.edu.gr\/wp-content\/uploads\/2026\/01\/\u03a3\u03c4\u03b9\u03b3\u03bc\u03b9\u03cc\u03c4\u03c5\u03c0\u03bf-2026-01-23-15.05.28-2048x1454.png 2048w, https:\/\/portal.stem.edu.gr\/wp-content\/uploads\/2026\/01\/\u03a3\u03c4\u03b9\u03b3\u03bc\u03b9\u03cc\u03c4\u03c5\u03c0\u03bf-2026-01-23-15.05.28-70x50.png 70w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>For this view (Radar) to work, two values \u200b\u200bare needed: distance (from sonar sensor) and direction from compass (built-in sensor in micro:bit)<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-medium wp-image-79258\" src=\"https:\/\/portal.stem.edu.gr\/wp-content\/uploads\/2026\/01\/\u03a3\u03c4\u03b9\u03b3\u03bc\u03b9\u03cc\u03c4\u03c5\u03c0\u03bf-2026-01-23-15.06.42-1024x721.png\" alt=\"\" width=\"1024\" height=\"721\" srcset=\"https:\/\/portal.stem.edu.gr\/wp-content\/uploads\/2026\/01\/\u03a3\u03c4\u03b9\u03b3\u03bc\u03b9\u03cc\u03c4\u03c5\u03c0\u03bf-2026-01-23-15.06.42-1024x721.png 1024w, https:\/\/portal.stem.edu.gr\/wp-content\/uploads\/2026\/01\/\u03a3\u03c4\u03b9\u03b3\u03bc\u03b9\u03cc\u03c4\u03c5\u03c0\u03bf-2026-01-23-15.06.42-150x106.png 150w, https:\/\/portal.stem.edu.gr\/wp-content\/uploads\/2026\/01\/\u03a3\u03c4\u03b9\u03b3\u03bc\u03b9\u03cc\u03c4\u03c5\u03c0\u03bf-2026-01-23-15.06.42-768x541.png 768w, https:\/\/portal.stem.edu.gr\/wp-content\/uploads\/2026\/01\/\u03a3\u03c4\u03b9\u03b3\u03bc\u03b9\u03cc\u03c4\u03c5\u03c0\u03bf-2026-01-23-15.06.42-1536x1081.png 1536w, https:\/\/portal.stem.edu.gr\/wp-content\/uploads\/2026\/01\/\u03a3\u03c4\u03b9\u03b3\u03bc\u03b9\u03cc\u03c4\u03c5\u03c0\u03bf-2026-01-23-15.06.42-2048x1442.png 2048w, https:\/\/portal.stem.edu.gr\/wp-content\/uploads\/2026\/01\/\u03a3\u03c4\u03b9\u03b3\u03bc\u03b9\u03cc\u03c4\u03c5\u03c0\u03bf-2026-01-23-15.06.42-71x50.png 71w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Consult the instructions in the application itself&#8230;<\/p>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many times we need to export to a .xlsx or .csv file or to the online think Speak, the measurements<\/p>\n","protected":false},"author":4,"featured_media":79236,"template":"","course-category":[134,306,297,314,182,324,325,326,327,328,329,322,323,253,293],"course-tag":[],"class_list":["post-79118","courses","type-courses","status-publish","has-post-thumbnail","hentry","course-category-english","course-category-stemathlon---heoc","course-category-stemathlon---msoc","course-category-stemathlon---rc","course-category-tips","course-category-y10-11","course-category-y11-12","course-category-y12-13","course-category-y13-14","course-category-y14-15","course-category-y15","course-category-y8-9","course-category-y9-10","course-category-ey-","course-category-293"],"_links":{"self":[{"href":"https:\/\/portal.stem.edu.gr\/en\/wp-json\/wp\/v2\/courses\/79118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/portal.stem.edu.gr\/en\/wp-json\/wp\/v2\/courses"}],"about":[{"href":"https:\/\/portal.stem.edu.gr\/en\/wp-json\/wp\/v2\/types\/courses"}],"author":[{"embeddable":true,"href":"https:\/\/portal.stem.edu.gr\/en\/wp-json\/wp\/v2\/users\/4"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/portal.stem.edu.gr\/en\/wp-json\/wp\/v2\/media\/79236"}],"wp:attachment":[{"href":"https:\/\/portal.stem.edu.gr\/en\/wp-json\/wp\/v2\/media?parent=79118"}],"wp:term":[{"taxonomy":"course-category","embeddable":true,"href":"https:\/\/portal.stem.edu.gr\/en\/wp-json\/wp\/v2\/course-category?post=79118"},{"taxonomy":"course-tag","embeddable":true,"href":"https:\/\/portal.stem.edu.gr\/en\/wp-json\/wp\/v2\/course-tag?post=79118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}