cancel
Showing results for 
Search instead for 
Did you mean: 

What is the ID for the LSM303AH

JBonn
Associate III
 
5 REPLIES 5
Peter BENSCH
ST Employee

If you mean the return values of WHO_AM_I, then there are two in the LSM303AH:

  • one for the accelerometer (address 0x0f, value 0x43)
  • one for the magnetometer (address 0x4f, value 0x40)

Does this answer your question?

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Thanks Peter for your response.
I am new to CubeMX and how to do I2C I/O to the LSM303AH.
Using HAL for now to keep things as simple as I can.
Am getting error 32 which is a timeout, I think.
I have included my MX setup and the IDE code that is failing.
Would you please tell me how to fix my problem.
[cid:image003.png@01D84450.425133C0]
[cid:image001.png@01D84450.B2742C20]
Do not know if you see the inserts or not.
[cid:image004.png@01D84451.79589D80]
The Master_Receive is failing
I do not know how to pull code from Get Hub.
If you could point me to a HAL example that does a read and write to the LSM303AH, I would love it.
Thanks,
Jerry
Peter,
One quick question.
Is the following below correct?
[cid:image001.png@01D844E1.6B7FAF10]

How did you insert the images, because nothing appears here except, for example, "cid:image001.png@01D844E1.6B7FAF10]"?

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
JBonn
Associate III
Thanks for your response.
Was not sure they would show. They didn’t.
Did a copy from computer screen.
Will type info in.
But will be a few days. Please wait.
Jerry Bonner