This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Interrupt pin for nrf52832

Hi,

I want to use a MPU6050 sensor with my nrf52832 board.

I connected the SDA and SCL pins of my sensor board with the pins P0.26 and P0.27 of my nrf52832 board, respectively.

But which pin can I use to connect the INT pin of my sensor with?

Thank you for your help!

Parents
  • Hi,

    If you are an NCS user, the INT pin is specified at zephyr\samples\sensor\mpu6050\boards\nrf52dk_nrf52832.overlay file.

    &i2c0 {
    	mpu6050@68 {
    		compatible = "invensense,mpu6050";
    		reg = <0x68>;
    		status = "okay";
    		label = "MPU6050";
    		int-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
    	};
    };
    

    After building, you should find actual pin assignments for MPU6050 from zephyr\samples\sensor\mpu6050\build\zephyr\include\generated\devicetree_unfixed.h. It look like

    #define DT_N_S_soc_S_i2c_40003000_S_mpu6050_68_P_int_gpios_IDX_0_VAL_pin 11

    Best regards,

    Charlie

Reply
  • Hi,

    If you are an NCS user, the INT pin is specified at zephyr\samples\sensor\mpu6050\boards\nrf52dk_nrf52832.overlay file.

    &i2c0 {
    	mpu6050@68 {
    		compatible = "invensense,mpu6050";
    		reg = <0x68>;
    		status = "okay";
    		label = "MPU6050";
    		int-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
    	};
    };
    

    After building, you should find actual pin assignments for MPU6050 from zephyr\samples\sensor\mpu6050\build\zephyr\include\generated\devicetree_unfixed.h. It look like

    #define DT_N_S_soc_S_i2c_40003000_S_mpu6050_68_P_int_gpios_IDX_0_VAL_pin 11

    Best regards,

    Charlie

Children
No Data
Related