I2C Sensor reading through Simulink using Arduino

I2C sensors can be read directly in Simulink using the Arduino support package with the block "I2C master read".
464 Downloads
Aktualisiert 20. Jan 2020

Lizenz anzeigen

This file contains a demonstration of I2C sensor reading by the Simulink-Arduino support package. An accelerometer MMA8451 is connected through the I2C communication channel and outputs the data in real-time directly to the Simulink scope representation. The 8-bits data with the 2g range has been chosen to keep in mind the trade-off between the sampling rate and resolution of the sensor. The output data is converted to give meaningful values in m/s^2

Zitieren als

Ammar N. Abbas (2025). I2C Sensor reading through Simulink using Arduino (https://www.mathworks.com/matlabcentral/fileexchange/73974-i2c-sensor-reading-through-simulink-using-arduino), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2018b
Kompatibel mit R2015a bis R2019b
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Simulink Coder finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0