A
A
aab1372019-02-26 02:26:54
Arduino
aab137, 2019-02-26 02:26:54

How to fix problems connecting MPU-9250 to arduino?

I connect MPU-9250 to arduino. I use https://voltiq.ru/mpu-9250-and-arduino/. This is where the problem is. When I connect the sensor for the first time, everything works, a string is displayed, consisting of numbers and the characters 't'. Then, when the need for the sensor to work disappears, I pull the arduino out of the computer. I turn it on a second time - and that's it, even if you crack, nothing works. And so with two sensors. I hope I didn't break them... What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vanyamba-electronics, 2019-02-26
@vanyamba-electronics

The first thing the circuit in the example pays attention to is that you need to add pull-ups to the power supply on the SCL and SDA lines, as in the datasheet .
The second thing I would do is enable the INT line so that the Arduino receives motion events via the Wake-on-Motion protocol. Because the reset procedure is not described in the datasheet.
Thus, either it must be reset, disconnected from the power supply, or, most likely, work is meant using the Wake-on-Motion protocol.
In your case, the following is likely to happen. When you turn it on again, the sketch starts, and it works out. And when connected to the monitor, the Arduino port is reset, but the gyroscope does not know about it, and simply ignores Arduino attempts to reconnect to it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question