Page 1 of 1

Please answer the question below. Thankyou :)

Posted: Fri May 20, 2022 12:07 pm
by answerhappygod
Please answer the question below. Thankyou :)
Please Answer The Question Below Thankyou 1
Please Answer The Question Below Thankyou 1 (77.44 KiB) Viewed 30 times
bu = int pina = 13; // the pin connected to terminal A int pina bar = 12; // the pin connected to terminal A- int pins = 11; Z/ the pin connected to terminal B int pins bar 10; // the pin connected to terminal B- int Segi int x = 3000; // Provide delay 3ms for each firing sequence. int Al] = {HIGH, LOW, LOW, LOW); int A barl] = {LOW, HIGH, LOW, LOW); int B[] {LOW, LOW, HIGH, LOW}; int B bar[] = {LOW, LOW, LOW, HIGH); = void setup() { pinMode(pinA, OUTPUT); pinMode(pina bar,OUTPUT); pinMode(pinB.QUTPUT); pinMode (pins bar, OUTPUT); } void loop() { digitalWrite(pina, A [Seq]); digitalWrite(pink bar Abar [Seg]); digitalWrite(pin, B[Seg]); digitalWrite(pinB bar, B. bar(Seq]); AAN Seq++; if (Seq ==3){ Seq = 0; } delayMicroseconds (x); } Modify a progam code (above) such that the stepper motor rotate in reverse direction.