I2C Sensor reading through Simulink using Arduino

版本 1.0.0 (21.1 KB) 作者: Ammar N. Abbas
I2C sensors can be read directly in Simulink using the Arduino support package with the block "I2C master read".
459.0 次下载
更新时间 2020/1/20

查看许可证

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

引用格式

Ammar N. Abbas (2024). 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. 检索时间: .

MATLAB 版本兼容性
创建方式 R2018b
兼容 R2015a 到 R2019b 的版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Simulink Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0