@dodo88
A link to the “chicken friend” @amazon would have been quite nice.
But I don’t know what exactly you want to know.
Such a motor must be switched in any case with one or two relays. One relay is enough if the relay has two switching contacts with NO and NC. If your relay has only one contact, then you need two relays.
Here is an example:
![0_1619507161339_drehrichtung_motor.jpg](../../assets/uploads/files/1619507161765-drehrichtung_motor.jpg)
Here you can find various connection diagrams for a pole changing circuit.
The sonoff 4ch switches at the relay 230V!!!
Therefore, sonoff 4ch definitely does not work, it must be in this case mandatory sonoff 4ch pro, because this switches potential free.
For this variant you need:
Raspberry with pimatic and mosquitto (mqtt)
mqtt-plugin
DC motor
sonoff 4ch pro flashed with tasmota
The advantage is that the communication runs over the Wifi and no cable connection between Raspberry and sonoff/tasmota is necessary.
As I wrote before you can also use a double relay board to the GPIO of the Raspberry.
For this other variant you need:
Raspberry with pimatic
homeduino-plugin
DC motor
double relay board like this
The communication runs via the cable between Raspberry and double relay board is necessary.
The advantage is that this variant is significantly cheaper.
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)