Rank: 1159 based on 108 downloads (last 30 days) and 1 file submitted
photo

Zhuo Li

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Zhuo
Updated   File Tags Downloads
(last 30 days)
Comments Rating
30 Jan 2014 Screenshot 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 arduino simulink pack..., i2c arduino simulink ..., arduino simulink pack... 108 18
  • 5.0
5.0 | 2 ratings
Comments and Ratings by Zhuo View all
Updated File Comments Rating
23 Jan 2014 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

Hi Ingmar, very sorry for the long waiting. I was traveling overseas last month. Last time when I was about to update it, I found the file was not in my hand. Now, I just submitted the update.

Honestly, I tested repeatedly but still didn't completely eliminate the timeout bug. But by setting a longer serial waiting time and adding more checking statements, the timeout very seldom shows up and can be tolerated for the code to proceed.

Regarding your problem, I guess maybe you can put a serial flush after your a.ITG3200Read function instead of an actual serial write. But anyways, as long as it works for you, you can keep your way. Good luck with your project.

25 Dec 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

Hi Ingmar, sorry for the inconvinience. I remember I discovered that not long after I uploaded the block, then I made some improvement but never got it updated. Now, I've updated it, you should be able to see the corrected file days later after Mathworks process it. It works better, but I sometimes still recieve the serial reading timeout error, and don't know how to eliminate it.

23 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

You're welcome Addie. I would say yes, it can be edited for Mega, but I imagine that to be a cumbersome job which includes augmenting the adiosrv.pde file, arduino.m file and the block files from Atmega328 to Atmega1280. I think it will be a better idea that you advise the developing team "MathWorks Classroom Resources Team" to release a separate package for Mega.

23 Jun 2013 Mittag-Leffler function Calculates the Mittag-Leffler function with desired accuracy. Author: Igor Podlubny

17 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

Hi Addie, for now, this block cannot work with Arduino Target package because it is of different mechanism. The Target package supports realtime target while the ArduinoIO is not "real" real time, it's a host-target structure. Sorry for the inconvenience.

Comments and Ratings on Zhuo's Files View all
Updated File Comment by Comments Rating
21 Sep 2014 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 G, A

I am using MLX-90614 ir temperature sensor and this package is compatible with the version of matlab that i am using .
But i want to know what does this command
a.i2cRead(hex2dec('5A'), hex2dec('07'))

really do.

When i run this command it return values like 15000,14990 and just like these values. What does these values mean? I want teperature value in celcius. What should i do? can any one help?

15 Sep 2014 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 J.A.E.

Some more information: I use Matlab R2014a. The Arduino IO package is not compatible with this version of Matlab.

Is this I2C block compatible with Matlab R2014a?

15 Sep 2014 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 J.A.E.

Hi,

Looks nice,

but is it easy to make it compatible with the Arduino DUE or the Arduino DUE matlab package (http://www.mathworks.nl/hardware-support/arduino-simulink.html)?

I'm mostly interest in the simulink block. I tried it on my computer, but the ArduinoIO package doesn't work with Arduino DUE (or doesn't work if the Arduino DUE matlab package also is installed on the computer).

I hope you can help me.

31 May 2014 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 irawan, addie

Hi,
Good sharing Ingmar

06 May 2014 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 Ingmar

Hi naxokite, It seems like you have the same problem as me. My solution was to change the arduino.m file provided by Zhuo Li.

Open the arduino.m file and scroll down to the part that reads out the I2C master. It is right around line 1539. You will find a line that says fwrite... at line 1581. This line sends the address to the arduino. It seems like you have to execute this line two times. Do not ask me why. If you copy that line and past it right behind it on line 1582 it should work.

Good luck with the project!

Contact us