Connecting Bluetooth Module and Arduino without using arduinosetup command

3 ビュー (過去 30 日間)
Hossameldin Gaballa
Hossameldin Gaballa 2024 年 6 月 7 日
I'm connecting IMU9250 sensor and Bluetooth module HC-05 to my arduino and I want to get the data of the IMU using the Bluetooth module instead of using the Arduino cable.
I'm trying to use arduinosetup command but it fails at last step while testing the connection between Arduino and Bluetooth module.
I've tested the connection of the Bluetooth module only usning blutooth() function and it connects fine!
My question is: Is there a way to establish the connection between MATLAB and the HC-05 Bluetooth module connected to my Arduino Uno without using arduinosetup. Just by using objects and functions step by step manually.

回答 (1 件)

MathWorks MATLAB Hardware Team
MathWorks MATLAB Hardware Team 2024 年 6 月 11 日
Hi,
We suggest using arduinosetup function to configure the arduino board and then use functions from MATLAB Support Package for Arduino Hardware to read the IMU9250 sensor data. Here are the steps that could help you,
  • Disconnect the HC05 module from the Arduino and connect the Arduino to your computer using a USB cable.
  • Execute the arduinosetup command, following the instructions for setting up Bluetooth connections.
  • Once the setup is complete, reconnect the HC05 module and use the functions from the Arduino support package to read sensor data.
Also feel free to contact MathWorks Technical Support to get help on resolving this issue.
Thanks,
MATLAB Hardware Team
MathWorks

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by