dsPic-Servo - Page 2

Page 2 of 9 FirstFirst 12345 ... LastLast
Results 21 to 40 of 172

Thread: dsPic-Servo

  1. #21
    Member
    Join Date
    Jun 2004
    Location
    United Kingdom
    Posts
    18
    Downloads
    0
    Uploads
    0

    Default

    Hello Gents,
    I am interested in joining in as well here and coming uo with a GEKO clone. Does anyone have any schematics, PCB layouts and firmware to get me started out with,

    Cheers from the Wet UK

    DeWayne


  2. #22
    Registered bsharp's Avatar
    Join Date
    Apr 2005
    Location
    usa
    Posts
    80
    Downloads
    0
    Uploads
    0

    Default

    About a year ago I had posted a thread on doing something like this. I have now gotten other projects out of the way and I am diving back into this one. I have done a lot of reading about building H bridges as this is the most daunting task for me. I have looked over many types posted around the internet and I think I know enough to be dangerous and cause bodily harm. It looks to me like an all N channel bridge using IR2104 “type” drivers is the way to go. I am looking at building something that could scale to high voltage if needed. To start out with I am going to use some RFP40N10 because they are inexpensive “free ripped from old UPS” because I will more than likely toast a few before I get it right. As far as the Programming goes I remember I modified quite a few things in the code. Initially I was going to have the dsPIC set the direction on one pin and do the PWM on another latched together with shoot through protection. I also wanted to add a section to set a value for adjusting the current from the dsPIC. And ultimately add all the features of an industrial quality drive like short circuit protection, over and under current and such with a nice little Windows app to tune and configure the drive. But I got to get the H Bridge working and then go from there. As soon as the Fet drivers show up I will start playing around on the bench and see what damage I can cause. If I get crazy enough this just may work.



  3. #23
    Registered
    Join Date
    May 2007
    Location
    France
    Posts
    106
    Downloads
    0
    Uploads
    0

    Default

    Hi, I have modified the firmware to use a discrete H-bridge.
    Currently, i am testing the first (non-breadboarded) proto.
    It's running fine with IRF540
    You can find more infos (only in French, sorry!) on my website and on usinages.com (see the tread)

    I will post the modified firmware and PCB (KiCAD files) when its all clean
    English manual will also come soon.



  4. #24
    Registered
    Join Date
    Aug 2008
    Location
    UK
    Posts
    573
    Downloads
    0
    Uploads
    0

    Default

    MaX-Mod,

    C'est fantastique! (I've been hoping someone would get this to work, so i could build one or three )



  5. #25
    Registered
    Join Date
    Sep 2007
    Location
    u.s.a.
    Posts
    22
    Downloads
    0
    Uploads
    0

    Default dspic servo working?

    hello,

    i am looking forward to seeing the code for this servo project. this is something that i have been looking to do for a long time.

    is there anything i can do to help ??

    roger



  6. #26
    Registered
    Join Date
    Aug 2008
    Location
    UK
    Posts
    573
    Downloads
    0
    Uploads
    0

    Default

    Max-Mod,

    How's progress?



  7. #27
    Registered
    Join Date
    May 2007
    Location
    France
    Posts
    106
    Downloads
    0
    Uploads
    0

    Default

    Hello,
    I apologise for that long silence, I've been quite busy.
    The source is here : dspic-servo-26-Oct-2008.zip
    and the KiCAD project (TO220 MOSFET, NCP5106 driver, no SMT parts) : V1.zip
    And finally the manual, in French : YAPSC-Manuel

    PS:
    Forgot to say the board runs fine. I don't think there will be any other improvements, maybe just error loop between controllers (all controllers stop in the cas of one detects a MaxError event reached)

    I am planning a smaller, simple board without power stage, in order to control +-10V servo amplifiers directly.
    I am also starting the native 3 phase controller for AC and BLDC :rainfro:

    Last edited by MaX-MoD; 12-16-2008 at 12:01 PM.


  8. #28
    Registered
    Join Date
    Aug 2008
    Location
    UK
    Posts
    573
    Downloads
    0
    Uploads
    0

    Default

    Great news Max-Mod


    Typical! I broke the glass encoder one of my servo motors this afternoon!



  9. #29
    Registered
    Join Date
    May 2007
    Location
    France
    Posts
    106
    Downloads
    0
    Uploads
    0

    Default

    arf, bad news.
    Murphy always gets you when you don't wait for him. Always.



  10. #30
    Registered
    Join Date
    Aug 2008
    Location
    UK
    Posts
    573
    Downloads
    0
    Uploads
    0

    Default

    Max-Mod,

    Are the NCP5106 type A or type B (with cross conduction prevention circuit)?

    Last edited by BillTodd; 12-16-2008 at 03:54 PM.


  11. #31
    Registered
    Join Date
    May 2007
    Location
    France
    Posts
    106
    Downloads
    0
    Uploads
    0

    Default

    Wich one you like the best.
    The dsPIC has integrated dead time so...
    But depending in the MOS you'll use, you may have to change the dead time value.

    Oh, and you can use IR's pin-to-pin compatible drivers instead of NCP5106



  12. #32
    Member
    Join Date
    Mar 2005
    Location
    canada
    Posts
    523
    Downloads
    0
    Uploads
    0

    Default

    Hello
    I have attached a somewhat layout of the Lawrence Glaister dspic servo controller.
    the motor parameters are set via the usb port.
    the motor maximum current is set digitally also via usb.
    as you can see this setup is using an H_bridge instead of amplifiers.
    I have used the current monitor and usb chips in other ccts, works good.

    I have to match the component names and numbers with the schematic and
    make the power traces a bit wider.
    I have to bench test a complete unit before ant pcb's will be made.
    when this is done i will post the complete schematic and latout.
    Garry

    Attached Images Attached Images
    Attached Files Attached Files


  13. #33
    Registered
    Join Date
    May 2007
    Location
    France
    Posts
    106
    Downloads
    0
    Uploads
    0

    Default

    nice compact design smarbaga!
    I guess you will have the boards professionnaly manufactured, right?
    but... the USB bus traces are pretty close to the motor's power output!
    considering the enormous current spikes and noise in these traces, is there any deconnection or errors with USB when powered???

    PS:
    waiting for the schematics
    I am curious about the current sense



  14. #34
    Registered
    Join Date
    Aug 2008
    Location
    UK
    Posts
    573
    Downloads
    0
    Uploads
    0

    Default

    but... the USB bus traces are pretty close to the motor's power output
    !
    Oh yes!

    Route them either side of the GND pin and consider using a GND guard trace between them and the Motor nets.



  15. #35
    Member
    Join Date
    Mar 2005
    Location
    canada
    Posts
    523
    Downloads
    0
    Uploads
    0

    Default

    Hello
    i know the usb traces are close to the dc lines
    i had a few choices, but because the usb is only used to set the cpu's parameters
    there will be no motor action and no dc current draw to the motor.
    after the cpu's parameters are set , pid, max. current etc.., the usb will be dead
    or idle untill next power up or reset.
    thanks for pointing out the trace spacing.
    attached: untested schematic and proposed pcb.
    garry

    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by smarbaga; 12-17-2008 at 04:41 PM. Reason: attachments


  16. #36
    Member samco's Avatar
    Join Date
    Jul 2003
    Posts
    1753
    Downloads
    2
    Uploads
    0

    Default

    The http://www.zetex.com/3.0/pdf/ZXCT1081.pdf chip only seems to work up to 40v.. (if I am reading that right - max motor supply would be 40v or there abouts.)

    (I love the idea of high side sensing.)

    sam



  17. #37
    Registered
    Join Date
    Aug 2008
    Location
    UK
    Posts
    573
    Downloads
    0
    Uploads
    0

    Default

    the usb will be dead
    So will your USB port if there's any kind of short/spike/cock-up

    Just route the traces up and around the GND pin and add a Gnd trace between them and the motor traces. Do it now, before you kill your USB port.



  18. #38
    Member
    Join Date
    Mar 2005
    Location
    canada
    Posts
    523
    Downloads
    0
    Uploads
    0

    Default

    thanks Mr billtodd, i will put the isb data lines around the gnd term.
    the 2 res r19 +r20 let the zxct chip work at a higher voltage.
    i had that working in another cct at 100 volts, and the chips worked fine.
    the zxct chip has a very linear output , analog 0 to 4.5 volts , amps proportional.



  19. #39
    Registered
    Join Date
    Jun 2008
    Location
    Russia
    Posts
    66
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by smarbaga View Post
    thanks Mr billtodd, i will put the isb data lines around the gnd term.
    the 2 res r19 +r20 let the zxct chip work at a higher voltage.
    i had that working in another cct at 100 volts, and the chips worked fine.
    the zxct chip has a very linear output , analog 0 to 4.5 volts , amps proportional.
    On my, this all as that unreliable. Today works, but tomorrow?

    I have put(deliver)ed the optocouplers on Step/Dir. For low supplying motor of the engines possible all will work, but under high supplying voltages of the hindrance above and can be a malfunction.

    Also possible converter USB/UART to move in DataCable, since usually do several servocontrollers, that economy FT232R and place on PCB. I did such here http://www.cnczone.com/forums/showthread.php?t=69640. But beside me why that with USB/UART bad works (long unites ). In russian forum I have advised the optocouplers on ADuMxx. I did not try.

    Else has put(deliver)ed the quartz high. The Speed will not disturb. On model well, but on real tool, it is necessary very quick reaction on mechanical loads.

    Last edited by arisov77; 12-18-2008 at 06:01 AM.


  20. #40
    Registered
    Join Date
    May 2007
    Location
    France
    Posts
    106
    Downloads
    0
    Uploads
    0

    Default

    I have putted optocouplers between the PC (RS232) and the board, to protect the PC during setting of the P, I and D. I do change the parameters on-the-fly to fine tune (ears-tune ) parameters while the motor turns... and problems could happend!

    So why nobody puts optocouplers between the configuration port and the PC????

    Also possible converter USB/UART to move in DataCable, since usually do several servocontrollers, that economy FT232R and place on PCB.
    Same idea, man



Page 2 of 9 FirstFirst 12345 ... 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

dsPic-Servo

dsPic-Servo