07-21-2014 05:01 PM
Is it possible to communicate two Arduino via SPI Labveiw? I'm trying to communicate two Arduinos via the SPI library, but do not know how to communicate.
07-22-2014 04:43 AM
LIFA does not use SPI to communicate between the Arduino and LabVIEW. So, you will have to be more specific about your application to be able to provide a good answer to your question.
07-22-2014 12:12 PM
Ok, Nathan, sorry for making a short question. I do not want to use the SPI port to communicate with Arduino LabVIEW. I use two Arduino, one as Master and one as Slave communicated by SPI, and use LabVIEW to communicate with each of the Arduino via the USB port.
07-22-2014 02:19 PM
An alternate approach is to use I2C for communication between two Arduinos. The book " Internet of Things with the Arduino Yun" provides an example for sending commands from an Arduino Yun to an Arduino Uno using I2C. This is an excellent book if you are interested in remote Energy Monitoring, a Cloud connected Camera or a WiFi controlled Mobile Robot. A kindle edition is available for $10.00 from Amazon.
One word of caution the Author forgot to mention the need for pull up resistors with I2C.
hrh1818
07-23-2014 12:05 PM
hrh1818, thank you very much. But I wanted to use SPI instead of I2C. I think to make the communication, it is necessary to modify the Arduino code.
07-25-2014 03:40 AM
You can use LIFA on the one connected directly to LabVIEW without modification. You will, however, need to make entirely custom code for the Arduino that will be the SPI slave device.