Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[driver] Implement QMC5883L driver #1063

Merged
merged 1 commit into from
Sep 11, 2023
Merged

Conversation

mbait
Copy link
Contributor

@mbait mbait commented Aug 29, 2023

QMC5883L is a cheap Chinese implementation of HMC5883L which sought its popularity in DIY Arduino-based projects. Despite the very similar name QMC5883L share almost no common bits with HMC5883L - the register map and the logic vary a lot, so it would be not feasible to re-use the existing driver. The datasheet can be found at https://datasheet.lcsc.com/szlcsc/QST-QMC5883L-TR_C192585.pdf

Even though the chip can barely be considered for use in a serious project (in my humble opinion), people seeking to leave Arduino foundation for something more serious might benefit from this driver. Like I was looking for a way to squize maximal throughput out of that chip for which a non-blocking i2c implementation must be present.

src/modm/driver/inertial/qmc5883l.lb Outdated Show resolved Hide resolved
src/modm/driver/inertial/qmc5883l.hh Outdated Show resolved Hide resolved
examples/avr/qmc5883l/main.cc Outdated Show resolved Hide resolved
src/modm/driver/inertial/qmc5883l.hh Outdated Show resolved Hide resolved
src/modm/driver/inertial/qmc5883l.hh Outdated Show resolved Hide resolved
src/modm/driver/inertial/qmc5883l.hh Outdated Show resolved Hide resolved
@mbait mbait force-pushed the develop branch 2 times, most recently from bbfbd9d to c6babef Compare September 4, 2023 00:45
@mbait
Copy link
Contributor Author

mbait commented Sep 4, 2023

Addressed all the issues.

Copy link
Member

@salkinium salkinium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change the file endings for consistency and since I'm not entirely sure if all our tooling works correctly with .cc/.hh file endings.

examples/avr/qmc5883l/main.cc Outdated Show resolved Hide resolved
src/modm/driver/inertial/qmc5883l.hh Outdated Show resolved Hide resolved
Copy link
Member

@salkinium salkinium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much!

@salkinium
Copy link
Member

Could you synchronize the documentation in the README and rebase on the latest develop branch?

@salkinium salkinium merged commit 7f30961 into modm-io:develop Sep 11, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants