Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

pkg/arduino_adafruit_lsm9ds0: add Arduino driver package for Adafruit LSM9DS0 #17465

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

gschorcht
Copy link
Contributor

@gschorcht gschorcht commented Jan 3, 2022

Contribution description

This PR provides a complex Arduino driver package for the Adafruit Accelerometer + Gyro + Magnetometer 9-DOF breakout module with the ST LSM9DS0 sensor that uses the Adafruit Unified Sensor Driver (PR #17460)

It can be either used for LSM9DS0 sensors or for testing Adafruit Unified Sensor Driver (PR #17460).

Testing procedure

Flash and test

BOARD=... make -C tests/pkg_arduino_adafruit_lsm9ds0

Test output:

main(): This is RIOT! (Version: 2023.01-devel-671-g9b75d-pkg/arduino_lsm9ds0)
Initialize LSM9DS0 ... ok
------------------------------------
Sensor:       LSM9DS0_A
Type:         Acceleration (m/s2)
Driver Ver:   1
Unique ID:    1001
Min Value:    0
Max Value:    0
Resolution:   0
------------------------------------

------------------------------------
Sensor:       LSM9DS0_M
Type:         Magnetic (uT)
Driver Ver:   1
Unique ID:    1002
Min Value:    0
Max Value:    0
Resolution:   0
------------------------------------

------------------------------------
Sensor:       LSM9DS0_G
Type:         Gyroscopic (rad/s)
Driver Ver:   1
Unique ID:    1003
Min Value:    0
Max Value:    0
Resolution:   0
------------------------------------

------------------------------------
Sensor:       LSM9DS0_T
Type:         Ambient Temp (C)
Driver Ver:   1
Unique ID:    1004
Min Value:    0
Max Value:    0
Resolution:   0
------------------------------------

Accel	X: -0.61   	Y: -0.15   	Z: 10.03   	m/s^2
Magn.	X: -25.08   	Y: 21.15   	Z: 37.94   	uT
Gyro	X: 0.04   	Y: 0.03   	Z: -0.11   	rad/s
Temp: 22.12   	°C
**********************

Accel	X: -0.61   	Y: -0.15   	Z: 10.05   	m/s^2
Magn.	X: -25.07   	Y: 21.15   	Z: 37.95   	uT
Gyro	X: 0.04   	Y: 0.03   	Z: -0.11   	rad/s
Temp: 22.12   	°C
**********************

Accel	X: -0.61   	Y: -0.15   	Z: 10.03   	m/s^2
Magn.	X: -25.12   	Y: 21.20   	Z: 37.98   	uT
Gyro	X: 0.04   	Y: 0.03   	Z: -0.11   	rad/s
Temp: 22.12   	°C
**********************

Issues/PRs references

Depends on PR #17460

@github-actions github-actions bot added Area: doc Area: Documentation Area: Kconfig Area: Kconfig integration Area: pkg Area: External package ports Area: tests Area: tests and testing framework labels Jan 3, 2022
@gschorcht gschorcht added the Type: new feature The issue requests / The PR implemements a new feature for RIOT label Jan 3, 2022
@gschorcht gschorcht force-pushed the pkg/arduino_lsm9ds0 branch from 7def5ea to e2fe2a9 Compare January 3, 2022 23:24
@fjmolinas
Copy link
Contributor

Could you provide some test output @gschorcht ?

@stale
Copy link

stale bot commented Aug 13, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions.

@stale stale bot added the State: stale State: The issue / PR has no activity for >185 days label Aug 13, 2022
@gschorcht gschorcht removed the State: stale State: The issue / PR has no activity for >185 days label Aug 13, 2022
A number of Adafruit sensor drivers use the class Adafruit_Sensor from the Adafruit Unified Sensor Driver. To support such drivers, the Adafruit Unified Sensor Driver is imported as package.
@gschorcht gschorcht added the CI: full build disable CI build filter label Dec 18, 2022
@gschorcht
Copy link
Contributor Author

Could you provide some test output

Test output added.

@gschorcht gschorcht added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: full build disable CI build filter labels Dec 18, 2022
@riot-ci
Copy link

riot-ci commented Dec 18, 2022

Murdock results

✔️ PASSED

9b75d47 tests/pkg_arduino_adafruit_lsm9ds0: test app for LSM9DS0 driver package

Success Failures Total Runtime
2008 0 2008 04m:53s

Artifacts

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Area: doc Area: Documentation Area: Kconfig Area: Kconfig integration Area: pkg Area: External package ports Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: new feature The issue requests / The PR implemements a new feature for RIOT
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants