The advantage of the TS' arrangement is it arguably provides better protection against potential large -ve spikes that may be present if the pump is an inductive load. If you go for the later arrangement I'd use a dual fast diode from 3.3v to GPIO to ground. BAV99 or similar.
Attachments
-
991.9 KB Views: 3

