08-05-2015 05:13 PM
Hi,
I am trying to realize the data communication between MyRIO1900 and Arduino via UART.
UART interface on Arduino Uno is under 16MHz clock.
The UART for myRIO can only set the Baud Rate. However if the frequency is different from Arduino, the connection will not be built.
How do I adjust the frequency of MyRIO UART? What is the default frequency of MyRIO UART? Where can I find that parameter?
Solved! Go to Solution.
08-05-2015 06:18 PM
08-06-2015 06:38 AM
@SergioMa wrote:
Hi,
I am trying to realize the data communication between MyRIO1900 and Arduino via UART.
UART interface on Arduino Uno is under 16MHz clock.
The 16MHz has nothing to due with the baud rate of your Arduino. You need to set the baud rate in the Arduino as well and make sure it matches the buad rate you used for the myRIO. I would recommend 115200.
08-06-2015 07:15 AM
Thank you all for replaying.
Currently I set 96000 at the baudrate for Arduino. The MyRIO is same.
The MyRIO program is simly a UART bloack connecting an indicator. The UART block is in read mode with data frame setup: 8 bits, even parity; 2 stop bits. In the code of arduino, the same setup is applied.
It was not working last night. I will try again today.
08-06-2015 12:38 PM
It doesn't work still.
I post some photos. You can check it.
Could it be the problem that the voltage level from arduino and MyRIO are different?
Thank you very much
08-06-2015 01:04 PM
it is working now. The problem is that I send from arduino with integer 0x05. The Labview recognize it as asic for characters.
10-28-2015 06:11 AM
How to fixed this problem?Can you say detail? Becuse i want to read from ardunio on sbrio.