TMP117 Temperature Sensor

Hello People,

Can Anyone have working  Code of TMP117 Temperature Sensor with any of the Nordic BLE.

Parents
  • The default I2C address for the TMP117 is 0x48. So in my overlay file using the TMP116 example nrf52dk_nrf52832.overlay:

    &i2c0 {
    ti_tmp116: ti_tmp116@4b {
    compatible = "ti,tmp116";
    reg = <0x48>;
    label = "TMP116";
    };
    };
    In main.c
    dev = device_get_binding(DT_LABEL(DT_INST(0, ti_tmp116)));
    __ASSERT(dev != NULL, "Failed to get TMP116 device binding");

    printk("Device %s - %p is ready\n", dev->name, dev);
    If you get to device is ready you have a connection established to TMP117.

    I got this working on nrf52dk_nrf52832.

    I hope this helps.

Reply
  • The default I2C address for the TMP117 is 0x48. So in my overlay file using the TMP116 example nrf52dk_nrf52832.overlay:

    &i2c0 {
    ti_tmp116: ti_tmp116@4b {
    compatible = "ti,tmp116";
    reg = <0x48>;
    label = "TMP116";
    };
    };
    In main.c
    dev = device_get_binding(DT_LABEL(DT_INST(0, ti_tmp116)));
    __ASSERT(dev != NULL, "Failed to get TMP116 device binding");

    printk("Device %s - %p is ready\n", dev->name, dev);
    If you get to device is ready you have a connection established to TMP117.

    I got this working on nrf52dk_nrf52832.

    I hope this helps.

Children
No Data
Related