Driving Relays from GPIO pins.

Usually the GPIO pins works with 3.3V and low current sink/source capabilities.

To drive a relay the following circuits are recommended:

transistor-relay.png

opto-relay.png

FreeBSD/GPIO

GPIO framework for FreeBSD. GPIO

GPIO-hardware (last edited 2019-09-07T07:49:43+0000 by anonymous)