i2c - cannot see the device.

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
prem111
Posts: 127
Joined: Sun Feb 23, 2020 3:18 pm

i2c - cannot see the device.

Post by prem111 » Tue Jul 21, 2020 2:27 pm

Hi, im connect to esp32 lsm303d sensor.

Using this driver:
https://github.com/kamikaze/pyboard-exa ... /lsm303.py

in i2c scan:

Code: Select all

i2c.scan()
[29]
He only sees the accelerometer, why can't he see the magnetometer as well?

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: i2c - cannot see the device.

Post by pythoncoder » Wed Jul 22, 2020 4:22 pm

I thought I'd covered this here.

If you look at the device datasheet the accelerometer and the magnetometer share the same address. This driver doesn't seem to match the device data.
Peter Hinch
Index to my micropython libraries.

shaoziyang
Posts: 363
Joined: Sun Apr 17, 2016 1:55 pm

Re: i2c - cannot see the device.

Post by shaoziyang » Thu Jul 23, 2020 12:52 am

LSM303D is being OBSOLETE, you may use LSM303A instead.

Post Reply