L272M Dual Power Operational Amplifiers

used products:

1. Arduino UNO
2. L272M

Arduino:

#define pA1 2 #define pA2 3 #define pB1 4 #define pB2 5 void setup() { pinMode(pA1, OUTPUT); pinMode(pA2, OUTPUT); pinMode(pB1, OUTPUT); pinMode(pB2, OUTPUT); } void loop() { digitalWrite(pA1, HIGH); digitalWrite(pB2, LOW); delay(2000); digitalWrite(pA1, LOW); digitalWrite(pB2, LOW); delay(500); digitalWrite(pA1, LOW); digitalWrite(pB2, HIGH); delay(2000); digitalWrite(pA1, LOW); digitalWrite(pB2, LOW); delay(500); }