How to develop a simulink Lego Mindstorms EV3 block for third party I2C sensors?

4 ビュー (過去 30 日間)
Benedict Bauer
Benedict Bauer 2017 年 1 月 10 日
コメント済み: Benedict Bauer 2017 年 1 月 13 日
Hello there,
I would like to use the I2C sensor "GlideWheel-AS - Angle Sensor" from mindsensors in a simulink model. Can I get some hints on how to develop a simulink block for such a I2C sensor?
I know, that there is the demo package "Physical modeling in academia: the rotary pendulum with low-cost hardware" but this package uses the GlideWheel-M Sensor. My problem is, that I have to use 4 motors and an additional rotation sensor so there is no space left for the GlideWheel-M Sensor...
Thank you very much for your help!
Best regards Benedict

回答 (1 件)

Jordan Ross
Jordan Ross 2017 年 1 月 13 日
Hello Benedict,
Currently, the I2C protocol is not supported by the LEGO Mindstorm support package. One way to interface I2C sensors could be to use an Arduino to read data from the sensors, then communicate from the Arduino to the EV3 the values. This will require quite some work but in theory it is feasible.
  1 件のコメント
Benedict Bauer
Benedict Bauer 2017 年 1 月 13 日
Hello Jordan,
Thank you very much for your answer.
Can you give me some details about the type of communication between the Arduino and the EV3 brick? Because I also have some problems to implement a TCP/IP communication to the EV3 brick which I want to use for a remote control. Or are there other ways to do something like that?
Best regards Benedict

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLEGO MINDSTORMS EV3 Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by