Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

TWI Sensor example not working.

Hi all,

I'm working with TWI Sensor example.  I've followed this https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Ftwi_sensor_example.html and bought LM75 sensor and connect it to my NRF52832 kit. As the example configuration, I connect the SCL and SDA pin of sensor to ARDUINO_SCL_PIN (27) and ARDUINO_SDA_PIN (26). But when I run the example, I don't see anything on my Debug Terminal.

This is my LM75 sensor

How can I see the temperature data? Thanks alot!

Parents
  • Hi,

     

    Do you see anything at all in the uart terminal?

    You should initially see this:

    <info> app:
    TWI sensor example started.

    If this is not shown, then try starting from a clean slate:

    nrfjprog -e -f nrf52

    nrfjprog --program path\to\nRF5_SDK_15.2.0_9412b96\examples\peripheral\twi_sensor\hex\twi_sensor_pca10040.hex --sectorerase -f nrf52

    nrfjprog --reset -f nrf52

    Do you still not see any output on the UART?

    Note that the above will program the precompiled .hex file.

    Kind regards,

    Håkon

Reply
  • Hi,

     

    Do you see anything at all in the uart terminal?

    You should initially see this:

    <info> app:
    TWI sensor example started.

    If this is not shown, then try starting from a clean slate:

    nrfjprog -e -f nrf52

    nrfjprog --program path\to\nRF5_SDK_15.2.0_9412b96\examples\peripheral\twi_sensor\hex\twi_sensor_pca10040.hex --sectorerase -f nrf52

    nrfjprog --reset -f nrf52

    Do you still not see any output on the UART?

    Note that the above will program the precompiled .hex file.

    Kind regards,

    Håkon

Children
Related