Effacer les filtres
Effacer les filtres

Connection to Arduino lost after invoking scanI2CBus

1 vue (au cours des 30 derniers jours)
Daniel
Daniel le 22 Déc 2016
Commenté : Sam McDonald le 29 Déc 2016
I have an Arduino Mega 2560 connected via USB to my computer. Invoking the arduino function works fine and gets the connection token without problems. But whenever I try to use the scanI2CBus function, I lose the connection and can't reestablish it without restarting Matlab.
There are 2 SparkFun MPU 9250 IMUs wired to the Arduino via I2C, one of which is new so I wanted to scan the bus for the address. No matter if both or either one is connected, the connection is lost.
Does anyone have an idea what could cause such behaviour?
  1 commentaire
Sam McDonald
Sam McDonald le 29 Déc 2016
What are you using as input(s) to the "scanI2CBus" function?
Do you see any warning or errors messages once the "scanI2CBus" function is called?
There may be a variety of reasons for a lost connection. Many of them are listed in the documentation with troubleshooting steps. The following link may be useful to you:

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur MATLAB Support Package for Arduino Hardware dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by