For Lan Controller HW 3.7, 3.8
The tHAT2 overlay offers an additional 4 relay outputs in open collector standard, which are controlled from the PWM outputs. The board also has a RS485 converter to support Modbus. OUT1-4 relay outputs and supply voltage, analog inputs INPA1 and INPA2 as well as voltage 3.3V to supply sensors are also led out.
The overlay is available in version with IDC10 connectors for connecting a relay board.
To control outputs 6-9 you have to enable Mode ON/OFF for pwm outputs like on image below.