Page 1 of 1

Restore Defaults (80)

Posted: Wed Mar 03, 2021 1:11 am
by woko1754
I just found an inconsistency in the manual regarding command 80: contrary to the manual the command has to be followed by two CRC-bytes. After changing this in my code, I get the 0xFF acknowledge and the command is working.
The bad thing is, that now the 65 command isn't working anymore. I try to set some initial parameters using commands 98, 28 and 61, but this doesn't seem to be enough anymore.

What is the minimal set of commands that have to be used after Restore command to get 65 working again ?

Re: Restore Defaults (80)

Posted: Wed Mar 03, 2021 10:22 am
by woko1754
I got it working, by waiting for 500msec after the reset command.

Nevertheless I would like to know which settings are required after a reset command.

Thanks in advance.

Re: Restore Defaults (80)

Posted: Fri Mar 05, 2021 3:22 am
by woko1754
By try and error I found out that only commands 28 (29) and 61 (62) are required to get 65 (66) working after reset. The required values I read from a file created by the studio.

Re: Restore Defaults (80)

Posted: Tue Mar 16, 2021 7:57 am
by woko1754
I just discovered, that the encoder registers should be reset to get a defined home position (commands 22 and 23).

Re: Restore Defaults (80)

Posted: Fri Mar 19, 2021 4:36 am
by woko1754
I published my code on github: https://github.com/woko54/roboclaw

Re: Restore Defaults (80)

Posted: Fri Mar 19, 2021 12:24 pm
by Basicmicro Support
Thank you for all the updates and publishing your code.

Re: Restore Defaults (80)

Posted: Fri Sep 24, 2021 2:12 am
by woko1754
Has someone made some experiences with using an end-switch for a homing process ?

I want to implement it into my code and haven't found a solution yet.

Re: Restore Defaults (80)

Posted: Fri Nov 19, 2021 12:55 pm
by Basicmicro Support
What has been the trouble? Setting up S4 or S5 for a single limit is fairly simple using Motion Studio. Note the switches do nothing unless the motors are commanded to move so if you are manually testing expecting some action without actually command the motor to move, that may be what is confusing you.