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?
OSError: accelerometer not found
Re: OSError: accelerometer not found
My bad bought the cheep model without one.
Re: OSError: accelerometer not found
I've got the same error, although I use a Pyboard v 1.1, and it should have one :
https://store.micropython.org/product/PYBv1.1H
Any idea whats wrong? Does it needs to be switched on first or something similar?
https://store.micropython.org/product/PYBv1.1H
Any idea whats wrong? Does it needs to be switched on first or something similar?
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: OSError: accelerometer not found
On a Pyboard 1.1 you should be able to issue at the REPL
The last line should return something like (2, -7, 22). If you get an error please post it.
Code: Select all
>>> import pyb
>>> a = pyb.Accel()
>>> a.filtered_xyz()
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
-
- Posts: 1
- Joined: Wed Jan 06, 2021 6:02 pm
Re: OSError: accelerometer not found
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
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
Are you sure you have a 1.1 board? The 1.0 LITE board doesn't have an accelerometer.
What does: report for you?
What does:
Code: Select all
import os
os.uname()
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: OSError: accelerometer not found
There are also clone boards out there of dubious quality.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.