Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

LSM303DLHC - no LSM303 detected
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

LSM303DLHC - no LSM303 detected

by tomhill99 on Mon Apr 19, 2021 11:15 am

I have used an I2C scanner and it can find the LSM303DLHC however when I use either of the magsensor or accelsensor code I get "Oops no LSM303 detected ... Check your wiring"

tomhill99
 
Posts: 8
Joined: Mon Apr 19, 2021 11:13 am

Re: LSM303DLHC - no LSM303 detected

by adafruit_support_carter on Mon Apr 19, 2021 12:09 pm

Can you link to the product page for the specific sensor breakout you are trying to use.

adafruit_support_carter
 
Posts: 20144
Joined: Tue Nov 29, 2016 2:45 pm

Re: LSM303DLHC - no LSM303 detected

by tomhill99 on Mon Apr 19, 2021 12:45 pm

adafruit_support_carter wrote:Can you link to the product page for the specific sensor breakout you are trying to use.


https://learn.adafruit.com/flora-sensor ... sor-lsm303

tomhill99
 
Posts: 8
Joined: Mon Apr 19, 2021 11:13 am

Re: LSM303DLHC - no LSM303 detected

by adafruit_support_carter on Mon Apr 19, 2021 12:50 pm

Thanks. That overview guide links to the more specific how-to guide here:
https://learn.adafruit.com/flora-accele ... rogramming
Are you following that for setting up the software library?

adafruit_support_carter
 
Posts: 20144
Joined: Tue Nov 29, 2016 2:45 pm

Re: LSM303DLHC - no LSM303 detected

by tomhill99 on Mon Apr 19, 2021 12:53 pm

adafruit_support_carter wrote:Thanks. That overview guide links to the more specific how-to guide here:
https://learn.adafruit.com/flora-accele ... rogramming
Are you following that for setting up the software library?


The library it links to is outdated so the software I'm using is here https://github.com/adafruit/Adafruit_LSM303DLHC
Also, I'm using an Arduino Uno rather than a FLORA board

tomhill99
 
Posts: 8
Joined: Mon Apr 19, 2021 11:13 am

Re: LSM303DLHC - no LSM303 detected

by adafruit_support_carter on Mon Apr 19, 2021 1:06 pm

It looks like that one is deprecated too. Wow, bit of a deprecation train. Yah, that original one:
https://github.com/adafruit/Adafruit_LSM303
links to this one:
https://github.com/adafruit/Adafruit_LSM303DLHC
which then links to two separate libraries to use for either accel or mag:
https://github.com/adafruit/Adafruit_LSM303_Accel
https://github.com/adafruit/Adafruit_LSM303DLH_Mag

Try those last two.

adafruit_support_carter
 
Posts: 20144
Joined: Tue Nov 29, 2016 2:45 pm

Re: LSM303DLHC - no LSM303 detected

by tomhill99 on Mon Apr 19, 2021 1:16 pm

adafruit_support_carter wrote:It looks like that one is deprecated too. Wow, bit of a deprecation train. Yah, that original one:
https://github.com/adafruit/Adafruit_LSM303
links to this one:
https://github.com/adafruit/Adafruit_LSM303DLHC
which then links to two separate libraries to use for either accel or mag:
https://github.com/adafruit/Adafruit_LSM303_Accel
https://github.com/adafruit/Adafruit_LSM303DLH_Mag

Try those last two.


I still get the same response on both of them

tomhill99
 
Posts: 8
Joined: Mon Apr 19, 2021 11:13 am

Re: LSM303DLHC - no LSM303 detected

by adafruit_support_carter on Mon Apr 19, 2021 1:20 pm

OK, let's focus on just one of them. What do you get in the Serial Monitor when you run the accel example?
https://github.com/adafruit/Adafruit_LS ... sensor.ino

adafruit_support_carter
 
Posts: 20144
Joined: Tue Nov 29, 2016 2:45 pm

Re: LSM303DLHC - no LSM303 detected

by tomhill99 on Mon Apr 19, 2021 1:25 pm

adafruit_support_carter wrote:OK, let's focus on just one of them. What do you get in the Serial Monitor when you run the accel example?
https://github.com/adafruit/Adafruit_LS ... sensor.ino


ooops, no lsm303 detected ... check your wiring!

tomhill99
 
Posts: 8
Joined: Mon Apr 19, 2021 11:13 am

Re: LSM303DLHC - no LSM303 detected

by adafruit_support_carter on Mon Apr 19, 2021 1:42 pm

OK, let's do that :)

Can you post a photo of your setup showing how everything is connected.

adafruit_support_carter
 
Posts: 20144
Joined: Tue Nov 29, 2016 2:45 pm

Re: LSM303DLHC - no LSM303 detected

by tomhill99 on Mon Apr 19, 2021 2:11 pm

Its attached
Attachments
IMG_5492-min.jpg
IMG_5492-min.jpg (854.98 KiB) Viewed 126 times

tomhill99
 
Posts: 8
Joined: Mon Apr 19, 2021 11:13 am

Re: LSM303DLHC - no LSM303 detected

by tomhill99 on Tue Apr 20, 2021 1:44 pm

adafruit_support_carter wrote:OK, let's do that :)

Can you post a photo of your setup showing how everything is connected.


GND to GND
3V to 3.3V
SCL to A5
SDA to A4

tomhill99
 
Posts: 8
Joined: Mon Apr 19, 2021 11:13 am

Re: LSM303DLHC - no LSM303 detected

by adafruit_support_carter on Tue Apr 20, 2021 2:02 pm

That looks like a 5V board. It may be a logic level issue. The FLORA sensor is 3V logic. Is that the only board you have available for use with the FLORA sensor?

adafruit_support_carter
 
Posts: 20144
Joined: Tue Nov 29, 2016 2:45 pm

Re: LSM303DLHC - no LSM303 detected

by tomhill99 on Tue Apr 20, 2021 2:37 pm

adafruit_support_carter wrote:That looks like a 5V board. It may be a logic level issue. The FLORA sensor is 3V logic. Is that the only board you have available for use with the FLORA sensor?


I've now tried it with the FLORA board and its working, thank you. But I now need to connect a NRF24L01 to the board and I'm not sure how to do this

tomhill99
 
Posts: 8
Joined: Mon Apr 19, 2021 11:13 am

Re: LSM303DLHC - no LSM303 detected

by adafruit_support_carter on Tue Apr 20, 2021 3:41 pm

If your general issue is mixed logic level, like using your 5V board with 3V (3.3V) devices, then there are various solutions. For I2C, you could use something like this:
https://www.adafruit.com/product/757

General level shifting options are here:
https://www.adafruit.com/category/864

Glad you at least got the FLORA sensor working!

adafruit_support_carter
 
Posts: 20144
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.