5 Replies Latest reply on Jan 27, 2015 1:58 PM by annu_shah

    Motor driver Conrad-Miniatur-Fahrtenregler not working with intel galileo

    annu_shah

      I am using this this motor driver "Conrad-Miniatur-Fahrtenregler" and following is the datasheet http://corsair.flugmodellbau.de/files/elektron/245232~1.PDF.

      i have attached one end of the driver to 5v and board pin and the other end to 15v and motor.

      I have been giving it 0-255 values in pwm but there is no change in the speed or direction of the motor.I am attaching my code with this email.

      I will be grateful for your help

      This is my code

       

       

       

       

       

      #include <Servo.h>

       

       

      Servo myservoM;  // create servo object to control a servo

       

       

       

       

      void setup()

      {

        myservoM.attach(9);  // attaches the servo on pin 9 to the servo object

        Serial.begin(9600);

      }

       

       

      void loop()

      {

        Serial.println("start");

        for(int k=10;k>0;k--){

          Serial.println(k);

          delay(1000);

        }

         

        for (int j=88;j<92;j++){

          myservoM.write(j);

          Serial.println(j);

          delay(2500);

        }

        Serial.println("Start Turning");

        for (int i=0;i<255;i++){

         

               // scale it to use it with the servo (value between 0 and 180)

          myservoM.write(i);                  // sets the servo position according to the scaled value

          Serial.println(i);

          delay(10000);

        }   // waits for the servo to get there

      }