Incremental control of servo motor
hello all!
i'm looking way control servo motor incrementaly. mean, if want move servo, specify change of angle, instead absolute position.
in particular case:
when loop starts frst time servo position needs be, lets 90 degrees. required change +30 degrees, : 90+30= 110, , position 110 degrees must send servo , stored. when loop repeats takes 110 degrees current angle, , if next required change 50 degrees, calc 110+50=160 , write pos= 160 deg.
i may try eeprom, far know, type of memory more temporary data...
so, appreceate every opinion!
best regards
i'm looking way control servo motor incrementaly. mean, if want move servo, specify change of angle, instead absolute position.
in particular case:
when loop starts frst time servo position needs be, lets 90 degrees. required change +30 degrees, : 90+30= 110, , position 110 degrees must send servo , stored. when loop repeats takes 110 degrees current angle, , if next required change 50 degrees, calc 110+50=160 , write pos= 160 deg.
i may try eeprom, far know, type of memory more temporary data...
so, appreceate every opinion!
best regards
quote
so : 90+30= 110
what number base working in there?
why eeprom?
what's wrong ram, or system have hold position across reset?
Arduino Forum > Using Arduino > Storage > Incremental control of servo motor
arduino
Comments
Post a Comment