Community
cancel
Showing results for 
Search instead for 
Did you mean: 
AFrac1
Beginner
872 Views

Is it possible to read serial output from Arduino on Edison itself?

Jump to solution

I'm using the Xadow Edison kit to build a simple and small "crash test" sensor. For some reason the Xadow accelerometer doesn't show up in i2cdetect but works perfectly fine with the Arduino sketches. In order to process the data from the accelerometer I want to get it to use it on Linux on Edison. Is there a way I could use a program to read the serial output from an Arduino sketch on the Edison itself when it's not plugged in to another computer?

If not is there another way I could easily send data from an Arduino sketch to Linux?


Accepted Solutions
Diego_V_Intel
Employee
48 Views

Hello frecel,

Probably the muxes are not configured properly when you try to detect the I2C device. The Arduino sketch configures the muxes automatically, and that might be the reason why it works with the Arduino sketch only. You could try to configure the muxes manually for I2C or you could try to use the MRAA library to use the device. In case you're interested on the MRAA library, I recommend you to check the following site: https://github.com/intel-iot-devkit/mraa intel-iot-devkit/mraa · GitHub

Regarding your last question, it's possible to share data between an Arduino sketch and the Linux side. It's done through text files. You would have to create a file in the Arduino sketch and add the data to it. Then, in the Linux side you can open the file and read the data. Check the following document for additional details about sharing data between environments: https://software.intel.com/en-us/blogs/2015/05/05/efficient-data-sharing-using-interrupts-on-intel-e... IoT - Data sharing between programming environments on Intel® Edison | Intel® Developer Zone

Regards,

Diego.

View solution in original post

1 Reply
Diego_V_Intel
Employee
49 Views

Hello frecel,

Probably the muxes are not configured properly when you try to detect the I2C device. The Arduino sketch configures the muxes automatically, and that might be the reason why it works with the Arduino sketch only. You could try to configure the muxes manually for I2C or you could try to use the MRAA library to use the device. In case you're interested on the MRAA library, I recommend you to check the following site: https://github.com/intel-iot-devkit/mraa intel-iot-devkit/mraa · GitHub

Regarding your last question, it's possible to share data between an Arduino sketch and the Linux side. It's done through text files. You would have to create a file in the Arduino sketch and add the data to it. Then, in the Linux side you can open the file and read the data. Check the following document for additional details about sharing data between environments: https://software.intel.com/en-us/blogs/2015/05/05/efficient-data-sharing-using-interrupts-on-intel-e... IoT - Data sharing between programming environments on Intel® Edison | Intel® Developer Zone

Regards,

Diego.

View solution in original post