Save & Play Arm “Animation”
I’m making an arm controlled by potentiometers and servos. An idea of mine is that a button will be made for recording a series of potentiometer inputs which can then later be played with another button. My questions are:
A. How this would even work
B. Does the Arduino Uno even have enough storage for that
12 Replies
i was thinking of just adding every millisecond or whatever to a table but that seems inefficient
You could experiment with how often you need to save the position so that playback is " good enough", maybe you need every ms, maybe you only need every 100 ms...
You do not need to store time.
Store changes and the time they happen.
wrist --- 90 @ 2100
elbow -- 30 @ 2200
wrist -- 80 @ 2200
eg doesnt need to be continous
the reason i thought about storing time was because if there is a pause in the animation for whatever reason, it could be recorded
That is done via the stored this happens then
Much like animation key fram.
Eg
Time, wrist pos, elbow pos, shoulder pos.
Between 100 and 300 the values remain the same, then @ 300 elbow moves.
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Over complicated as you can do that with the interpreting what amount of change determines a record
would i need two separate arrays for that?
you can create a struct
then
What is the project ? an arm ?
And questions.
do you record the positioning as continuous moves or move to a position in a fixed times and push a button to record.
GitHub
ServoEasing/examples/RobotArmControl at master · ArminJo/ServoEasing
Arduino library to enable smooth servo movement. Contribute to ArminJo/ServoEasing development by creating an account on GitHub.
GitHub
GitHub - ArminJo/ServoEasing: Arduino library to enable smooth serv...
Arduino library to enable smooth servo movement. Contribute to ArminJo/ServoEasing development by creating an account on GitHub.
thanks!