ArduinoTroubleshooting

Help with BMM150 Magnetometer

userHead fil_jackowski 2022-05-26 00:22:02 501 Views3 Replies

I'm trying to establish a SPI connection from an arduino uno to this magnetometer. I followed the instructions on the product's page and I downloaded this library.

 

I loaded up the “GetAllState” sketch, but the serial monitor keeps printing “bmm150 init failed, Please try again!"

 

I have it wired in the following configuration:

VCC to 3.3V output

GND to ground

SCK to arduino pin D13

SDI to arduino pin D11

SDO to arduino pin D12

CS to arduino pin D10

PS to GND

 

Does anyone have any idea what I'm doing wrong?

 

 

2023-05-05 15:51:47

I dig up the subject … You may have found the solution but it might be useful : the Arduino provides digital level of SPI communication in 0-5v whereas BMM150 need 0-3.3v levels. 

Therefore, you need to convert your levels from 5v to 3.3v with a device like this 

https://www.sparkfun.com/products/12009

userHeadPic pcapdess
2022-05-26 00:30:29

for whatever reason the library didn't hyperlink. here it is: GitHub - DFRobot/DFRobot_BMM150

userHeadPic fil_jackowski
fil_jackowski wrote:

https://github.com/DFRobot/DFRobot_BMM150

2022-05-26 00:31:09
1 Replies