BMI160-Arduino icon indicating copy to clipboard operation
BMI160-Arduino copied to clipboard

do you know how to connect BMI160 by 3-wire mode?

Open kocmocgim opened this issue 7 years ago • 5 comments

I don't understand how connect hardware wire and which registr have to read. (i read the datasheet). Thank you.

kocmocgim avatar Jun 29 '17 16:06 kocmocgim

I don't try the 3-wire mode. But the datasheet says that:

3.2Primary Interface Table 25: Mapping of the primary interface pins Pin #1 SDO is DNC (float) in SPI 3-wire mode.

3.2.2Primary SPI Interface Two configurations of the SPI interfaceare supported by the BMI160: 4-wire and 3-wire. The same protocol is used by both configurations. The device operates in 4-wire configuration by default. It can be switched to 3-wire configuration by writing ́1 ́ to Register (0x6B) IF_CONFspi3. Pin SDI is used as the common data pin in 3-wire configuration.

I'm afraid that this library does not support the 3-wire mode. So you must modify the library source code. Why don't you use the 4-wire mode instead?

hanyazou avatar Jul 02 '17 01:07 hanyazou

Why don't you use the 4-wire mode instead?

I develop a motion capture glove based on 18 BMI160 (furher i would neded for 45 BMI160). So wire reducing will be better for me :) But a haven't a lot of time to library modify right now :(

kocmocgim avatar Jul 02 '17 09:07 kocmocgim

Hello, I understand that you are trying to use a lot of BMI160 in a row but, if i understood the SPI protocol correctly, the way to collect datas from one of the 18 BMI160 is with specifying it SS pin. SO between 3-wire and 4-wire mode for 18 BMI160 it will change only one wire. Because the MISO/MOSI and SCK pin will be common for all sensors. So you can use the 4-wire mode of this lib without problems.

uzhul38 avatar Jul 13 '17 07:07 uzhul38

I use 4-wire mode. And it works perfect. But I want to reduce wire lenth. It will improve electroscheme. Different in 1 wire is a high for this case, but not a critical.

kocmocgim avatar Jul 13 '17 09:07 kocmocgim

Hello,

how can I set the sda, scl Pin configuration to use the BMI160 test example on a teensy 3.6?

Siggi1988 avatar May 13 '20 12:05 Siggi1988