Hello, I want to connect Arduino with an ADC (MCP3424) through I2C protocol and control them with Matlab. Simply, I connected the power supply, the ground, SDA and SCL pins. I wrote a simple script: a=arduino(); scanI2CBus(a)
and i get the following error: "The host and client connection is lost. Make sure the board is plugged in and recreate arduino and related objects."
What does it means? The board is plugged via USB.
Thanks in advance for any help

回答 (1 件)

Siddhartha Agarwal
Siddhartha Agarwal 2017 年 11 月 9 日

0 投票

This error often occurs when an external device connected to the Arduino, such as a motor, is drawing too much power. For instance, please refer to the following link:
https://www.mathworks.com/help/supportpkg/arduinoio/ug/connection-and-communication-issues.html#bvlv3vx-1
Could you confirm if you are using such a hardware?

カテゴリ

ヘルプ センター および File ExchangeArduino Hardware についてさらに検索

質問済み:

2017 年 10 月 30 日

回答済み:

2017 年 11 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by