584,826 active members*
5,091 visitors online*
Register for free
Login
IndustryArena Forum > CNC Electronics > PIC Programing / Design > diy pic16f88 cnc servo motor drive 32 bit pid
Results 1 to 20 of 20
  1. #1
    Join Date
    Jul 2008
    Posts
    7

    diy pic16f88 cnc servo motor drive 32 bit pid

    hello

    this is my diy cnc from scratch :

    pic16f88 servo pid step driection controlled mach3 or emc2 (the encoder i used are from old deskjet printer)

    anyone interested can email me


    https://www.youtube.com/watch?v=quLhph8qKFM

  2. #2

    Re: diy pic16f88 cnc servo motor drive 32 bit pid

    Beautiful work! For movement, why don't you push it faster?

  3. #3
    Join Date
    Apr 2004
    Posts
    733

    Re: diy pic16f88 cnc servo motor drive 32 bit pid

    Any plans to release the pic servo code? Good work!!!

  4. #4
    Join Date
    Jul 2008
    Posts
    7

    Re: diy pic16f88 cnc servo motor drive 32 bit pid

    for my design i can go to 1000 mm/min in three axis that the safest way for the first attemp with acceptable error
    to increase speed i can change the axes with higher pitch or decrease the reduction
    i beleive i can reach 3000mm/min with same electronic design and play with gears or axis
    i will post design soon and hex soon
    thanks

  5. #5
    Join Date
    Apr 2006
    Posts
    3498

    Re: diy pic16f88 cnc servo motor drive 32 bit pid

    Great work ...Will happy to see closeup pictures of encoder...
    http://free3dscans.blogspot.com/ http://my-woodcarving.blogspot.com/
    http://my-diysolarwind.blogspot.com/

  6. #6
    Join Date
    Apr 2006
    Posts
    3498

    Re: diy pic16f88 cnc servo motor drive 32 bit pid

    Also i see the encoder wheel but can you tell us where you get the encoder from?..can u post closeup picture of the encoder? what brand printer is that?
    http://free3dscans.blogspot.com/ http://my-woodcarving.blogspot.com/
    http://my-diysolarwind.blogspot.com/

  7. #7
    Join Date
    Dec 2003
    Posts
    24216

    Re: diy pic16f88 cnc servo motor drive 32 bit pid

    Did you program in C or Assembly?
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  8. #8
    Join Date
    Jul 2008
    Posts
    7

    Re: diy pic16f88 cnc servo motor drive 32 bit pid

    programming is done in C with ccs compiler
    the programme handle encoder resolution 1X to incremente timer0 and timer1 to get the count
    it also able to tune P.I.D, max error , integral anti_windup,pwm_min,pwm,max through rs232
    also enable/disable input and error output (case error too large)
    it also handle current limting independant of µc

    i will post picture of the encoder

  9. #9
    Join Date
    Jul 2008
    Posts
    7

    Re: diy pic16f88 cnc servo motor drive 32 bit pid

    all inkjet printer has encoder wheel (arrount 1400 ppr) an their quadrature reader ( 6 leads)
    also they have linear strip encoder (about 30 cm length) can be used for z axis

  10. #10
    Join Date
    Jul 2008
    Posts
    7

    Re: diy pic16f88 cnc servo motor drive 32 bit pid

    Click image for larger version. 

Name:	20160706-0010.jpg 
Views:	3 
Size:	69.7 KB 
ID:	326324
    Click image for larger version. 

Name:	20160706-0012.jpg 
Views:	1 
Size:	84.4 KB 
ID:	326326
    Attached Thumbnails Attached Thumbnails 20160706-0010.jpg   20160706-0004.jpg   20160706-0003.jpg  

  11. #11
    Join Date
    Jul 2008
    Posts
    7

    Re: diy pic16f88 cnc servo motor drive 32 bit pid

    hello again

    this is the schematic i rush it little bit but it can give you idea about the hardware

  12. #12
    Join Date
    Apr 2004
    Posts
    733

    Re: diy pic16f88 cnc servo motor drive 32 bit pid

    Looks good! I use CCS compiler too and would like to see the code if possible. I have a few f88 boards laying around. It

  13. #13
    Join Date
    Jul 2014
    Posts
    51

    Re: diy pic16f88 cnc servo motor drive 32 bit pid

    ahsameh: Is there more info, I would like to build my own servodrivers.

  14. #14
    Join Date
    May 2005
    Posts
    1397

    Re: diy pic16f88 cnc servo motor drive 32 bit pid

    If you want an open source PID servo controller, which is also available as a very low cost kit, this one is released, tested, and works:
    BOBPID1: PID Servo Controller massmind
    James hosts the single best wiki page about steppers for CNC hobbyists on the net:
    http://www.piclist.com/techref/io/steppers.htm Disagree? Tell him what's missing! ,o)

  15. #15
    Join Date
    Feb 2018
    Posts
    109

    Re: diy pic16f88 cnc servo motor drive 32 bit pid

    I don't know if anyone is still doing anything on this but this looks pretty interesting. My only problem is the lack of an H bridge that would support a 90 volt servo with a 120 volt input - has any seen something like this that would work with this board? I'd love to look at using these and an Acorn board to retrofit a mill that I have -

  16. #16
    Join Date
    May 2005
    Posts
    1397

    Re: diy pic16f88 cnc servo motor drive 32 bit pid

    Quote Originally Posted by SEK22Hornet View Post
    I don't know if anyone is still doing anything on this but this looks pretty interesting. My only problem is the lack of an H bridge that would support a 90 volt servo with a 120 volt input - has any seen something like this that would work with this board? I'd love to look at using these and an Acorn board to retrofit a mill that I have -
    Best I can do is 40 volts:
    DRV8701: 1HP DC Motor H-Bridge Driver massmind

    But the BOB PID can run any H-Bridge that supports a PWM and Direction input.
    BOBPID1: PID Servo Controller massmind
    And can be modified to give 0-10 volt output signal in place of PWM.

    A modification to support +/- 10 volt signaling is in the works, as is ENC / RC output. It's all open source, but the repo isn't up to date so talk to me if you want to make changes.
    James hosts the single best wiki page about steppers for CNC hobbyists on the net:
    http://www.piclist.com/techref/io/steppers.htm Disagree? Tell him what's missing! ,o)

  17. #17
    Join Date
    Dec 2003
    Posts
    24216

    Re: diy pic16f88 cnc servo motor drive 32 bit pid

    Quote Originally Posted by SEK22Hornet View Post
    I don't know if anyone is still doing anything on this but this looks pretty interesting. My only problem is the lack of an H bridge that would support a 90 volt servo with a 120 volt input - has any seen something like this that would work with this board? I'd love to look at using these and an Acorn board to retrofit a mill that I have -
    I made a120vdc H-bridge based on Tahmids iR2110 Tahmid's blog: Using the high-low side driver IR2110 - explanation and plenty of example circuits you just need to size the Mosfets accordingly.
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  18. #18
    Join Date
    Feb 2018
    Posts
    109

    Re: diy pic16f88 cnc servo motor drive 32 bit pid

    was hoping to find something that didn't require a pcb layout - but the article looks pretty good. Right now in the middle of getting my new old Partner 1 Milltronics VM-17 up and running so this will go on the back burner.

  19. #19
    Join Date
    May 2005
    Posts
    1397

    Re: diy pic16f88 cnc servo motor drive 32 bit pid

    Hey Al, do you have a sense of what the component cost was for that driver? I'd be interested in making a kit available if the price could be made reasonable.
    James hosts the single best wiki page about steppers for CNC hobbyists on the net:
    http://www.piclist.com/techref/io/steppers.htm Disagree? Tell him what's missing! ,o)

  20. #20
    Join Date
    Dec 2003
    Posts
    24216

    Re: diy pic16f88 cnc servo motor drive 32 bit pid

    I would have to look up my old Digikey invoices, I used a Pic 18F23K22 and communicated with RS485 serial Modbus type interface.
    120vac mains powered with isolation for the 5v logic.
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

Similar Threads

  1. Replies: 3
    Last Post: 02-11-2015, 06:07 AM
  2. Replies: 0
    Last Post: 10-21-2014, 09:29 PM
  3. Servo Drive AC + servo motor for car steering wheel simulator
    By yusukeand in forum Servo Motors / Drives
    Replies: 6
    Last Post: 01-10-2014, 09:06 AM
  4. Sell Servo Motor, Servo Drive by GSKcnc.com from China
    By salecnc@hotmail in forum News Announcements
    Replies: 0
    Last Post: 06-03-2008, 08:55 PM

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
  •