Page 1 of 1

OSError: accelerometer not found

Posted: Thu Jan 12, 2017 4:38 pm
by MJA-AJM
I write in Serial Terminal:
import pyb
pyb.Accel()
Answer is:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: accelerometer not found

Can anyone tell me what I do wrong?

Re: OSError: accelerometer not found

Posted: Thu Jan 12, 2017 5:48 pm
by dhylands
Which board are you using?

Re: OSError: accelerometer not found

Posted: Sun May 07, 2017 12:45 pm
by MJA-AJM
My bad bought the cheep model without one.

Re: OSError: accelerometer not found

Posted: Wed Sep 16, 2020 12:35 pm
by vince
I've got the same error, although I use a Pyboard v 1.1, and it should have one :o :
https://store.micropython.org/product/PYBv1.1H

Any idea whats wrong? Does it needs to be switched on first or something similar? :?:

Re: OSError: accelerometer not found

Posted: Thu Sep 17, 2020 11:00 am
by pythoncoder
On a Pyboard 1.1 you should be able to issue at the REPL

Code: Select all

>>> import pyb
>>> a = pyb.Accel()
>>> a.filtered_xyz()
The last line should return something like (2, -7, 22). If you get an error please post it.

Re: OSError: accelerometer not found

Posted: Wed Jan 06, 2021 6:08 pm
by JulioFD1972
Good afternoom,
I have the same problem. I have the pyboard v1.1
this is what I get.
>>> import pyb
>>> a=pyb.Accel()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: accelerometer not found

Re: OSError: accelerometer not found

Posted: Wed Jan 06, 2021 7:45 pm
by dhylands
Are you sure you have a 1.1 board? The 1.0 LITE board doesn't have an accelerometer.

What does:

Code: Select all

import os
os.uname()
report for you?

Re: OSError: accelerometer not found

Posted: Thu Jan 07, 2021 3:05 pm
by pythoncoder
There are also clone boards out there of dubious quality.