DIY Servo controller - Page 105

Page 105 of 109 FirstFirst ... 55595102103104105106107108 ... LastLast
Results 2,081 to 2,100 of 2170

Thread: DIY Servo controller

  1. #2081
    Member
    Join Date
    Dec 2005
    Location
    CANADA
    Posts
    231
    Downloads
    4
    Uploads
    0

    Default

    Quote Originally Posted by HJozsi View Post
    Hi John,

    on the picture I can see the original UHU board (not the HP UHU)...
    It is really more stable than Embedded, but I had reseting problems with big motors ( 136V 15 Amp 1kW)...
    The real stable one is the HP UHU, I had never proc reset, despite I pushed the Reset button ... With 160V, 23 A ...

    Regards,
    Jozsef

    Hi Jozsef,

    Yes. That's the original UHU which I had ordered as a kit from Manjeet before I got the HP UHUs. I will be using the HP UHU's on my mill.

    BTW, has anyone heard from Manjeet lately. Doesn't reply to emails.

    John



  2. #2082
    Registered
    Join Date
    Jan 2005
    Location
    India
    Posts
    1050
    Downloads
    0
    Uploads
    0

    Default

    Oh, manjeet is alive and kicking, like every one else he has his other main business of packaging machinery and mostly busy with that. LAst time I called him he was busy getting stuff for a cnc lathe conversion.

    RGDS
    Irfan



  3. #2083
    Registered rokag3's Avatar
    Join Date
    Mar 2007
    Location
    greece
    Posts
    574
    Downloads
    0
    Uploads
    0

    Default

    Hello,
    my goal is to switch off the power of the servo and short circuit the motor with a shunt (5ohms)
    i am going to use a relay with 3 contacts
    2 wil be use to bring the power on sw1 et sw2 and one to disconect the shunt sw3
    so when no energised (error state or no 15 V) the situation of the relay will be sw1+sw2 off sw3 on
    if energised i will have sw1+sw2 on sw3 off
    since they work on the same relay i will never meet the situation sw1+sw2 on sw3 on a 0.1microF will be put on sw3

    my relay(24Vdc 390 ohms) (3*240v 10 A) will be driven with a darlington bd680
    in order to take no risk with the pc i want to connect the base of the darlington through an optobridge
    the power of the relay will be given by the 15 v of the logic and a diode of protection as been added

    did anyone can make a little electronic shema do make the job?
    efaristo poly
    lucien



  4. #2084
    Member
    Join Date
    Dec 2005
    Location
    CANADA
    Posts
    231
    Downloads
    4
    Uploads
    0

    Default

    Quote Originally Posted by rokag3 View Post
    Hello,
    my goal is to switch off the power of the servo and short circuit the motor with a shunt (5ohms)efaristo poly
    lucien
    Hi Lucien,

    Why do you want to put a shunt across the motor? is it to try and hold the motors in position?

    It might be better to use a 4 pole relay and the 4th NC pole to place a small high wattage load resistor across the power supply to drain the capacitors as quickly as possible.

    John



  5. #2085
    Registered rokag3's Avatar
    Join Date
    Mar 2007
    Location
    greece
    Posts
    574
    Downloads
    0
    Uploads
    0

    Default

    hello john

    we have a system to discharge the capacitor
    the problem is in case of errors the power stage is disconected then the dump circuit is also disconected so the motor work with the inertia (huge in my case) that's why i need another circuit to dump that the shunt will be placed between armature+ and armature-



  6. #2086
    Registered rokag3's Avatar
    Join Date
    Mar 2007
    Location
    greece
    Posts
    574
    Downloads
    0
    Uploads
    0

    Default

    Having a relay 24v energised with 15V i think that i will have 100 msec delay
    sw1 and sw2 will swich only the +
    maybe some one solve this problems in a better way



  7. #2087
    Member
    Join Date
    Aug 2006
    Location
    USA
    Posts
    2758
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by rokag3 View Post
    Having a relay 24v energised with 15V i think that i will have 100 msec delay
    sw1 and sw2 will swich only the +
    maybe some one solve this problems in a better way
    Some contactors have the possibility to make pairs of contacts make or break before the rest of the contacts, you can use that feature in order to make sure the load resistor contacts break a few ms before the other contacts make.

    The brake resistor is better added on the power supply side, that way it will discharge the capacitors and brake the motor at the same time, just make the contacts of the relay short circuit the clamp circuit's Mosfet drain and source when it is not energized.



  8. #2088
    Member
    Join Date
    Aug 2006
    Location
    USA
    Posts
    2758
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by kreutz View Post
    I decided to post the code I am going to develop for the dsPic33 processor as "open source". Don't start asking for it, because 99% of it is not implemented yet, and I need to make sure it works without bugs before posting the code.

    I want to make clear that what I am going to do is to offer a basic framework where other could add/modify features as per their own needs, the open code will implement a basic PID with speed and acceleration feed-forward and integral saturation, basic safety, quadrature Encoder, and step/dir interface.

    My own vision of the "open source", is that is is not supposed to be a canned solution, but something to learn from, and help those interested into work on their own solutions.

    Support will be very limited, because I need to move into other things and will not stay chained to that project.

    The compiled code will be used on the upgrade (processor daughter-board) for the current HP UHU revision, the PC tuning interface will continue to be a simple terminal program UHU style, will probably be compatible with English UHU commands, except for a few new ones... Of course, it will be used with the current HP UHU hardware.

    Don't expect to see sophisticated programing tricks or anything fancy because I am on the process of learning how to make dsPics work, I have not used them before.

    Thanks,

    Kreutz.
    Hey Guys!!

    I found out somebody has done just that, so the free code is already available for those interested into developing their own solution.

    Here is the link.

    Just because of professional respect to the author, I am not going to duplicate that work. I took a look to the code and it will be really easily ported to other dsPIC30, more drastic modifications will be necessary in order to make it work on a dsPIC33.

    Converting from PWM-direction output into Locked Anti-phase require only to add an external logic chip (easy fix), but is also easily accomplished by modifying the code.



  9. #2089
    Registered rokag3's Avatar
    Join Date
    Mar 2007
    Location
    greece
    Posts
    574
    Downloads
    0
    Uploads
    0

    Default

    hello Mr kreutz

    As i told before I have a dump system (the one of mariss from gecko) it work fine as you could see on the video (the flash light when decelerating)

    The problem is when there is an error as you told me the power stage is shutoff and then there is nothing to brake the motor becaus the brake is on the side of the power supply so in case of error my motor run free wheel and on my case it's a huge amount of energy.
    My problem is that i want to use on error in/out to drive an optocoupler i find out that if i put the optocoupler directly to the error i generate an error state so how can i drive an optocoupler with this signal without making it changing of state
    after the phototransistor of the optocoupler will attack the base of the darlington and energised the relay
    i make some test with the relay it never can be in conflict
    thank you



  10. #2090
    Member
    Join Date
    Aug 2006
    Location
    USA
    Posts
    2758
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by rokag3 View Post
    hello Mr kreutz

    As i told before I have a dump system (the one of mariss from gecko) it work fine as you could see on the video (the flash light when decelerating)

    The problem is when there is an error as you told me the power stage is shutoff and then there is nothing to brake the motor becaus the brake is on the side of the power supply so in case of error my motor run free wheel and on my case it's a huge amount of energy.
    My problem is that i want to use on error in/out to drive an optocoupler i find out that if i put the optocoupler directly to the error i generate an error state so how can i drive an optocoupler with this signal without making it changing of state
    after the phototransistor of the optocoupler will attack the base of the darlington and energised the relay
    i make some test with the relay it never can be in conflict
    thank you
    Hello Lucien

    If you make use of the error signal to shutdown the high voltage power supply (from the primary side of the transformer), and keep the clamping circuit ON, it will discharge the capacitors, and at the same time, will also brake the motor. Because the anti-parallel diodes on the Mosfets will act as a full bridge rectifier and the motor energy will be transferred into the power supply capacitors, even if the power supply is zero volts, so the resistor will be effectively across the motor terminals (with the equivalent of two diode forward voltage in series). Do a test, it should work.

    Regards,

    Kreutz.



  11. #2091
    Registered rokag3's Avatar
    Join Date
    Mar 2007
    Location
    greece
    Posts
    574
    Downloads
    0
    Uploads
    0

    Default

    yes i will test but back to my question how to use this error signal without disturbing it



  12. #2092
    Member
    Join Date
    Dec 2005
    Location
    CANADA
    Posts
    231
    Downloads
    4
    Uploads
    0

    Default

    Quote Originally Posted by kreutz View Post
    Hello Lucien

    If you make use of the error signal to shutdown the high voltage power supply (from the primary side of the transformer), and keep the clamping circuit ON, it will discharge the capacitors, and at the same time, will also brake the motor. Because the anti-parallel diodes on the Mosfets will act as a full bridge rectifier and the motor energy will be transferred into the power supply capacitors, even if the power supply is zero volts, so the resistor will be effectively across the motor terminals (with the equivalent of two diode forward voltage in series). Do a test, it should work.

    Regards,

    Kreutz.
    Hi,

    This weekend I'm laying out a small circuit board that does almost exactly that. It trips on the over voltage turning on a FET connected to the lightbulb or load resistor. Additionally, it has an optically coupled input connected to the power supply AC side before the bridge.

    If power goes away (AC power drops out) the circuit also turns on the FET to drain the caps until the voltage drops out low enough to no longer turn on the FET.

    Haven't tried it yet but I have some other proto circuit boards going to be made so I thought I'd just add this one.

    Alternatively, just add that relay powered by the same AC that drives the power supply and use it to short the power supply with a dump resistor. Won't do over voltage protection but will dump the caps and load the motor.

    John



  13. #2093
    Registered rokag3's Avatar
    Join Date
    Mar 2007
    Location
    greece
    Posts
    574
    Downloads
    0
    Uploads
    0

    Default

    Will it be driven by the error signal ?



  14. #2094
    Member
    Join Date
    Aug 2006
    Location
    USA
    Posts
    2758
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by rokag3 View Post
    yes i will test but back to my question how to use this error signal without disturbing it
    The error signal will output a logic Low on the EMG-Stop In/Out terminal when the drive is in error state, you can use that signal externally to disable the power ON relay for the motor voltage power transformer. A TTL or CMOS gate input attached to that terminal will not disturb it.

    Kreutz.

    Last edited by kreutz; 06-14-2008 at 11:11 PM.


  15. #2095
    Registered rokag3's Avatar
    Join Date
    Mar 2007
    Location
    greece
    Posts
    574
    Downloads
    0
    Uploads
    0

    Default

    i will try
    thank you



  16. #2096
    Member
    Join Date
    Dec 2005
    Location
    CANADA
    Posts
    231
    Downloads
    4
    Uploads
    0

    Default

    Quote Originally Posted by kreutz View Post
    Hey Guys!!

    I found out somebody has done just that, so the free code is already available for those interested into developing their own solution.

    Here is the link.

    Just because of professional respect to the author, I am not going to duplicate that work. I took a look to the code and it will be really easily ported to other dsPIC30, more drastic modifications will be necessary in order to make it work on a dsPIC33.

    Converting from PWM-direction output into Locked Anti-phase require only to add an external logic chip (easy fix), but is also easily accomplished by modifying the code.

    Must be a Software Engineer's lot in life to look at someone else's code and find fault. I'm sure it will happen with the Electronic Lead Screw once I release it.

    Nice to see this DC Servo PID code is for a 3010 which is what I have on my dsPIC demo board and have ported a basic ELS to. So I've already got an application that does step/dir output.

    A couple of things about the code though. Floating point code inside the interrupt routine; very slow even with a dsPIC. Variables that are initialized over and over again each time the function is called. It also uses a quadrature input rather than step and direction and the PWM code is specific to the hardware rather than 0% to +/-100% and then code to create specific drive for the hardware.

    I think the code will need a bit of work. Still, it might be fun.

    John



  17. #2097
    Member
    Join Date
    Aug 2006
    Location
    USA
    Posts
    2758
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by jcdammeyer View Post
    Must be a Software Engineer's lot in life to look at someone else's code and find fault. I'm sure it will happen with the Electronic Lead Screw once I release it.

    Nice to see this DC Servo PID code is for a 3010 which is what I have on my dsPIC demo board and have ported a basic ELS to. So I've already got an application that does step/dir output.

    A couple of things about the code though. Floating point code inside the interrupt routine; very slow even with a dsPIC. Variables that are initialized over and over again each time the function is called. It also uses a quadrature input rather than step and direction and the PWM code is specific to the hardware rather than 0% to +/-100% and then code to create specific drive for the hardware.

    I think the code will need a bit of work. Still, it might be fun.

    John
    Actually the code was written for a dsPIC30F4012, reading the code is easy because it is relatively well commented . In order to be used on another circuit it will require a few modifications.

    The quadrature input code (for EMC2) will work fine with Step-Dir too, but could be simplified.

    The PID algorithm is based on the EMC2's, I don't like it in floating point either, but it seems to work on the author's prototype, even at less than 30 MIPS. The PWM output was designed for his OPamp based power stage, so that approach will have to be modified a little. I think that the author originally wanted to use it on a simple serial command based interface, instead of the step/dir or quadrature input, so the code uses parameters expressed in measuring units instead of normalized parameters.

    As it is, it won't compile without a lot of warnings/errors, it seems that the original compiler was an early version, and strict compliant C code was not enforced, but that is also easy to solve.

    I abandoned the floating point PID, for a Q15 fixed point, took a look at Microchip's DSP library PID function, and decided that it is a complete lost of time, it was made for (benchmarking) marketing purposes, and will never work on a serious circuit because of the lack of integral saturation. Too simplistic.

    Now I am working on a protoboard mounted simple evaluation board. My dsPIC33 requires 3.3v power supply and the I/O current handling is limited to 4 ma maximum, so buffering/translation is required in order to drive the original LEDs and opto-couplers, specially the circuit connected to pin 17 of the Atmel chip on the original HP UHU . Some inputs are 5V compliant, some will require extra protection in order to be used on the current HP UHU board without modification. RS-232 interface will require a 3.3V driver, or input voltage conditioning on the Rx input...

    Compiled C code with MPLAB C30 (student version 3.10b) is bloated, at least with no optimization, haven't tried to optimize yet.

    Kreutz.



  18. #2098
    Member
    Join Date
    Dec 2005
    Location
    CANADA
    Posts
    231
    Downloads
    4
    Uploads
    0

    Default

    Quote Originally Posted by kreutz View Post
    Actually the code was written for a dsPIC30F4012, reading the code is easy because it is relatively well commented . In order to be used on another circuit it will require a few modifications.
    Oops. Yoiu're right. I was looking at the comments in main.c which specified the 3010.

    Quote Originally Posted by kreutz View Post
    The PID algorithm is based on the EMC2's, I don't like it in floating point either, but it seems to work on the author's prototype, even at less than 30 MIPS. The PWM output was designed for his OPamp based power stage, so that approach will have to be modified a little. I think that the author originally wanted to use it on a simple serial command based interface, instead of the step/dir or quadrature input, so the code uses parameters expressed in measuring units instead of normalized parameters..
    That's the feeling I got from it too.

    Quote Originally Posted by kreutz View Post
    As it is, it won't compile without a lot of warnings/errors, it seems that the original compiler was an early version, and strict compliant C code was not enforced, but that is also easy to solve.
    Not that bad with the optimizing compiler.

    Total program memory used (bytes): 0x5d66 (23910) 48%
    Quote Originally Posted by kreutz View Post
    I abandoned the floating point PID, for a Q15 fixed point,

    Now I am working on a protoboard mounted simple evaluation board. Compiled C code with MPLAB C30 (student version 3.10b) is bloated, at least with no optimization, haven't tried to optimize yet.

    Kreutz.
    I think you'll finish way before I do since for me it's more of a back burner project. If you want to compile it with the full optimizing compiler for checking code size just send me a zip.

    John



  19. #2099
    Member
    Join Date
    Aug 2006
    Location
    USA
    Posts
    2758
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by jcdammeyer View Post
    Oops. Yoiu're right. I was looking at the comments in main.c which specified the 3010.



    That's the feeling I got from it too.



    Not that bad with the optimizing compiler.

    Total program memory used (bytes): 0x5d66 (23910) 48%


    I think you'll finish way before I do since for me it's more of a back burner project. If you want to compile it with the full optimizing compiler for checking code size just send me a zip.

    John
    Thanks, I will send it when ready...

    Kreutz.



  20. #2100
    Registered
    Join Date
    Mar 2008
    Location
    england
    Posts
    20
    Downloads
    0
    Uploads
    0

    Default

    hello ,
    i have just started to test my first UHU HP board, the serial comms are fine i think !!
    am able to soft reset ,and input data,
    however the tantalum capacitors c19 and c23 have both blown, there is +14.9v
    at both locations.

    no motor power or motor is connected.

    can you help please.
    regards mick.



Page 105 of 109 FirstFirst ... 55595102103104105106107108 ... LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

DIY Servo controller

DIY Servo controller