arduino i2c communication
Afficher commentaires plus anciens
I am a beginner, and have difficulty understanding the programming language on Arduino i2c communication, and I have tried it but to no avail, I beg for your help, how to display the voltage data readings on each of the Arduino in matlab?
Thank you,

a = arduino("COM15","Uno","Libraries","I2C") %Create an arduino object with I2C library.
dev = i2cdev(arduinoObj,'0x02'); %Create a device object.
L00 = readVoltage(a,'A0'); % readvoltage at master
R00 = readVoltage(a,'A0'); % readvoltage at slave
2 commentaires
Walter Roberson
le 12 Nov 2020
That code looks plausible. What error are you getting?
slamet khoeron
le 12 Nov 2020
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Arduino Hardware dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!