Practical data connection between MATLAB and microcontrollers using virtual serial port and MicroPython Pyboard: A survey
Abstract In this paper, a simple and practical method to hookup between Pyboard and computer using MicroPython and MATLAB is presented. With the presented way, MATLAB can connect to Pyboard with virtual serial port (VSP). This process is performed with a virtual port, without using MATLAB toolbox in...
Main Authors: | , |
---|---|
Format: | Article |
Language: | English |
Published: |
Wiley
2021-08-01
|
Series: | IET Circuits, Devices and Systems |
Online Access: | https://doi.org/10.1049/cds2.12038 |
id |
doaj-ecd37ec7d90841c59d7dbc85270f9132 |
---|---|
record_format |
Article |
spelling |
doaj-ecd37ec7d90841c59d7dbc85270f91322021-07-15T12:27:55ZengWileyIET Circuits, Devices and Systems1751-858X1751-85982021-08-0115548549210.1049/cds2.12038Practical data connection between MATLAB and microcontrollers using virtual serial port and MicroPython Pyboard: A surveyAshkan Safari0Mehran Sabahi1Faculty of Electrical and Computer Engineering Tabriz University Tabriz IranFaculty of Electrical and Computer Engineering Tabriz University Tabriz IranAbstract In this paper, a simple and practical method to hookup between Pyboard and computer using MicroPython and MATLAB is presented. With the presented way, MATLAB can connect to Pyboard with virtual serial port (VSP). This process is performed with a virtual port, without using MATLAB toolbox in all versions of this software and control prototyping is widely available on the hardware. This system can also be used in Simulink and widely be under the control of MATLAB to perform tasks. The system is based on (.py) file and (.m) file. One is made in MicroPython to perform analog to digital task and the second contains VSP source code to have a virtual connection with the proposed board and calculating codes to plot graphics. This way can cause the high speed of data sampling and data transfer in two different environments: Python interpretation environment and MATLAB environment. With the defined way, it is possible to make the devices that require calculation operations and the correlation of the computer and external environment with lower costs and fewer accessories. To validate the correctness of the proposed approach, an experimental prototype as a total harmonic distortion (THD) meter device has been built.https://doi.org/10.1049/cds2.12038 |
collection |
DOAJ |
language |
English |
format |
Article |
sources |
DOAJ |
author |
Ashkan Safari Mehran Sabahi |
spellingShingle |
Ashkan Safari Mehran Sabahi Practical data connection between MATLAB and microcontrollers using virtual serial port and MicroPython Pyboard: A survey IET Circuits, Devices and Systems |
author_facet |
Ashkan Safari Mehran Sabahi |
author_sort |
Ashkan Safari |
title |
Practical data connection between MATLAB and microcontrollers using virtual serial port and MicroPython Pyboard: A survey |
title_short |
Practical data connection between MATLAB and microcontrollers using virtual serial port and MicroPython Pyboard: A survey |
title_full |
Practical data connection between MATLAB and microcontrollers using virtual serial port and MicroPython Pyboard: A survey |
title_fullStr |
Practical data connection between MATLAB and microcontrollers using virtual serial port and MicroPython Pyboard: A survey |
title_full_unstemmed |
Practical data connection between MATLAB and microcontrollers using virtual serial port and MicroPython Pyboard: A survey |
title_sort |
practical data connection between matlab and microcontrollers using virtual serial port and micropython pyboard: a survey |
publisher |
Wiley |
series |
IET Circuits, Devices and Systems |
issn |
1751-858X 1751-8598 |
publishDate |
2021-08-01 |
description |
Abstract In this paper, a simple and practical method to hookup between Pyboard and computer using MicroPython and MATLAB is presented. With the presented way, MATLAB can connect to Pyboard with virtual serial port (VSP). This process is performed with a virtual port, without using MATLAB toolbox in all versions of this software and control prototyping is widely available on the hardware. This system can also be used in Simulink and widely be under the control of MATLAB to perform tasks. The system is based on (.py) file and (.m) file. One is made in MicroPython to perform analog to digital task and the second contains VSP source code to have a virtual connection with the proposed board and calculating codes to plot graphics. This way can cause the high speed of data sampling and data transfer in two different environments: Python interpretation environment and MATLAB environment. With the defined way, it is possible to make the devices that require calculation operations and the correlation of the computer and external environment with lower costs and fewer accessories. To validate the correctness of the proposed approach, an experimental prototype as a total harmonic distortion (THD) meter device has been built. |
url |
https://doi.org/10.1049/cds2.12038 |
work_keys_str_mv |
AT ashkansafari practicaldataconnectionbetweenmatlabandmicrocontrollersusingvirtualserialportandmicropythonpyboardasurvey AT mehransabahi practicaldataconnectionbetweenmatlabandmicrocontrollersusingvirtualserialportandmicropythonpyboardasurvey |
_version_ |
1721301105107795968 |