<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3.dtd">
<article article-type="research-article" dtd-version="1.3" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="ru"><front><journal-meta><journal-id journal-id-type="publisher-id">sapi</journal-id><journal-title-group><journal-title xml:lang="ru">Системный анализ и прикладная информатика</journal-title><trans-title-group xml:lang="en"><trans-title>«System analysis and applied information science»</trans-title></trans-title-group></journal-title-group><issn pub-type="ppub">2309-4923</issn><issn pub-type="epub">2414-0481</issn><publisher><publisher-name>Belarusian National Technical University</publisher-name></publisher></journal-meta><article-meta><article-id custom-type="elpub" pub-id-type="custom">sapi-133</article-id><article-categories><subj-group subj-group-type="heading"><subject>Research Article</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="ru"><subject>Обработка информации и принятие решений</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="en"><subject>Data processing and decision–making</subject></subj-group></article-categories><title-group><article-title>СЧИТЫВАНИЕ, ПЕРВИЧНАЯ ОБРАБОТКА УСКОРЕНИЙ И УГЛОВ НАКЛОНА С MPU-6050 И ЗАПИСЬ ИХ НА SD КАРТУ ARDUINO DUE</article-title><trans-title-group xml:lang="en"><trans-title>READING, PREPROCESSING OF ACCELERATIONS AND CORNERS INCLINATION WITH MPU-6050 I RECORD THEM ON SD-CARD THE ARDUINO DUE</trans-title></trans-title-group></title-group><contrib-group><contrib contrib-type="author" corresp="yes"><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Михайлов</surname><given-names>В. Г.</given-names></name><name name-style="western" xml:lang="en"><surname>Mikhailov</surname><given-names>V. G.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Владимир Георгиевич Михайлов, кандидат технических наук, ведущий инженер. </p><p>220005, Минск, ул. Пугачевская 24–8</p></bio><bio xml:lang="en"/><xref ref-type="aff" rid="aff-1"/></contrib></contrib-group><aff-alternatives id="aff-1"><aff xml:lang="ru"><institution>Мидивисана ООО</institution><country>Беларусь</country></aff><aff xml:lang="en"><institution>Midivisana OSC</institution><country>Belarus</country></aff></aff-alternatives><pub-date pub-type="collection"><year>2016</year></pub-date><pub-date pub-type="epub"><day>12</day><month>01</month><year>2017</year></pub-date><volume>0</volume><issue>4</issue><fpage>53</fpage><lpage>60</lpage><permissions><copyright-statement>Copyright &amp;#x00A9; Михайлов В.Г., 2017</copyright-statement><copyright-year>2017</copyright-year><copyright-holder xml:lang="ru">Михайлов В.Г.</copyright-holder><copyright-holder xml:lang="en">Mikhailov V.G.</copyright-holder><license xml:lang="ru" license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>Данная работа распространяется под лицензией Creative Commons Attribution 4.0.</license-p></license><license xml:lang="en" license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>This work is licensed under a Creative Commons Attribution 4.0 License.</license-p></license></permissions><self-uri xlink:href="https://sapi.bntu.by/jour/article/view/133">https://sapi.bntu.by/jour/article/view/133</self-uri><abstract><p>Дан краткий обзор микроконтроллеров семейства Arduino, их характеристик и областей применения. Отмечена важность записи параметров исследуемого объекта для отладки систем управления на микроконтроллерах Arduino. Единственной возможностью регистрации параметров в семействе Arduino является запись на SD-карту в текстовом режиме с использованием функций print(), write(). Рассмотрены проблемы, связанные с записью бинарных данных на SD-карту на микроконтроллере Arduino Due. Проведен анализ способов записи бинарных данных на SD-карту Arduino Due, возникающих проблем с неочисткой памяти от предыдущей программы, приводящей к возможности дублирования данных на SD-карте, наличие ошибочной точки зрения об ограничении объемов записи данных и необходимости использования устаревших SD-карт. Рассмотрены пути устранения отмеченных недостатков. Проведена оценка быстродействия различных подходов записи информации на SD-карту. На основании проведенных исследований предложен подход уплотнения записываемой информации за счет преобразования бинарных данных побайтно в символьный массив в коде ASCI без увеличения их объема и записи блоками по 240 байт. Это позволяет максимально использовать возможности стандартной функции write() Arduino и специфику организации памяти SD-карт и увеличить быстродействие более чем в 1100 раз по сравнению с записью в символьном виде по одному байту.</p><p>Отмечено, что использование предлагаемых на форумах решений исключения дублирования данных из-за неочистки памяти не обеспечивает полноты их устранения. Для Arduino Due для очистки памяти необходимо использования специального программатора или установка новой программы загрузки.</p></abstract><trans-abstract xml:lang="en"><p>The short review of microcontrollers of family Arduino, their characteristics and application fields is given. Importance of record of parameters of researched object is marked to produce debugging of control systems on microcontrollers Arduino. Unique possibility of registration of parameters in family Arduino is record on SD a card in an alpha mode with usage of functions print (), write (). The problems connected to record of the binary data on SD a card on microcontroller Arduino Due are considered. The analysis of methods of record of the binary data on SD-card Arduino Due, originating problems with neocleaning of memory from the previous program leading to possibility of duplication of the data on SD to a card, presence of the erratic point of view about restriction of volumes of data record and necessity of usage become outdated SD-cards is carried out. Ways of elimination of the marked lacks are considered. The estimation of high-speed performance of various approaches of a data recording on SD a card is led. On the basis of the led researches the approach of multiplexing of the writeable information at the expense of conversion of the binary data is offered is byte-serial in a character array in code ASCI without magnification of their volume and record by units on 240 byte. It allows to use as much as possible standard function possibilities write () Arduino and specificity of the organization of memory SD of cards and to increase high-speed performance more than in 1100 times in comparison with record in a character type on one byte.</p><p>It is marked that usage of decisions of an exception of duplication of the data offered at forums does not provide completeness of their elimination. For Arduino Due for storage cleaning it is necessary usages of the special programmator or setting of the new program of loading.</p></trans-abstract><kwd-group xml:lang="ru"><kwd>микроконтроллер Arduino Due</kwd><kwd>SD карта</kwd><kwd>запись бинарных данных</kwd><kwd>программа</kwd></kwd-group><kwd-group xml:lang="en"><kwd>microcontroller Arduino Due</kwd><kwd>SD-Card</kwd><kwd>record of the binary data</kwd><kwd>the program</kwd></kwd-group></article-meta></front><back><ref-list><title>References</title><ref id="cit1"><label>1</label><citation-alternatives><mixed-citation xml:lang="ru">32-разрядные платы Arduino [Электронный ресурс]. – 2016. – Режим доступа: http://mcucpu.ru/index.php/ platformy-8-bit/arduino/95-arduino32bit. – Дата доступа: 12.05.2016.</mixed-citation><mixed-citation xml:lang="en">32-bit boards Arduino [the Electronic resource]. – 2016. – the Mode доступа: &lt;http://mcucpu.ru/index.php/platformy8-bit/arduino/95-arduino32bit&gt; – Access Date: 5/12/2016.</mixed-citation></citation-alternatives></ref><ref id="cit2"><label>2</label><citation-alternatives><mixed-citation xml:lang="ru">ArduinoDue Общие сведения [Электронный ресурс]. – 2016. – Режим доступа: http://arduino.ua/ru/hardware/ Due. – Дата доступа: 17.05.2016.</mixed-citation><mixed-citation xml:lang="en">Arduino Due the general convergence [the Electronic resource]. – 2016. – the Mode доступа: http://arduino.ua/ru/ hardware/Due. – Access Date: 5/17/2016.</mixed-citation></citation-alternatives></ref><ref id="cit3"><label>3</label><citation-alternatives><mixed-citation xml:lang="ru">Материалы форума «Вопросы по гироскопу MPU 6050» [Электронный ресурс]. – 2010. – Режим доступа: http://forum.amperka.ru/threads/%D0%92%D0%BE%D0%BF%D1%80%D0%BE%D1%81%D1%8B-%D0%BF%D0%BE-%D0%B3%D0%B8%D1%80%D0%BE%D1%81%D0%BA%D0%BE%D0%BF%D1%83-mpu-6050.1467/. – Дата доступа: 22.05.2015.</mixed-citation><mixed-citation xml:lang="en">Materials of a forum Questions on gyroscope MPU 6050 [the Electronic resource]. – 2010. – the Access mode: http:// forum.amperka.ru/threads/%D0%92%D0%BE%D0%BF%D1%80%D0%BE%D1%81%D1%8B-%D0%BF%D0%BE-%D0%B3%D0%B8%D1%80%D0%BE%D1%81%D0%BA%D0%BE%D0%BF%D1%83-mpu-6050.1467/. – Access Date: 5/22/2015.</mixed-citation></citation-alternatives></ref><ref id="cit4"><label>4</label><citation-alternatives><mixed-citation xml:lang="ru">Модуль SD карты и Arduino [Электронный ресурс]. – 2016. – Режим доступа: http://arduino-diy.com/arduinoSD-karta. – Дата доступа: 19.05.2016.</mixed-citation><mixed-citation xml:lang="en">SD unit of a card and Arduino [the Electronic resource]. – 2016. – the Mode доступа: http://arduino-diy.com/arduino-SD-karta. – Access Date: 5/19/2016.</mixed-citation></citation-alternatives></ref><ref id="cit5"><label>5</label><citation-alternatives><mixed-citation xml:lang="ru">Материалы форума. Запись данных с датчика DHT11 на SD карту? [Электронный ресурс]. – 2016. – Режим доступа: http://arduino.ru/forum/programmirovanie/zapis-dannykh-s-datchika-dht11-na-sd-kartu. – Дата доступа: 25.10.2016.</mixed-citation><mixed-citation xml:lang="en">Materials of a forum Data record from sensor DHT11 on SD a card? [An electronic resource]. – 2016. – the Mode доступа: http://arduino.ru/forum/programmirovanie/zapis-dannykh-s-datchika-dht11-na-sd-kartu. – Access Date: 10/25/2016.</mixed-citation></citation-alternatives></ref><ref id="cit6"><label>6</label><citation-alternatives><mixed-citation xml:lang="ru">Подключение и использование SD карты c Arduino [Электронный ресурс]. – 2016. – Режим доступа: https:// uscr.ru/podklyuchenie-i-ispolzovanie-sd-karty-c-arduino/. – Дата доступа: 24.05.2016.</mixed-citation><mixed-citation xml:lang="en">Connection and usage SD of a card with Arduino [the Electronic resource]. – 2016. – the Access mode: https://uscr.ru/ podklyuchenie-i-ispolzovanie-sd-karty-c-arduino/. – access Date: 5/24/2016.</mixed-citation></citation-alternatives></ref><ref id="cit7"><label>7</label><citation-alternatives><mixed-citation xml:lang="ru">Запись/чтение на SD-карту с Arduino [Электронный ресурс]. – 2016. – Режим доступа: http://cxem.net/arduino/ arduino2.php. – Дата доступа: 24.05.2016.</mixed-citation><mixed-citation xml:lang="en">Record/reading on a SD-card with Arduino [the Electronic resource]. – 2016. – the Access mode: http://cxem.net/arduino/arduino2.php. – Access Date: 5/24/2016.</mixed-citation></citation-alternatives></ref><ref id="cit8"><label>8</label><citation-alternatives><mixed-citation xml:lang="ru">Подключение SD-карт к Arduino [Электронный ресурс]. – 2016. – Режим доступа: http://www.poprobot.ru/ home/podkluceniesdkartkarduino. – Дата доступа: 24.05.2016</mixed-citation><mixed-citation xml:lang="en">Connection SD of cards to Arduino [the Electronic resource]. – 2016. – the Access mode: &lt;http://www.poprobot.ru/ home/podkluceniesdkartkarduino&gt;. – Access Date: 5/24/2016</mixed-citation></citation-alternatives></ref><ref id="cit9"><label>9</label><citation-alternatives><mixed-citation xml:lang="ru">Проблема загрузки в плату. Помощь по загрузке: [Электронный ресурс]. – 2016. – Режим доступа: http://www. arduino.cc/en/Guide/Troubleshooting#upload. – Дата доступа: 20.05.2016.</mixed-citation><mixed-citation xml:lang="en">A loading problem in a board of Arduino. The help on loading: [the Electronic resource]. – 2016. – the Access mode: http://www.arduino.cc/en/Guide/Troubleshooting#upload. – Access Date: 5/20/2016.</mixed-citation></citation-alternatives></ref><ref id="cit10"><label>10</label><citation-alternatives><mixed-citation xml:lang="ru">Arduino: Работаем с SD-картами [Электронный ресурс]. – 2016. – Режим доступа: http://zhitenev.ru/arduinorabotaem-s-sd-kartami/. – Дата доступа: 20.05.2016.</mixed-citation><mixed-citation xml:lang="en">Arduino: Working with SD-Card: [the Electronic resource]. – 2016. – the Access mode: http://zhitenev.ru/arduino-rabotaem-s-sd-kartami/. – Access Date: 5/20/2016.</mixed-citation></citation-alternatives></ref></ref-list><fn-group><fn fn-type="conflict"><p>The authors declare that there are no conflicts of interest present.</p></fn></fn-group></back></article>
