Birkaç link bırakayım.

https://tutorials-raspberrypi.com/ra...itch-via-gpio/

https://electronicshobbyists.com/con...relay-control/

https://www.instructables.com/id/Con...rry-Pi-and-a-/