Go Down

Topic: Reading a Script from Memory (Read 1 time) previous topic - next topic

johnwasser


I may not have been totally clear.  I'd like to write a script from my computer, send it to the Arduino, then with the use of an external power supply have the Arduino perform the functions from the script.


This sounds remarkably like writing a sketch, uploading it to the FLASH memory of the Arduino, and executing it whenever the Arduino is provided power.  That's what an Arduino does.  Any Arduino will do that.  Provide power and it runs the last sketch you uploaded.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Graynomad

That's correct, once the program is downloaded the Arduino runs by itself.

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

thespaceman

I may not have been totally clear. I'd like to write a script from my computer, send it to the arduino, then with the use of an external power supply have the arduino perform the functions from the script.

It sounds like the duinomite is used to write scripts when a computer is not accessible, which is not my case.

Therefore I need nothing more than my cute little arduino..

Is this all correct?

Graynomad

The term "script" generally refers to ASCII human-readable text that is handled by an interpreter or compiler to produce code that the processor understands.

The "stuff" that's running on your Arduino is the result of this compiling, ie binary executable code not "script".

In that light you can store script on an SD card and have a program running on the Arduino that will read that script and interpret it, that's exactly what the Duinomite does and it allows you to use the board with no computer at all if you have a keyboard and a display.

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

thespaceman

AWESOME!
What I meant by that last part is that if it was necessary to save the script on an external memory card, what would I need to include in my script in order to access the card. But I suppose that does not make any sense because I would have already had to of accessed the script in the first place. I just don't know much about the inner workings..

Really, Really helpful thank you.  :D

Go Up