Rank: 385700 based on 0 downloads (last 30 days) and 0 file submitted
photo

Mitch Torrens

E-mail
Company/University
Queen's University

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Mitch
Updated File Comments Rating
24 Jun 2013 I2C block for ArduinoIO simulink package This is an augmenting block that enables the ArduinoIO package with the I2C bus read capability. Author: Zhuo Li

First of all, thanks for this block! Once I get it to work it'll save me a ton of time.

At risk of asking a programming question, I'm having a bit of trouble implementing the block in conjunction with a motor encoder (Vex 269: http://www.vexforum.com/wiki/index.php/Intergrated_Motor_Encoders). I believe the problem is that the terminator address of the encoder (0x4C) is different from the one that simulink is trying to access, but I am having trouble finding where this address is specified in the provided source codes. The warning I get is:

Warning: Unsuccessful read: A timeout occurred before the Terminator was reached.

I can read the encoders with the I2CEncoder library implemented through the arduino IDE, so I am certain that the hardware is set up properly. The rest of the arduinoIO package works properly as well. Any insight?

Contact us