Controlling Servo with electronic data track

Has anybody successfully controlled a servo with a

Comments

  • edited March 2016

    Has anybody successfully controlled a servo with a electronic data track? I managed to connect to the Arduino, auto-program it but had so far no luck in controlling the servo (connected to pin 9) with the electronic data track. Wondered if somebody has been able to control a servo and can help. Thanks
  • Hello Lauschmann,

    Millumin autoprogram function is a basic sketch that just reads some inputs and send them to Millumin.

    Controlling a servo is not covered by the "auto program" function.

    You can use this sketch to use with a timeline :

    #include <Servo.h>
    Servo myservo;
    boolean isOpen = false;

    void setup()
    {
      Serial.begin(57600);
      myservo.attach(9);
    }

    void loop()
    {
      if (Serial.available() > 0) 
      {
        myservo.write(Serial.read());
      }
    }

    In that case, the "pin" selector of the timeline is effect less. 

    Regards
    AntoineM*
  • Thanks, works perfectly.
  • And a final question: Is it possible to run several Servos and control them with individual data tracks? Thanks Torsten
  • hello @Lauschmann,

    Complete documentation and tutorials will come for that functionality with a future release.
    Thanks for your patience.

    Regards

    AntoineM*
Sign In or Register to comment.