Go Down

Topic: Upload sketch to arduino due using only python (Read 208 times) previous topic - next topic

amydh

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!

ieee488

#1
May 17, 2017, 04:58 pm Last Edit: May 17, 2017, 05:51 pm by ieee488
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.


Robin2

Two or three hours spent thinking and reading documentation solves most programming problems.

Go Up