A project integrating Arduino and MATLAB for data acquisition and analysis.
This project combines Arduino and MATLAB to facilitate data acquisition, processing, and visualization. The Arduino board is used to gather data from sensors, and MATLAB provides a user-friendly interface for configuring, acquiring, and analyzing data. This README provides an overview of the project, setup instructions, usage guidelines, and important information for contributors.
- Arduino board with appropriate sensors (e.g., voltage and current sensors).
- MATLAB software (R2019b or later).
- A computer with a COM port for Arduino communication.
ATMega328P/
: Contains Arduino code for data acquisition.Matlab/
: Contains the MATLAB application for data visualization and control.
-
Upload the ATMega328P code (
ATMega328P/
) to your board. This code should be designed to interface with your specific sensors and data acquisition needs. -
Ensure your ATMega328P is properly connected to your computer via USB.
-
Launch MATLAB on your computer.
-
Create an instance of the
AquisitionApp
class using MATLAB. Sample code can be found inMatlab/codeRunner.m
.
- Open the MATLAB application (
Matlab/
) and configure your communication settings (baud rate, data bits, and stop bits).
-
Establish a connection to the Arduino board using the "Abrir Comunicação" button.
-
Set the desired sampling parameters, such as sampling rate and the number of data points.
-
Click the "Aquisitar Dados" button to initiate data acquisition. Real-time voltage and current data will be displayed on the plots.
-
Click the "Fechar Comunicação" button to close the communication with the Arduino board when done.
This project is open source and is licensed under the MIT License.
- Author: Alailton Alves
- Email: [email protected]