Pipe data from Arduino to script

Hello all,

I am trying to use Arduino to pass data from the device, to the computer, and then pass the data once interpreted into to a REAscript (written in Python). Is there any documentation on doing this?

What kind of data you are trying to send.
When you saying device is it arduino only or arduino being interface with any other device
You can communicate with python via pyserial.

@python side you need to write code to encrypt arduino data & save in word or excel.

It also depend on How you sending data over arduino>>

This demo shows how to communicate with an Arduino using Python.

...R

Sorry, I should have been a bit more clear. So what I'm trying to do as follows

Arduino module reads in from accelerometer and gyroscope, sends data as input detected to application on the PC, then I want too pipe the data after interpreting it into curX, Y and Z coordinates to a separate Python script that I have simultaneously running on the same machine.

I may be able to simply put it all into the Python script, but honestly I am just curious how to pass data from a program to a separate script as this would come in handy for a few projects I am currently working on

Pass the data serially, Make array where you store and Display serially . In python side instal pyserial

Write simple code to read Serial data Store the Serial data Into Excel file or CSV format.

If you can post code We can help here. Like edit code little bit.

Kvlt_Kitty:
sends data as input detected to application on the PC, then I want too pipe the data after interpreting it into curX, Y and Z coordinates to a separate Python script that I have simultaneously running on the same machine.

This isn't an Arduino programming issue.

What application is receiving the data from the Arduino?

...R