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

There are problems with connecting the compass sensor on khadas-edge2-android12 #146

Open
denbon opened this issue Nov 24, 2024 · 0 comments

Comments

@denbon
Copy link

denbon commented Nov 24, 2024

Hello.
There are problems with connecting the compass sensor on khadas-edge2-android12. I tried to connect the following compasses via the I2C bus: ak8963, ak8975 and ak09911 - and they do not transmit any data. There are problems with these sensors in the source code. Who can find the reason?
Connected like this:
Added to the device tree:

ak09911_compass: ak09911_compass@c {
		compatible = "ak09911";
		status = "okay";
		reg = <0x0c>;
		irq_enable = <0>;
		poll_delay_ms = <30>;
		type = <SENSOR_TYPE_COMPASS>;
		layout = <0>;
	};

BoardConfig.mk

BOARD_SENSOR_ST ?= true
BOARD_SENSOR_COMPASS_AK09911 ?= true
CONFIG_COMPASS_DEVICE=y

Kernel config

CONFIG_COMPASS_DEVICE=y
CONFIG_COMPASS_AK09911=y

I am building Android, but the compass does not transmit data, help me solve this problem in the source code for khadas-edge2-android12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant