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

I want to set up a serial communication between arduino and nrf52840 ?

i have programmed a arduino to send data(int value) on tx ,rx pin .How shoul i set up the nrf52 (the pin no of rxd and txd on nrf are p0.6 and p0.8).Which example should i begin with? Is ther a tutorial for serial commmunication to read and store it in a variable.So later on i can use the coap iot example to upload the data on cloud or read on coap cupper client.(for now i want to read the data on the pc). .

Parents
  • Hi,

    I would recommend that you start with the UART peripheral example in the SDK, to learn the basics of how to use the UART peripheral. After that, you can integrate UART into the exaple of your choice, for instance to upload the value to cloud. Note that GPIO P0.06 and P0.08 is connected to the interface MCU on the nRF52840 PDK. I would recommend that you disconnect the interface MCU, or use other pins when interfacing an external device, to avoid data crashes. Any of the GPIOs of the nRF52840 can be used with the UART module, but you should choose some that is not used for anything else, as noted on the back of the PDK.

    Best regards,

    Jørgen

Reply
  • Hi,

    I would recommend that you start with the UART peripheral example in the SDK, to learn the basics of how to use the UART peripheral. After that, you can integrate UART into the exaple of your choice, for instance to upload the value to cloud. Note that GPIO P0.06 and P0.08 is connected to the interface MCU on the nRF52840 PDK. I would recommend that you disconnect the interface MCU, or use other pins when interfacing an external device, to avoid data crashes. Any of the GPIOs of the nRF52840 can be used with the UART module, but you should choose some that is not used for anything else, as noted on the back of the PDK.

    Best regards,

    Jørgen

Children
Related