STOP all by sotware

General discussion of using Roboclaw motor controllers
Post Reply
fausto.tromba
Posts: 37
Joined: Wed Jul 31, 2019 7:24 am
STOP all by sotware

Post by fausto.tromba »

Is it possible to configure an external button that stops the operations like STOP ALL in the tool software?
User avatar
Basicmicro Support
Posts: 1594
Joined: Thu Feb 26, 2015 9:45 pm
Re: STOP all by sotware

Post by Basicmicro Support »

Yes, that would be the E-Stop input. Note that when using Latching E-Stop you have to power cycle the board to clear it. For this use you should not use the latching option.
fausto.tromba
Posts: 37
Joined: Wed Jul 31, 2019 7:24 am
Re: STOP all by sotware

Post by fausto.tromba »

Sorry but I don't get how to configure it.
I have selected "Hardware" in "E-Stop Reset Method".
In the mode of a Digital input I can select only "Analog" or "Pulse". Where should I select "Latching"?
User avatar
Basicmicro Support
Posts: 1594
Joined: Thu Feb 26, 2015 9:45 pm
Re: STOP all by sotware

Post by Basicmicro Support »

Ah, you appear to be using a MCP. On MCP you need to setup the input pin(Analog or Digital mode depending on the specific pin capabilities). Then you need to set the Min or Max Action. The action options can be set to stop both motor. The min and max range settings need to be set high(for min) and lower(for max range) than the inputs actual low and high value. That way the min and/or max action will trigger when you set/clear the input.
didmou
Posts: 3
Joined: Mon Sep 30, 2019 1:46 pm
Re: STOP all by sotware

Post by didmou »

Hello,

I'm new and I need some help.
In serial mode, what the command or suit of commands I must send for obtain the same result as STOP ALL on the basicmicromotiontudio...

I use this command : SpeedAccelDistanceM1M2 and I would like STOP ALL the motors. (I use an arduino)
I'm 100% software.
Thanks for the answer
User avatar
Basicmicro Support
Posts: 1594
Joined: Thu Feb 26, 2015 9:45 pm
Re: STOP all by sotware

Post by Basicmicro Support »

The Stop All button in Motion studio uses the M1M2Duty command and sets the duty of each motor to 0.
didmou
Posts: 3
Joined: Mon Sep 30, 2019 1:46 pm
Re: STOP all by sotware

Post by didmou »

Basicmicro Support wrote: Wed Oct 02, 2019 11:30 am The Stop All button in Motion studio uses the M1M2Duty command and sets the duty of each motor to 0.
Perfect !
Thank you very much !

Post Reply