use opamp as a comparator for | Electronics › Electronics › howto operate a 12 volt dc RELAY with 89C51 › use opamp as a comparator for March 4, 2012 at 9:16 am #7229 Mehtab AliParticipant use opamp as a comparator for driving the relay