Community
cancel
Showing results for 
Search instead for 
Did you mean: 
zyf
Novice
956 Views

How to connect edison to arduino mega2560 with serial?

Jump to solution

How to connect edison to arduino mega2560 with serial?

Can anyone give me an example using eclipse?

1 Solution
Diego_V_Intel
Employee
101 Views

Hi zyf,

You can interface each board by connecting the pins Tx and Rx properly. If you are using the Arduino Expansion Board for Edison, you have to connect the Tx pin to the Rx pin of the Arduino MEGA, and the Rx pin to the Tx pin of the Arduino MEGA.

Then, you could program each board through the Arduino IDE in order to send and receive serial data. If you prefer to use the Eclipse IDE to program the Edison, you might find the MRAA library useful for this purpose. A UART example can be checked in the following site: https://github.com/intel-iot-devkit/mraa/blob/master/examples/c%2B%2B/Uart-example.cpp mraa/Uart-example.cpp at master · intel-iot-devkit/mraa · GitHub

Regards,

Diego

View solution in original post

1 Reply
Diego_V_Intel
Employee
102 Views

Hi zyf,

You can interface each board by connecting the pins Tx and Rx properly. If you are using the Arduino Expansion Board for Edison, you have to connect the Tx pin to the Rx pin of the Arduino MEGA, and the Rx pin to the Tx pin of the Arduino MEGA.

Then, you could program each board through the Arduino IDE in order to send and receive serial data. If you prefer to use the Eclipse IDE to program the Edison, you might find the MRAA library useful for this purpose. A UART example can be checked in the following site: https://github.com/intel-iot-devkit/mraa/blob/master/examples/c%2B%2B/Uart-example.cpp mraa/Uart-example.cpp at master · intel-iot-devkit/mraa · GitHub

Regards,

Diego

View solution in original post

Reply