Connecting Bluetooth Module and Arduino without using arduinosetup command

21 次查看(过去 30 天)
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
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.
MATLAB Hardware Team


Help CenterFile Exchange 中查找有关 Instrument Control Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by