Development of an Android application for controlling the device on Arduino

Loading...
Thumbnail Image
Date
2023-11-15
Journal Title
Journal ISSN
Volume Title
Publisher
Scientific and practical journal "Economics and technical engineering"
Abstract
The article shows the interaction between Android and Arduino, namely wireless data transfer from Arduino devices and data processing in an application for the Android system. A prototype of a mobile environmental monitoring station has been created. An Android application has been developed to receive and display information from a mobile monitoring station. Bluetooth is used as a wireless data transmission channel to the Android application. The Bluetooth module connects to the board via a serial port and transmits sensor readings to the mobile application and control signals to the Arduino board. Thus, the exchange of information between the Android application and the Arduino board occurs by writing and reading information from the serial port. The App Inventor environment was used to develop the Android application. MIT App Inventor is an intuitive visual programming environment with which you can create various applications for smartphones and tablets based on Android and iOS, is a completely cloud-based environment, allows you to connect to the FireBaseDB project. It also contains a set of tools for managing and transferring data, including ones on the Arduino board, using the Bluetooth module. The Android application is a client application that creates a control interface for the mobile monitoring station. The Adruino application is the executor of commands received from the client and ensures the collection and transmission of relevant information to the client through the interface. Therefore, a mobile monitoring station was created based on the Arduino Uno board, equipped with a DHT-11 (DHT-22) humidity and temperature sensor, a Bluetooth module HC-06 wireless data transmission module and placed on a moving platform. These components allow the mobile station to measure temperature and humidity, pair with other devices via Bluetooth and avoid obstacles, making the device more functional and useful for solving various tasks in conditions with limited human access. В статті показано взаємодію між Android та Arduino, а саме бездротову передачу даних з пристроїв Arduino та обробку даних у додатку для системи Android. Створено прототип мобільної станції екологічного моніторингу. Для отримання та відображення інформації з мобільної станції моніторингу розроблено додаток для Android. Bluetooth використовується як бездротовий канал передачі даних до програми Android. Модуль Bluetooth підключається до плати через послідовний порт і передає показання датчика в мобільний додаток і сигнали управління на плату Arduino. Таким чином, обмін інформацією між додатком Android і платою Arduino відбувається шляхом запису і зчитування інформації з послідовного порту. Для розробки програми для Android використовувалося середовище App Inventor. MIT App Inventor – це інтуїтивно зрозуміле середовище візуального програмування, за допомогою якого можна створювати різні додатки для смартфонів і планшетів на базі Android і iOS, є повністю хмарним середовищем, дозволяє підключатися до проекту FireBaseDB. Також він містить набір інструментів для управління і передачі даних, в тому числі на платі Arduino, за допомогою модуля Bluetooth. Додаток Android – це клієнтський додаток, який створює інтерфейс керування мобільною станцією моніторингу. Додаток Adruino є виконавцем команд, отриманих від клієнта, і забезпечує збір і передачу клієнту необхідної інформації через інтерфейс. Тому була створена мобільна станція моніторингу на базі плати Arduino Uno, оснащена датчиком вологості та температури DHT-11 (DHT-22), модулем бездротової передачі даних Bluetooth HC-06 і розміщена на рухомій платформі. Ці компоненти дозволяють мобільній станції вимірювати температуру і вологість, підключатися до інших пристроїв через Bluetooth і обходити перешкоди, роблячи пристрій більш функціональним і корисним для вирішення різноманітних завдань в умовах обмеженого доступу людини.
Description
Keywords
Arduino, Android, Bluetooth, data transfer, передача даних
Citation
Medvediev, D., Khotskina, V., Khodukin, M., Dashko, A., & Kravchuk, M. (2023). Development of an Android application for controlling the device on Arduino.Scientific and practical journal "Economics and technical engineering",1(2), 98–114.