Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9872 Discussions

Sending Serial commands to Arduino via Edison

RTang4
Novice
1,346 Views

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!

3 Replies
idata
Community Manager
125 Views

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
RTang4
Novice
125 Views

Thank you Sergio this was an informative link. I was able to send and read the data through the serial port.

idata
Community Manager
125 Views

Do you still need help with this thread, were you able to send data?

 

 

-Sergio

 

Reply