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

Respuestas (1)

Siddhartha Agarwal
Siddhartha Agarwal el 9 de Nov. de 2017

0 votos

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?

Categorías

Más información sobre Arduino Hardware en Centro de ayuda y File Exchange.

Preguntada:

el 30 de Oct. de 2017

Respondida:

el 9 de Nov. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by