1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

AMC-AASD15A servo controller

Discussion in 'SimTools compatible interfaces' started by Thanos, Nov 6, 2019.

  1. ericRacer

    ericRacer You get old because you stop playing ! Gold Contributor

    Joined:
    Jun 11, 2009
    Messages:
    251
    Occupation:
    Pilot
    Location:
    Canada, Quebec
    Balance:
    949Coins
    Ratings:
    +147 / 2 / -0
    My Motion Simulator:
    3DOF, Arduino, Motion platform
    Hi @Thanos I'm building a gseat and I have a calibration problem with an actuator. I also have a 3dof platform with 3 actuators that work well, no calibration problem. I selected 3dof+tl+surge from the menu. The actuator that causes me problems is on output 4 of the AMC. The actuator works well except that when I cut the power supply (120v.) and reconnect the actuator it only turns 3 turns in one direction (without calibrating). On the other hand, if I connect it to output 5 of the AMC, it works correctly, it calibrates and go back in its place.
  2. Thanos

    Thanos Building the Future one AC Servo at a time... or 6

    Joined:
    Jul 6, 2017
    Messages:
    1,358
    Occupation:
    Electronics Engineer
    Location:
    United States
    Balance:
    2,773Coins
    Ratings:
    +1,051 / 9 / -0
    My Motion Simulator:
    AC motor, Motion platform, 4DOF, 6DOF
    Have you updated the firmware to the latest version v2.26 fix0?
    I just tried to replicate the issue, but all works as intended. Powering off and the powering back on the servo on DB25 port 4, fully retracts the actuator to calibrate and then moves to 50% parking position correctly (3dof+tl+surge setting). Did you try with another DB25 cable in case the one you are using is damaged?

    Also make sure to restore defaults in case some other setting you did causes conflict on the park function. After loading the new firmware, hold down the 'EXIT' button on the Thanos controller. While continuing to hold down the 'EXIT' button, press and release the "RESET" button to restore the default parameters. Now release the 'EXIT' button. This is needed to remove any incorrectly stored values from the epprom from the previous firmware as sometimes these get updated too. (Click here for video).

    For a detailed guide to update the firmware correctly, please refer here:
    https://www.simracingstudio.com/forum/motion-profiles-actuator/thanos-firmware-update-guide
    Last edited: Jun 1, 2022
  3. ericRacer

    ericRacer You get old because you stop playing ! Gold Contributor

    Joined:
    Jun 11, 2009
    Messages:
    251
    Occupation:
    Pilot
    Location:
    Canada, Quebec
    Balance:
    949Coins
    Ratings:
    +147 / 2 / -0
    My Motion Simulator:
    3DOF, Arduino, Motion platform
    Hi, sorry for the delay , i was away for works.

    Today I connected a fifth motor and the problem moved to output #5 and now #4 works fine.

    What I suspect... It is as if a virtual calibration switch closes as soon as I turn on the power and so the motor moves immediately by 50%.

    Later in the day I replaced my AMC board with my Flight sim board and everything works fine as expected. Then the problem comes from the AMC board themself.

    I will try it again later by re-installing the firmware.
  4. Thanos

    Thanos Building the Future one AC Servo at a time... or 6

    Joined:
    Jul 6, 2017
    Messages:
    1,358
    Occupation:
    Electronics Engineer
    Location:
    United States
    Balance:
    2,773Coins
    Ratings:
    +1,051 / 9 / -0
    My Motion Simulator:
    AC motor, Motion platform, 4DOF, 6DOF
    Maybe your actuators leadscrew slider have resistance and needs lubrication. I'd suggest to check if you can rotate the leadscrew by hand without resistance.

    And check if the DB25 male-male cables are shielded type. EMI could cause false signals during the calibration if not. Although the AMC-AASD15A controller ignores torque signals when not in calibration mode, an EMI spike could send a wrong pulse and calibrate prematurely.

    You can see what I mean here where the sensor used instead of torque has a LED indication:
  5. ericRacer

    ericRacer You get old because you stop playing ! Gold Contributor

    Joined:
    Jun 11, 2009
    Messages:
    251
    Occupation:
    Pilot
    Location:
    Canada, Quebec
    Balance:
    949Coins
    Ratings:
    +147 / 2 / -0
    My Motion Simulator:
    3DOF, Arduino, Motion platform
    I removed the engine, it is free.

    I tried with an other DB25 cable but nothing.
    Like i said everything works well with my other AMC board.

    I downloaded again the latest firmware .

    I'm pretty sure the problem is with the AMC board. I took the board alone and a single motor, I connect the DB25 cable alternately on each output 1-6 and at each output I see the "C" for calibration before the "P" of the park except at the output 5 that i see immeditely the "P" .

    i restored it severals times , i selected "all axis parked" to be sure. I am run out of idea.
    Last edited: Jun 10, 2022
  6. Thanos

    Thanos Building the Future one AC Servo at a time... or 6

    Joined:
    Jul 6, 2017
    Messages:
    1,358
    Occupation:
    Electronics Engineer
    Location:
    United States
    Balance:
    2,773Coins
    Ratings:
    +1,051 / 9 / -0
    My Motion Simulator:
    AC motor, Motion platform, 4DOF, 6DOF
    Hi,

    Some photos of the AMC-AASD15A so I can see its version and manufactured date, would help.

    The issue you described could be defect on the PCB, or just dirt deposit interacting with solder paste residue that maybe was not well cleaned during production.

    If anything, you can always send us privately photos or provide more information that could help assist more, with possible repair or replacement if needed. Use our contact form here.

    Thanks
    Thanos
    • Like Like x 1
  7. ericRacer

    ericRacer You get old because you stop playing ! Gold Contributor

    Joined:
    Jun 11, 2009
    Messages:
    251
    Occupation:
    Pilot
    Location:
    Canada, Quebec
    Balance:
    949Coins
    Ratings:
    +147 / 2 / -0
    My Motion Simulator:
    3DOF, Arduino, Motion platform
    I applied but was unable to attach my photo and video...
    IMG_0090.JPG

    https://www.youtube.com/shorts/KcegMm84-hQ
    Last edited: Jun 14, 2022
  8. Thanos

    Thanos Building the Future one AC Servo at a time... or 6

    Joined:
    Jul 6, 2017
    Messages:
    1,358
    Occupation:
    Electronics Engineer
    Location:
    United States
    Balance:
    2,773Coins
    Ratings:
    +1,051 / 9 / -0
    My Motion Simulator:
    AC motor, Motion platform, 4DOF, 6DOF
    I can't see the video, its private, perhaps if you could set it as unlisted...

    I'll be answering back to your email regarding replacement perhaps. I see you may have two of these controllers? Both show same issue or just this one?

    Thanks
    Thanos
  9. ericRacer

    ericRacer You get old because you stop playing ! Gold Contributor

    Joined:
    Jun 11, 2009
    Messages:
    251
    Occupation:
    Pilot
    Location:
    Canada, Quebec
    Balance:
    949Coins
    Ratings:
    +147 / 2 / -0
    My Motion Simulator:
    3DOF, Arduino, Motion platform
    Thanks for your help, it's appreciated
  10. Lebois

    Lebois (maybe I am wrong, but who knows...)

    Joined:
    Dec 10, 2018
    Messages:
    351
    Occupation:
    Math teacher
    Location:
    France
    Balance:
    2,551Coins
    Ratings:
    +207 / 2 / -0
    My Motion Simulator:
    2DOF
    Hi Cubexxx. I am trying to use a 80st M02430 to do a seatbelt but I am strugling :/ I tried to send analog signal from an arduino Due, and also basic pwm signals from an Arduino Uno without sucess.
    With the arduino Uno, the motor remains idle until we go above analogwrite(128). From there the motors starts to spin at the same speed even if the values are higher...
    The wiring is as follow :
    AASD - Arduino
    COM(9) - GND
    Vref(25) - A0
    AGND(13) - GND

    PN002 is 0 (torque mode)

    any idea ?
  11. Thanos

    Thanos Building the Future one AC Servo at a time... or 6

    Joined:
    Jul 6, 2017
    Messages:
    1,358
    Occupation:
    Electronics Engineer
    Location:
    United States
    Balance:
    2,773Coins
    Ratings:
    +1,051 / 9 / -0
    My Motion Simulator:
    AC motor, Motion platform, 4DOF, 6DOF
    PWM is not analog... when you use analogwrite, its actually sending PWM pulses 0 or 5v...
    • Informative Informative x 1
  12. Lebois

    Lebois (maybe I am wrong, but who knows...)

    Joined:
    Dec 10, 2018
    Messages:
    351
    Occupation:
    Math teacher
    Location:
    France
    Balance:
    2,551Coins
    Ratings:
    +207 / 2 / -0
    My Motion Simulator:
    2DOF
    Even with the Due ? I tried analogWrite(DAC0,i); (with i from 0 to 4000).
  13. Thanos

    Thanos Building the Future one AC Servo at a time... or 6

    Joined:
    Jul 6, 2017
    Messages:
    1,358
    Occupation:
    Electronics Engineer
    Location:
    United States
    Balance:
    2,773Coins
    Ratings:
    +1,051 / 9 / -0
    My Motion Simulator:
    AC motor, Motion platform, 4DOF, 6DOF
    The Due DAC is unbuffered analog voltage low impedance. To interface to a circuit like a servo drive you NEED Op-Amp buffer circuit!!
    • Informative Informative x 2
    • Like Like x 1
  14. Lebois

    Lebois (maybe I am wrong, but who knows...)

    Joined:
    Dec 10, 2018
    Messages:
    351
    Occupation:
    Math teacher
    Location:
    France
    Balance:
    2,551Coins
    Ratings:
    +207 / 2 / -0
    My Motion Simulator:
    2DOF
    Would you have an amp to recommend @Thanos ? @cubexxx what are you using ?
  15. Thanos

    Thanos Building the Future one AC Servo at a time... or 6

    Joined:
    Jul 6, 2017
    Messages:
    1,358
    Occupation:
    Electronics Engineer
    Location:
    United States
    Balance:
    2,773Coins
    Ratings:
    +1,051 / 9 / -0
    My Motion Simulator:
    AC motor, Motion platform, 4DOF, 6DOF
    I wouldn't know, depends on what impedance the servo drive has and the voltages. If it needs negative voltage for negative torque (reverse direction), it becomes complicated.

    A few years back I had to build a -11v to +11v circuit for a servo driver, for analog speed control for the old AMC controller, which could be possibly be used for torque as well. These rail to rail op-amp that I used back then are not in stock anymore (victims of the chip shortage as it seems):

    http://motionsim.blogspot.com/2018/02/using-linear-ac-servomotor-actuators.html
    Last edited: Jun 27, 2022
  16. Lebois

    Lebois (maybe I am wrong, but who knows...)

    Joined:
    Dec 10, 2018
    Messages:
    351
    Occupation:
    Math teacher
    Location:
    France
    Balance:
    2,551Coins
    Ratings:
    +207 / 2 / -0
    My Motion Simulator:
    2DOF
    strange... there is no info in the documentation on what the signal should be...
    I did test with a MCP4725 today but without any sucess...
  17. cubexxx

    cubexxx Member

    Joined:
    Oct 4, 2019
    Messages:
    69
    Balance:
    538Coins
    Ratings:
    +41 / 0 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino, 4DOF
    I did not use any amp. The servo driver manual shows an input impedance of 10k for the analog voltage input (pin 25) and I read somewhere that the due can deliver 3mA at the dac output, so that's enough (voltage range of the due dac is 0.55V - 2.75V). Also you can use driver params Pn189/190 to map that dac output range to the desired torque range. Of course you can use an op-amp to extend the range, but I could achieve 0-max torque without an op-amp (example of using an op-amp is shown here )
    • Informative Informative x 1
    Last edited: Jun 28, 2022
  18. Lebois

    Lebois (maybe I am wrong, but who knows...)

    Joined:
    Dec 10, 2018
    Messages:
    351
    Occupation:
    Math teacher
    Location:
    France
    Balance:
    2,551Coins
    Ratings:
    +207 / 2 / -0
    My Motion Simulator:
    2DOF
    Thanks !
    Do the wiring seems ok to you ?
    AASD - Arduino
    COM(9) - GND
    Vref(25) - A0
    AGND(13) - GND

    And the code ?
    void setup() {
    delay(2000);
    Serial.begin(9600);
    analogWriteResolution(12);
    pinMode(DAC0, OUTPUT);
    }
    void loop() {
    for (int i=0; i<4000;i++){
    analogWrite(DAC0,i);
    Serial.println(i);
    delay(2);
    }
    for (int i=0; i<4000;i++){
    analogWrite(DAC0,4000-i);
    Serial.println(4000-i);
    delay(2);
    }
    }

    EDIT : i just tried to control the servo with a potentiometer, and it does work
    Last edited: Jun 28, 2022
  19. Lebois

    Lebois (maybe I am wrong, but who knows...)

    Joined:
    Dec 10, 2018
    Messages:
    351
    Occupation:
    Math teacher
    Location:
    France
    Balance:
    2,551Coins
    Ratings:
    +207 / 2 / -0
    My Motion Simulator:
    2DOF
    I did more tests. It looks like it was missing a resistor... Now the function to read the serial from FlyPt doesn't seem to work... I am using the same code as for my actuators :
    Code:
    void SerialReaderC() {       // This function is the work of Sirnoname. FlyPt output : P<Axis1a???>, Data bits : 10 bits, Parity : None, stop bits : 1
      while (Serial.available())
      {
        if (buffercount == 0)
        {
          buffer = Serial.read();
    
          if (buffer != 'P') {
            buffercount = 0; // "P" is the marquer. If we read P, the next data is Motor1
          } else {
            buffercount = 1;
          }
        }
        else   //  if(buffercount>=1)
        {
          buffer = Serial.read();
          commandbuffer[buffercount-1] = buffer; // The first value next to "P" is saved in commandbuffer in the place "buffercount"
          buffercount++;
          if (buffercount >= 3) {
              m1Target = commandbuffer[0] * 256 + commandbuffer[1];
              buffercount = 0;
            break;
          }
        }
      }
    }
    Is there something specific to the Arduino Due ?
  20. Thanos

    Thanos Building the Future one AC Servo at a time... or 6

    Joined:
    Jul 6, 2017
    Messages:
    1,358
    Occupation:
    Electronics Engineer
    Location:
    United States
    Balance:
    2,773Coins
    Ratings:
    +1,051 / 9 / -0
    My Motion Simulator:
    AC motor, Motion platform, 4DOF, 6DOF
    Back to topic, I was asked if you need to power off the servo drives before connecting to AMC-AASD15A controller, or which order you need to power up things... It doesn't matter. Automatic hotplug detection and activation prevents problems, as the motors will move only when all participating systems are ready:

    • Like Like x 1
    Last edited: Jul 1, 2022