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

Antworten (1)

Siddhartha Agarwal
Siddhartha Agarwal am 9 Nov. 2017

0 Stimmen

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?

Kategorien

Gefragt:

am 30 Okt. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by