I am trying to use my low cost aliexpress relay to power a 220V motor
I use webiopi to control GPIO
My "Raspberry Pi 3 Model B Plus Rev 1.3" is powered with a standard wall charger (3A)
I plug VCC on +5V pin of Rpi
I plug GND to 0V on Rpi
I plug IN to PIN 40 of the GPIO (mode output)
Whatever I put on PIN 40 "0" or "1", the relay stay ON (motor running)
But If I put PIN 40 mode to INPUT mode instead of OUTPUT mode, the relay switch and I get the motor off.
Why it's not working when mode is output on the PIN ?
Some experiments Vcc on +5V and GND on 0V, IN is the relay IN PIN that I had try to connect on raspberry Pi PIN :
Code: Select all
| IN | Vcc (mA) | IN (mA) | Switch status | | Not plug | 3.0 mA | N/A | OFF | | Pin 40 mode in | 3.0 mA | 0.0 mA | OFF | | Pin 40 mode out 0 | 67.0 mA | -4.0 mA | ON | | Pin 40 mode out 1 | 63.0 mA | -0.7 mA | ON | | Plug on 0V | 70.0 mA | 4.0 mA | ON | | Plug on 5V | 3.0 mA | 0.0 mA | OFF |