scanI2CBus(a) Error

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 Exchange 中查找有关 Arduino Hardware 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by