Filter löschen
Filter löschen

Arduino Mega 2560 cannot read sensor using I2C block in simulink

3 Ansichten (letzte 30 Tage)
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 Kommentare
MUHAMMAD AMMAR MASDIM
MUHAMMAD AMMAR MASDIM am 12 Apr. 2018
I want to read MPU6050 data through I2C read Arduino block in simulink.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Madhu Govindarajan
Madhu Govindarajan am 17 Apr. 2018
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

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by