MQTT Syntax adafruit motor shield (Stepper)
Moderators: grovkillen, Stuntteam, TD-er
MQTT Syntax adafruit motor shield (Stepper)
IOT'er,
Anyvbody experience with the Adafruit Motorshield with Stepper driver?
I need the Rule for commanding the rotation and the release.
I'm guessing that this should be done within 1 or 2 rules in ESPeasy, and kicked of with a MQTT cmd, True?
If so what is this Syntax, or how to get it?
I managed to get switches and sensors working!
Kind regards,
Kirelam
Anyvbody experience with the Adafruit Motorshield with Stepper driver?
I need the Rule for commanding the rotation and the release.
I'm guessing that this should be done within 1 or 2 rules in ESPeasy, and kicked of with a MQTT cmd, True?
If so what is this Syntax, or how to get it?
I managed to get switches and sensors working!
Kind regards,
Kirelam
Re: MQTT Syntax adafruit motor shield (Stepper)
No it is a plugin that is in beta.
https://www.letscontrolit.com/wiki/inde ... ield_v2%22
Works like a charm for me under http. But i am moving to HA so i need to control it through MQTT.
Kind regards,
Kirelam
https://www.letscontrolit.com/wiki/inde ... ield_v2%22
Works like a charm for me under http. But i am moving to HA so i need to control it through MQTT.
Kind regards,
Kirelam
Re: MQTT Syntax adafruit motor shield (Stepper)
Ah this one, with clearly a very minimalistic styled documentation: https://espeasy.readthedocs.io/en/lates ... #p048-page
From the comments in the source code:
MotorShieldCMD,<DCMotor>,<Motornumber>,<Forward/Backward/Release>,<Speed>
MotorShieldCMD,<Stepper>,<Motornumber>,<Forward/Backward/Release>,<Steps>,<SINGLE/DOUBLE/INTERLEAVE/MICROSTEP>
From the comments in the source code:
MotorShieldCMD,<DCMotor>,<Motornumber>,<Forward/Backward/Release>,<Speed>
MotorShieldCMD,<Stepper>,<Motornumber>,<Forward/Backward/Release>,<Steps>,<SINGLE/DOUBLE/INTERLEAVE/MICROSTEP>
Re: MQTT Syntax adafruit motor shield (Stepper)
Will try thanx!!
Re: MQTT Syntax adafruit motor shield (Stepper)
Anyone an idee how the MQTT commands look?
I cannot get the module to recognize the commands
MotorShieldCMD,<DCMotor>,<Motornumber>,<Forward/Backward/Release>,<Speed>
MotorShieldCMD,<Stepper>,<Motornumber>,<Forward/Backward/Release>,<Steps>,<SINGLE/DOUBLE/INTERLEAVE/MICROSTEP>
I cannot get the module to recognize the commands
MotorShieldCMD,<DCMotor>,<Motornumber>,<Forward/Backward/Release>,<Speed>
MotorShieldCMD,<Stepper>,<Motornumber>,<Forward/Backward/Release>,<Steps>,<SINGLE/DOUBLE/INTERLEAVE/MICROSTEP>
Re: MQTT Syntax adafruit motor shield (Stepper)
Well sending via MQTT is not something I tried myself.
But in general, the commands should be formatted just as if you sent them via the command field on the tools page.
The options are almost all strings, so:
- Command is MotorShieldCMD
- Motor type = "DCMotor" or "Stepper"
- Motornumber is an int.
- action is Forward/Backward/Release
- action parameter is an int (0 ... 255)
So an example of a command can be:
MotorShieldCMD,DCMotor,0,Forward,10
But in general, the commands should be formatted just as if you sent them via the command field on the tools page.
The options are almost all strings, so:
- Command is MotorShieldCMD
- Motor type = "DCMotor" or "Stepper"
- Motornumber is an int.
- action is Forward/Backward/Release
- action parameter is an int (0 ... 255)
So an example of a command can be:
MotorShieldCMD,DCMotor,0,Forward,10
Re: MQTT Syntax adafruit motor shield (Stepper)
I also added the same info to the main documentation, to help others too.
https://espeasy.readthedocs.io/en/lates ... #p048-page
https://espeasy.readthedocs.io/en/lates ... #p048-page
Re: MQTT Syntax adafruit motor shield (Stepper)
So something like this?
MQTT: ChickenBot/MotorShieldCMD,Stepper,M1
And than with the load: Release or backward,2000,double
Cause this does not work with Home Assistant.
This is what i have in Home assistant now:
- platform: mqtt
name: "ChickenBot"
state_topic: "/ChickenBot/Button/State"
command_topic: "ChickenBot/MotorShieldCMD,Stepper1"
payload_on: Release
optimistic: true
qos: 0
retain: true
value_template: '{{ value.x }}'
I am vallueing your advice!!
Greetz,
Kirelam
MQTT: ChickenBot/MotorShieldCMD,Stepper,M1
And than with the load: Release or backward,2000,double
Cause this does not work with Home Assistant.
This is what i have in Home assistant now:
- platform: mqtt
name: "ChickenBot"
state_topic: "/ChickenBot/Button/State"
command_topic: "ChickenBot/MotorShieldCMD,Stepper1"
payload_on: Release
optimistic: true
qos: 0
retain: true
value_template: '{{ value.x }}'
I am vallueing your advice!!
Greetz,
Kirelam
Re: MQTT Syntax adafruit motor shield (Stepper)
2000 is not in the range of 1...255.
Re: MQTT Syntax adafruit motor shield (Stepper)
Ok, but the release command is also not coming through?
That one has a simple syntax with no parameter!
That one has a simple syntax with no parameter!
Re: MQTT Syntax adafruit motor shield (Stepper)
Like I said, I haven't tried the commands via MQTT myself.
According to the documentation, you should add "cmd" to the topic: https://espeasy.readthedocs.io/en/lates ... -reference
The command itself does work when you enter it in the command field on the tools page?
According to the documentation, you should add "cmd" to the topic: https://espeasy.readthedocs.io/en/lates ... -reference
The command itself does work when you enter it in the command field on the tools page?
Who is online
Users browsing this forum: No registered users and 13 guests