Arduino Forum

Using Arduino => Interfacing w/ Software on the Computer => Topic started by: amydh on May 17, 2017, 04:12 pm

Title: Upload sketch to arduino due using only python
Post by: amydh on May 17, 2017, 04:12 pm
Hi all,

I would like to be able to upload a sketch onto my arduino due using only python.

I am running an experiment and using the due as a waveform generator. Prior to each run I set a couple of parameters which are stored in an additional header file. The aim is to have all the software running through python commands, so instead of having to use the IDE to re-upload the sketch each time, I would like to be able to do this in python.

I have seen various libraries etc to implement this, but none which are compatible with both the arduino due and windows. Has anyone done this elsewhere? Or is there another way to do this?

Any help would be greatly appreciated!

Thanks!
Title: Re: Upload sketch to arduino due using only python
Post by: ieee488 on May 17, 2017, 04:58 pm
Don't know if Python is capable to executing Windows command line.  Apparently you can upload a sketch from Windows command line. So you need to see if Python is able to replicate that behavior.

Title: Re: Upload sketch to arduino due using only python
Post by: Robin2 on May 17, 2017, 08:50 pm
I answered this question here (http://forum.arduino.cc/index.php?topic=381897.msg3265008#msg3265008).

...R