Various Python Scripts for PI
Using IRF520 0-24V MOS Driver Module
Example -
OR
Connect DC input (max 24v) to VIN & GND
Connect load to output V+ & V-
Connect GPIO pin 2 to SIG
Connect GPIO GND pin(6 or any GND pin)
Connect 3.3v Pin (1) from RPI to VCC on Relay
Connect Gnd to Gnd
Connect GPIO BCM pin 4 (actual pin 7)
See vid here for wiring caution shows 5v, wiring is same apart from use 3.3v as above from pin 1
Connect Load to to NO or NC & Common