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

Sensor Readings using UART

I am trying to use a sensor that needs 9600 baud rate with the nRF52840-DK. I've set the baud rate to 9600 on the sdk_config.h. Would I still be able to see the transmit/receive data on putty if the baud rate is set to 9600 for the sensor and the DK runs on 115200? At the moment, I can only see things on putty if the baud rate is set to 115200 and it's just basically the DK talking to itself.

I'm having trouble with getting any responses from the sensor, both from the custom PCB and just connecting the sensor to the assigned GPIO pins on the DK. I am able to send commands to the sensor ie "Z\r\n" (I think) but I am not getting the right response back from the sensor. In this case, the temperature reading. 

I'm using the SDK 15.2 and started off with the UART example (UART library).

What am I doing wrong here?

Parents Reply
  • Hi thanks for this. I've now moved onto the ble_app_uart example and got that working. But is it possible to use custom pins for the Rx and Tx to get that example to work? Is it possible to use UART with Soft Device? I've got a custom board that I eventually want to use that will be using the bluetooth service.

    using a custom board and trying to get UART to work on that. How can I use UART with the Soft Device? 

Children
Related