1

I'm not sure if this is even possible, but does anyone know how to launch an arduino script (.ino) from the cmd? I've already made a .bat script that opens the arduino application:

cd\
cd Users\student\Desktop\Me\etch a sketch\StandardFirmata
StandardFirmata.ino

but it doesn't actually run the program. Help?

3
  • Have you tried the start command (type start /? for help)? Commented Jul 22, 2015 at 19:22
  • @aschipfl that opens the arduino application (which contains the script), but doesn't run the script itself Commented Jul 22, 2015 at 19:26
  • 2
    The first couple of answers of this question should be able to help. Commented Jul 22, 2015 at 19:55

1 Answer 1

0

I overcame this problem by uploading my code to Arduino then reading serial port and I used this code to send serial commands from my cmd. just save this code as .bat and notice that I am using com6 if you are using something different make sure to change it in the code.

mode com6:9600,N,8,1
@echo off
:start
cls
Set /p commands="enter command:"
echo|set /p= %commands% >com6
goto start 
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.