This project includes a MATLAB script and an Arduino sketch to facilitate communication between MATLAB and an Arduino board for controlling and monitoring the Igniter Test Stand of Elara Aerospace. The project demonstrates hardware control via serial communication.
├── src/
│ ├── Data visualisation Ignitor test stand 1.m # MATLAB script for visualization
│ ├── src.ino # Arduino sketch
├── bin/
│ └── arduino-cli # Arduino CLI command-line tool (if installed locally)
├── Makefile # Makefile for building and uploading Arduino sketch
├── .github/
│ └── workflows/
│ └── c-cpp.yml # GitHub Actions workflow for building and uploading
└── README.md # Project documentation
- MATLAB (Tested with R2020a or later)
- Arduino CLI for building and uploading Arduino sketches.
- Arduino Board (e.g., Arduino Uno).
- USB Cable to connect the Arduino board to your computer.
git clone https://github.com/elara-aerospace/elara-igniter_test_stand.git
cd elara-igniter_test_stand
Follow the official Arduino CLI installation guide if the command-line tool in ./bin/
folder is outdated.
Alternatively, if using this repository:
mkdir -p bin
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh -s -- --dest bin
Install the necessary platform for your Arduino board:
./bin/arduino-cli core update-index
./bin/arduino-cli core install arduino:avr
- Open
Data visualisation Ignitor test stand 1.m
in MATLAB. - Ensure the correct serial port is specified in the script.
- Run the script to visualize data sent by the Arduino.
-
Connect your Arduino board to your computer via USB.
-
Build and upload the Arduino sketch using the
Makefile
:make compile make upload
Alternatively, use Arduino IDE:
- Open
src.ino
. - Select the appropriate board and port.
- Upload the sketch.
- Open
- Start the Arduino sketch to send data over the serial port.
- Run the MATLAB script to read and visualize the data.
- Update the
PORT
variable in the Makefile to match your Arduino's serial port. - If using a GitHub Actions workflow, ensure the
Makefile
is configured correctly.
-
MATLAB Serial Port Issues:
- Ensure no other application is using the same serial port.
- Update the port name in the MATLAB script.
-
Arduino Upload Fails:
- Verify the correct board and port settings.
- Ensure
arduino-cli
is installed and in thePATH
.
Copyright (C) 2024-present Elara Aerospace. All rights reserved.