I2C block for ArduinoIO simulink package

버전 1.7.0.0 (142 KB) 작성자: Zhuo Li
This is an augmenting block that enables the ArduinoIO package with the I2C bus read capability.
다운로드 수: 12.3K
업데이트 날짜: 2014/1/30

라이선스 보기

A new method i2cRead() is added to the arduino.m file. The adiosrv.ped file is modified accordingly. So, with this add-on, your Arduino Uno can speak in I2C through Simulink. The I2C read functionality can be accessed either from Matlab command window or Simulink.
1) In command window, a sample syntax is
a.i2cRead(hex2dec('5A'), hex2dec('07'))
where '5A' denotes the 7bit device address in hex format 0x5A, and '07' denotes the register address '0x07'.
2) In Simulink, you can find the Arduino I2C read block in the arduino_io_lib. When you put the Arduino I2C Read block into your block diagram, be sure to put the correct device address and register address to the parameter field. Help doc is available for instruction inside this download.

인용 양식

Zhuo Li (2024). I2C block for ArduinoIO simulink package (https://www.mathworks.com/matlabcentral/fileexchange/41602-i2c-block-for-arduinoio-simulink-package), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2012b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Simulink Supported Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

I2C_read_block_for_ArduinoIO_package/

I2C_read_block_for_ArduinoIO_package/simulink/

I2C_read_block_for_ArduinoIO_package/

I2C_read_block_for_ArduinoIO_package/simulink/

버전 게시됨 릴리스 정보
1.7.0.0

Changed the serial waiting time longer from 0.0001 to 0.0014 so as to avoid the serial read timeout.

1.1.0.0

Added a parameter field for register address to make this block more general.

1.0.0.0