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
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!