0

Trouble w/ LSM9DS0 and Metro M0 Express
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Trouble w/ LSM9DS0 and Metro M0 Express

by billmorgan000 on Mon Jan 15, 2018 3:51 pm

Hi:
I am trying to make a magnetometer to look for geomagnetic storms. I am using a LSM9DS0 as the sensor with Metro M0 Express. I am trying to get the code i "Adafruit LSM9DS0 Accelerometer + Gyro + Magnetometer 9-DOF Breakouts" to run. Sorry I don't have a page number but I can't get the PDF to download, so I had to use a "One Note" copy.

Here is the REPL output:

Adafruit CircuitPython 2.1.0 on 2017-10-17; Adafruit Metro M0 Express with samd21g18
>>>import board
>>>import busio
>>>import adafruit_lsm9ds0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
MemoryError:
>>>
I have the LSM9DS0 in the Lib folder, and also put it int the root of CIRCUITPY(F), to see if that was the problem. The flash drive has 1.06MB of free space. What should I try next.

Bill Morgan(KA5ONN)

billmorgan000
 
Posts: 10
Joined: Sat May 02, 2015 12:15 pm

Re: Trouble w/ LSM9DS0 and Metro M0 Express

by adafruit_support_mike on Tue Jan 16, 2018 1:30 am

[moved to the CircuitPython forum]

adafruit_support_mike
 
Posts: 50189
Joined: Thu Feb 11, 2010 2:51 pm

Re: Trouble w/ LSM9DS0 and Metro M0 Express

by tannewt2 on Tue Jan 16, 2018 2:23 am

Hi Bill,
Did you install the driver from a bundle? Whats the name of the zip file you downloaded?

The error is due to running out of RAM. Its not due to the filesystem being full.
We'll get it sorted out. :-)
~Scott

tannewt2
 
Posts: 674
Joined: Thu Oct 06, 2016 8:48 pm

Re: Trouble w/ LSM9DS0 and Metro M0 Express

by billmorgan000 on Tue Jan 16, 2018 2:06 pm

Hi Scott:

From your reply, I deleted the 2.1 UF2 circuitpython file and the lib folder. I reload the 2.2 UF2 circuitpython file and a new lib folder. Works fine. Now if I can get the data logger shield (which is coming in today) to work, I should have this project done.
Bill Morgan (KA5ONN)

billmorgan000
 
Posts: 10
Joined: Sat May 02, 2015 12:15 pm

Re: Trouble w/ LSM9DS0 and Metro M0 Express

by tannewt2 on Tue Jan 16, 2018 7:31 pm

Awesome! Keep us posted on how the project goes.

tannewt2
 
Posts: 674
Joined: Thu Oct 06, 2016 8:48 pm

Please be positive and constructive with your questions and comments.