Hey all,
My current stack is an Intel Edison, a sparkfun baseblock, and a sparkfun Arduino block (https://www.sparkfun.com/products/13036 SparkFun Block for Intel® Edison - Arduino - DEV-13036 - SparkFun Electronics ). The code I have uploaded to the Arduino requires a serial input (1-9600) which results in a stepper motor activating and rotating at the set speed. I want to be able to run a python script on the Edison which asks what input to enter, have the command sent to the Arduino, and the stepper motor to function accordingly. I have MRAA functioning on the Edison, I just don't know how to send the commands. Any help would be appreciated. I'm pretty new to this so the more detail the better.
Thank you!
Link Copied
Hi ProgrammingN00b,
If I understood you well, you want to send information from the Python script to the Arduino sketch, right? If so, I recommend you to check the following guide that explains how to share data between environments: https://software.intel.com/en-us/blogs/2015/05/05/efficient-data-sharing-using-interrupts-on-intel-e...
The guide uses a Nodejs script in the explanation, but you could use a Python script instead. I hope you find it useful.
Regards,
Diego
Do you still need help with this thread, were you able to send data?
-Sergio
Thank you Sergio this was an informative link. I was able to send and read the data through the serial port.
For more complete information about compiler optimizations, see our Optimization Notice.