[Solved] Possible to to execute local script before uploading with Arduino IDE

Hi,

I'm completley new to Arduino, so please forgive me for any noob questions :slight_smile:

I just got an uArm, which works great together with Arduino IDE. But for each time i upload code i would like to create a unique movement pattern. This requires a local program/script to run first and generate the movement pattern.

What would be a good aproach for this? The only thing i can think of right now is something like "autohotkey" but I'm sure there must be better solutions.

From Arduino IDE 1.5.x onwards it has been possible to compile and upload programs from the command line. That creates the option to, for example, write a Python program to generate your pattern and then upload the code.

This Thread about uploading directly from the Geany editor may give you some ideas.

...R

Robin2:
From Arduino IDE 1.5.x onwards it has been possible to compile and upload programs from the command line. That creates the option to, for example, write a Python program to generate your pattern and then upload the code.

This Thread about uploading directly from the Geany editor may give you some ideas.

...R

Great! Thanks! Just what I'm looking for!

It worked very well, here are the command line i used on windows:

arduino.exe --upload --port COM3 projects/test1/test1.ino