I am experiencing an issue with UART communication using the Nicla Voice. I was able to receive data via the RX pin, but I am unable to transmit data. Seems like an issue with TX pin. Here is the code I am using to transmit data:
#include "Nicla_System.h"
#include "NDP.h"
#include <Arduino.h>
void setup() {
nicla::begin();
nicla::leds.begin();
Serial1.begin(57600); // Initialize Serial1 for communication
}
void loop() {
Serial1.write("Hello World");
nicla::leds.setColor(green);
delay(200);
nicla::leds.setColor(off);
// Wait for 5 seconds before sending the next message
delay(5000);
}
Has anyone been able to get this working with a Nicla product? Is there a chance the board is defective? I have tried the suggestions found at the following link with no luck as well: https://forum.arduino.cc/t/serial-communication-between-nicla-vision-and-uno-not-working/1134407/12