필터 지우기
필터 지우기

Arduino Mega 2560 cannot read sensor using I2C block in simulink

조회 수: 3 (최근 30일)
MUHAMMAD AMMAR MASDIM
MUHAMMAD AMMAR MASDIM 2018년 4월 11일
답변: Madhu Govindarajan 2018년 4월 17일
I am using MPU6050 in my project and to read the data from it in my simulink. My Microcontroller for this project is Arduino Mega 2560. I have use the register value in the I2C block with the reference from the register value in the sensor register datasheet but the problem is the data not appear even there is no error appear. Before this I'm using Arduino Uno and able to read the value.
  댓글 수: 2
Hans Scharler
Hans Scharler 2018년 4월 12일
What is connected to the I2C?
MUHAMMAD AMMAR MASDIM
MUHAMMAD AMMAR MASDIM 2018년 4월 12일
I want to read MPU6050 data through I2C read Arduino block in simulink.

댓글을 달려면 로그인하십시오.

답변 (1개)

Madhu Govindarajan
Madhu Govindarajan 2018년 4월 17일
Based on this link here - https://playground.arduino.cc/Main/MPU-6050#short
It looks like there is some sort of wake up code that you need to write at the specified address. I would attempt doing that with I2C write blocks and see if that helps.
Madhu

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by