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

Thanos Direct Drive

Discussion in 'Direct Drive Wheels' started by Gadget999, Jun 5, 2020.

  1. OZHEAT

    OZHEAT Active Member

    Joined:
    Oct 26, 2015
    Messages:
    208
    Location:
    Australia
    Balance:
    2,458Coins
    Ratings:
    +105 / 6 / -0
    My Motion Simulator:
    3DOF, DC motor
    @Gadget999
    NO!!!!
    don't connect 12v directly
    you will need to use optoisolators
  2. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    ok something weird is going on

    running 12 power supply between pins 10 and 12 enables the servo

    but it also stops the core407v board communicating with the pc

    disconnecting the 12v and the core407v is working again

    I am going to stop for now and have a good think about how this is wired up
  3. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    do you think we have electrical noise from the power supply ?
  4. OZHEAT

    OZHEAT Active Member

    Joined:
    Oct 26, 2015
    Messages:
    208
    Location:
    Australia
    Balance:
    2,458Coins
    Ratings:
    +105 / 6 / -0
    My Motion Simulator:
    3DOF, DC motor
    @Gadget999
    you are trying to put 12v through the stm32' ports hopefully you haven't blown them.
    You need optocouplers so that you can drive the DI's
    3v signals from stm32 - opto input and 12v opto output to servo DI's

    Thats why I was suprised that that AASD drive accepeted 3v for its inputs...
  5. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    I disconnected the wire that was on pin 12 so the board was not connected


    You seem to know a lot about the mige servo driver, have you used them before ?
  6. Thanos

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

    Joined:
    Jul 6, 2017
    Messages:
    1,346
    Occupation:
    Electronics Engineer
    Location:
    United States
    Balance:
    2,693Coins
    Ratings:
    +1,043 / 9 / -0
    My Motion Simulator:
    AC motor, Motion platform, 4DOF, 6DOF
    The AASD has bypass pins for 5v logic input... they have additional pins with resistors for 12-24v power input.
  7. OZHEAT

    OZHEAT Active Member

    Joined:
    Oct 26, 2015
    Messages:
    208
    Location:
    Australia
    Balance:
    2,458Coins
    Ratings:
    +105 / 6 / -0
    My Motion Simulator:
    3DOF, DC motor
    @Gadget999
    You will have to forgive me as I might have led you the garden path...
    I was replying to you at 2am last night and i'm not the brightest after being awake 19hrs.

    However this morning on the way to the job, I saw a bit of clarity...

    The DIs just connect to optocouplers with a series resistor to limit the current to the IR LED, I can't remember what value they are but it would be sized for 24vdc@~20mA.
    You may be able to drive the IR LED with 3v3 or 5v,.
    The LED will still consume ~1.2v - 2.2v but due to the series resistor it will only pass less than 1mA of current, however it may be bright enough to activate the transistor on the optocoupler.
    The DI's inputs are sinking circuits so they are active low.

    I would suggest to test this out by doing the following:-
    If you have a female DB25 connector it would be easier, if not just use the TDD and remove the STM32f4 board.
    Try 3.3V power first and connect +ve to PIN 10 on the servo drive CN1.
    Apply 240VAC power to the servo drive, it should display SOFF or something like that meaning the servo drive is off.
    Now ground pin 12 of servo drive CN1, if it successfully works it will display now SOn, RdY or something like that.
    If it doesn't make a difference try 5VDC on PIN 10 and see if you get a result.
    If 5vDC doesn't work you will have to probably use a transistor or optocoupler to switch 12V

    If you are successful with 3.3v or 5v you can test the drive still without the STM32 by using a 1.5 battery to input to PIN 5 & 15 of the servo drive, it should activate the motor, then you can ground Pin 11(dir) and the motor should change direction.
    After you do these test successfully you can connect to the TDD board and insert the STM32 board.

    Sorry, that is all the time I got for now gotta eat lunch now....
  8. sedesa tatasa

    sedesa tatasa Member

    Joined:
    Jun 16, 2018
    Messages:
    60
    Balance:
    497Coins
    Ratings:
    +15 / 0 / -0
    @Thanos
    What are bypass pins for 5v logic input?

    @OZHEAT
    Pe11 seems to be used as a mere switch.
    hi=3v3=off, low=0v=sink=gnd=on
  9. OZHEAT

    OZHEAT Active Member

    Joined:
    Oct 26, 2015
    Messages:
    208
    Location:
    Australia
    Balance:
    2,458Coins
    Ratings:
    +105 / 6 / -0
    My Motion Simulator:
    3DOF, DC motor
    @sedesa tatasa
    Hmmm you are getting me confused now.....
    are you talking about the post above?
    If yes, isn't that what I just said? "The DI's inputs are sinking circuits so they are active low."
    Are you disagreeing or agreeing with me?

    The way I see it now is the DI inputs are buffered with optocouplers, the servo manual states that they require 12-24vdc to its pin 10 COM + (DI Power Supply).
    Looking at the connection diagram there is a 4k7 resistor in series to the opto, I take that as being the current limiting resistor which is sized for an voltage input of 12-24v.
    I don't know what opto is being used in the servo drive but I am hoping that 3v3 or 5vdc is enough to atleast drive the IR LED in the opto on enough to switch, hence the tests.
    After all an IR LED requires the least amount of forward voltage and current to light up compared to red...blue leds, also the IR led and light sensor in the opto is in a sealed package so ambient doesn't interfere.

    I don't know about what the manual says but to me, being that the anode being connected to +com you would require gnd or lower voltage than com+ to be supplied to the DI input for the LED to turn on, hence "active low".

    If you mean that it is ok to use 12v to com+, I pretty sure the stm32 can't handle 12v on it's ports.
    Even if it can, I don't see how the opto's led would be turned off being that gnd would forward voltage of 12v and @ 3v3 would still see a forward voltage of 8v7.
    Thats why I said if <=5v didn't work gadget would need to use a transistor or another opto.


    Yes I'd like to know about the "bypass pins" are and when he or pacemaker connected to them.
    Didn't have time to ask when I saw the comment...[/user]
  10. OZHEAT

    OZHEAT Active Member

    Joined:
    Oct 26, 2015
    Messages:
    208
    Location:
    Australia
    Balance:
    2,458Coins
    Ratings:
    +105 / 6 / -0
    My Motion Simulator:
    3DOF, DC motor
    No, unfortunately I haven't.
    I have only used 4 different brands, delta, panasonic SEW and 1 other brand 30 odd years ago.
    Both delta and SEW it was through a computer interface which makes it so much easier changing parameters and tuning than the clutzy front panel, i'm sure you know what I mean:mad:
    I'm not even in the automation industry although it could be argued that my industry is one of the biggest users of VFDs.
  11. Thanos

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

    Joined:
    Jul 6, 2017
    Messages:
    1,346
    Occupation:
    Electronics Engineer
    Location:
    United States
    Balance:
    2,693Coins
    Ratings:
    +1,043 / 9 / -0
    My Motion Simulator:
    AC motor, Motion platform, 4DOF, 6DOF
    It's rather simple. To enable the servo you need at least 5v, which I supply by the stm32f4:

    IMG_20200723_042651.jpg
    Or if are brave enough you can open the servo drive and change the 5k resistor to 2.2k resistor so it will work with 3.3v power.


    But you can use 3.3v on the outputs just fine as there is no limiting resistor (stm32 pull up).

    IMG_20200723_042616.jpg
  12. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    Ok so we can turn the servo om using 5v dc

    I have been able to do this using a 5v dc power supply

    However as soon as the servo powers on the mmos program looses communication with the board !

    This happens with only the ground wire connected !

    Is this electrical noise ?
  13. OZHEAT

    OZHEAT Active Member

    Joined:
    Oct 26, 2015
    Messages:
    208
    Location:
    Australia
    Balance:
    2,458Coins
    Ratings:
    +105 / 6 / -0
    My Motion Simulator:
    3DOF, DC motor
    @Gadget999
    How have you got the drive all connected, is it via the TDD or just the stm32?
    You may be drawing too much current from the USB port.

    PS I can't have another late night...
  14. Thanos

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

    Joined:
    Jul 6, 2017
    Messages:
    1,346
    Occupation:
    Electronics Engineer
    Location:
    United States
    Balance:
    2,693Coins
    Ratings:
    +1,043 / 9 / -0
    My Motion Simulator:
    AC motor, Motion platform, 4DOF, 6DOF
    Probably... I don't connect the system ground of the servo to the TDD (db25 connector shell). Only the negative side of the optocouplers which serves as "ground" or as better described 0v reference.
  15. OZHEAT

    OZHEAT Active Member

    Joined:
    Oct 26, 2015
    Messages:
    208
    Location:
    Australia
    Balance:
    2,458Coins
    Ratings:
    +105 / 6 / -0
    My Motion Simulator:
    3DOF, DC motor
    @Gadget999
    I'm going to let @Thanos deal with you seeing he is here now.
    After all your using his board.
    I gotta get some sleep.
    good luck
  16. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    I tried the board connected with only the encoder channels index,a,b

    again as soon as the servo is active the mmos program looses comms

    with the servo not activated the board is working fine - you can see the leds activated and you can measure the voltage on the torque pin

    perhaps I need a special shielded usb cable ( I might try a laptop running off battery power first)
  17. sedesa tatasa

    sedesa tatasa Member

    Joined:
    Jun 16, 2018
    Messages:
    60
    Balance:
    497Coins
    Ratings:
    +15 / 0 / -0
    @OZHEAT -Thats why I was suprised that that AASD drive accepeted 3v for its inputs...

    I thought you were misunderstanding that aasd opto is drived by 3v3.
  18. OZHEAT

    OZHEAT Active Member

    Joined:
    Oct 26, 2015
    Messages:
    208
    Location:
    Australia
    Balance:
    2,458Coins
    Ratings:
    +105 / 6 / -0
    My Motion Simulator:
    3DOF, DC motor
    @sedesa tatasa
    Actually if I say 3v instead of 3v3, the ST stm32f4 discovery board that I use has a 3v voltage regulator on it and I do realise some other manufacturers' stm32f4 board have 3v3 regulators.
    I also understand why 12-24vdc is used on the servo drive control signals.
    I have never tried to use 3-5v to drive servo controls signals and used optocouplers @24vdc output. I got several tubes of hcpl4506 optos on hand, so it is easier just to use them for me.
    I may not be a EE but I did complete a BEC when I was young.
  19. OZHEAT

    OZHEAT Active Member

    Joined:
    Oct 26, 2015
    Messages:
    208
    Location:
    Australia
    Balance:
    2,458Coins
    Ratings:
    +105 / 6 / -0
    My Motion Simulator:
    3DOF, DC motor
    @Gadget999
    I'm disappointed that Thanos is not really willing to help you...
    I'm willing to help you BUT if you want me to try help you, you gotta do it my way...
    I had never seen a mige servo drive before a couple of days ago and was trying as fast as I could to give you help and yes I gave some wrong pins and parameters.

    I realise now that the 2 manuals are for different versions of your servo drive, if your version is that of the first manual you posted it does not allow remapping of the DI like is does in the second manual.

    You are going to have to try run the servo standalone first... no computer, stm32, USB, TDD board or even steering wheel.
    Did you even try what I posted in #47?

    I must ask....
    Have you connected 240ac with 3 wires, active,neutral & EARTH to the servo drive?
    Is your 5v power supply ground insulated?
    Have you successfully even got the motor to turn yet?
    Can you get to parameter P3-2 NOT PA3-2 that will tell me if the DIs can be remapped.

    Can you get back to me as early as possible, you gotta to remember I am in Australia and not too keen on staying up in to the wee hours of the night waiting on you.

    If you don't want my help I understand but just tell me so.
  20. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    ok - connecting the mmos to a laptop on battery power has stopped the comms dropping out

    i will now try to get the wheel operating