GM stepper arduino analog input explanation

Поділитися
Вставка
  • Опубліковано 19 бер 2020
  • Stupid auto-rotate on phone is messed up.

КОМЕНТАРІ • 6

  • @slopoke22
    @slopoke22 4 роки тому

    Good vid

  • @Enigma758
    @Enigma758 2 роки тому

    Do you know how much current each coil draws? It looks like you're able to drive the coils directly from the Arduino pins with no buffering.

    • @aknovaman
      @aknovaman  2 роки тому +1

      it's under the output limits of the arduino and yes it's directly driven.

  • @codymaasen1
    @codymaasen1 3 роки тому

    Awesome! Just wish you moved the camera to more easily see the coding. Are you going to post the code anywhere?

    • @aknovaman
      @aknovaman  3 роки тому +2

      /*------------------------------------------------------
      Gauge_Pot01
      Arduining.com 10 July 2011
      Direct driving of Miniature Stepper Motor used as an indicator
      drive for dashboard instrumentation.
      Hardware:
      -Arduino UNO.
      -Potentiometer.
      -Stepper Motor VID29-05P (Can be directly driven by MCU):
      -Low current consumption: 2) { //if diference is greater than 2 steps.
      if ((val - pos) > 0) {
      stepper.step(-1); // move one step to the left.
      pos++;
      }
      // delay(25);
      if ((val - pos) < 0) {
      stepper.step(1); // move one step to the right.
      pos--;
      }
      // delay(25);
      }
      Serial.println(pos); //for debuging...
      // Serial.println(val);
      // delay(100);
      }

    • @codymaasen1
      @codymaasen1 3 роки тому +1

      @@aknovaman Thank you sir!