Page 1 of 1

Adafruit motor shield

Posted: 31 Aug 2020, 16:26
by kirelam
Dear IOT'ers,

I want to controll my ADAfruit Motorshield Stepper motor through MQTT. Does anyone know the syntax for this?
I am strugling to go from HTTP to MQTT, but it is a harsh mistress.

<I Use a Wemos D1 R1 with on top a Adafruit Motorshield 2.0, wich works like a Charm, Through HTML.>

Greetz,
Kirelam

Re: Adafruit motor shield

Posted: 14 Jul 2021, 02:57
by thom13
I use this with Home Assistant:

Code: Select all

switch:
  - platform: mqtt
    name: Porte_Poulailler
    command_topic: "Porte_Poulailler/cmd"
    payload_on: "MotorShieldCMD,Stepper,1,Backward,800,DOUBLE"
    payload_off: "MotorShieldCMD,Stepper,1,Forward,800,DOUBLE"
    icon: mdi:garage