Skip to content

KX023 Accelerometer Unresponsive After I2C Configuration #2659

@saeidsobhani

Description

@saeidsobhani

I don't receive any accelerometer sensor data on my Bangle JS 1 watch.

I was working on a project and used this code to increase the accelerometer data output:

var i2c = new I2C();
i2c.setup({scl:14, sda:15});
i2c.writeTo(0x1E, [0x18, 0b00101100]); // Enter standby mode
i2c.writeTo(0x1E, [0x1B, 0x03]); // Set ODCNTL to 100 Hz
i2c.writeTo(0x1E, [0x18, 0b10101100]); // Return to active mode -

It was working fine, but somehow now there is nothing from the accelerometer chip.

I've tried to read:

WHO_AM_I (0x0F): 0 (I should get 0x15h)
COTR: 0 (should be 0x55h)
CNTL1/CNTL2/ODCNTL: all return 0
The chip won't accept any I2C writes and all reads return 0.

I've tried to write:
Software reset via CNTL2 (0x19, 0x80) - no effect
Multiple reset() commands

Power off and wait for some minutes - no change

Question: Is there a way to recover the accelerometer sensor data?

Any help appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions