Hello, I'm trying to have a remote control the robot, but if I press a button it would save the motion it just did. It would save it to a file, that you could than access later. This would allow the robot to than repeat the motion by it's self. I'm using a Arduino Uno, but I can change the board if needed.
but if I press a button it would save the motion it just did. It would save it to a file, that you could than access later
What do you mean by "the motion it just did"? What "motions" does it do? For how long?
There is no 'saving' after the fact... unless your 'instructions' sent to the robot were already in some function/array..etc..
(but at that point you already have it... so you could just export it anyway you like, or really copy and paste)
Sounds like what you need to define is:
-
a start recording event
-
saves/collects your input/directions to the robot in eeprom or another variable/holder
-
a stop recording event
when the stop recording event is reached, you can export whatever you like.... (ie: output to .txt file on microSD card or something)
You need to collect your 'steps/motion'....
NOT be like: That worked, it moved how I wanted.. now I need to save it. (because at that point the directions/insctruction set has passed.