#include <Arduino.h>

const byte COIL_PINS[] = {11, 10, 9, 8}; // IN1, IN2, IN3, IN4 на платі ULN2003
const unsigned long PHASE_MS = 500; // Повільно, щоб побачити кожну обмотку

void setup() {
  for (byte i = 0; i < 4; i++) {
    pinMode(COIL_PINS[i], OUTPUT);
  }

  Serial.begin(115200);
}

void loop() {
  for (byte coil = 0; coil < 4; coil++) {
    for (byte i = 0; i < 4; i++) {
      digitalWrite(COIL_PINS[i], i == coil ? HIGH : LOW); // Струм лише в одній обмотці
    }

    Serial.print("Coil IN");
    Serial.println(coil + 1);
    delay(PHASE_MS);
  }
}
