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...
Saved in:
Main Authors: | , |
---|---|
Format: | Article |
Language: | English |
Published: |
Wiley
2021-08-01
|
Series: | IET Circuits, Devices and Systems |
Subjects: | |
Online Access: | https://doi.org/10.1049/cds2.12038 |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
_version_ | 1832546705191469056 |
---|---|
author | Ashkan Safari Mehran Sabahi |
author_facet | Ashkan Safari Mehran Sabahi |
author_sort | Ashkan Safari |
collection | DOAJ |
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. |
format | Article |
id | doaj-art-ecd37ec7d90841c59d7dbc85270f9132 |
institution | Kabale University |
issn | 1751-858X 1751-8598 |
language | English |
publishDate | 2021-08-01 |
publisher | Wiley |
record_format | Article |
series | IET Circuits, Devices and Systems |
spelling | doaj-art-ecd37ec7d90841c59d7dbc85270f91322025-02-03T06:47:36ZengWileyIET 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.12038harmonic distortionmathematics computingmicrocontrollersperipheral interfaces |
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 harmonic distortion mathematics computing microcontrollers peripheral interfaces |
title | 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_short | 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 |
topic | harmonic distortion mathematics computing microcontrollers peripheral interfaces |
url | https://doi.org/10.1049/cds2.12038 |
work_keys_str_mv | AT ashkansafari practicaldataconnectionbetweenmatlabandmicrocontrollersusingvirtualserialportandmicropythonpyboardasurvey AT mehransabahi practicaldataconnectionbetweenmatlabandmicrocontrollersusingvirtualserialportandmicropythonpyboardasurvey |