I2C Sensor reading through Simulink using Arduino
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
Cite As
Ammar N. Abbas (2026). I2C Sensor reading through Simulink using Arduino (https://au.mathworks.com/matlabcentral/fileexchange/73974-i2c-sensor-reading-through-simulink-using-arduino), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
