585,585 active members*
3,603 visitors online*
Register for free
Login
IndustryArena Forum > CNC Electronics > CNC Machine Related Electronics > opto-isolator and PWM speed control.
Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2012
    Posts
    153

    opto-isolator and PWM speed control.

    Hi,

    I have a chinese variable frequency driver for my spindle. It provides a 10V supply and takes a 0-10V input voltage for spindle speed. I want to integrate this with my GCODE interpreter so that I can control machine speed from GCODE. This means a level change from the digital voltage level and I want to use opto isolation to protect the controller chip.

    Output will be a PWM signal which needs a low pass filter after the FOD817B opto isolator .

    I have a circuit but just realised that it has different charge and discharge resistance which means the output voltage will not correctly reflect the PWM ratio.

    Can someone suggest a better way of doing this?

    Thanks.

    Click image for larger version. 

Name:	PMW-opto.jpg 
Views:	1 
Size:	68.3 KB 
ID:	417576

    [EDIT] Ah, I've just realised that if I increase the filter resistor to 100k, the difference becomes unimportant. Does this look like a valid way to drive VFD?
    Attached Files Attached Files

  2. #2
    Join Date
    Jun 2011
    Posts
    692

    Re: opto-isolator and PWM speed control.

    I think R3 should be connected to the + of C5, and its value changed to match R4.

  3. #3
    Join Date
    Jun 2012
    Posts
    153

    Re: opto-isolator and PWM speed control.

    Quote Originally Posted by skrubol View Post
    I think R3 should be connected to the + of C5, and its value changed to match R4.
    Thanks, could you explain the reason that should be done?

  4. #4
    Join Date
    Jun 2011
    Posts
    692

    Re: opto-isolator and PWM speed control.

    Hm, I think my logic was off. I think you would be best off putting a logic inverter after the opto and then just have a single resistor after that.
    I guess using a much larger value resistor for R4 as you mentioned will work as well, but keep in mind with no signal to the opto, you will get full speed commanded. You might be better off connecting the opto to vcc rather than ground (basically flip the whole circuit.)

  5. #5
    Join Date
    Jun 2012
    Posts
    153

    Re: opto-isolator and PWM speed control.

    The opto is on the same cct board as the MPU and the input if configured with a pull-up. That does leave the question of what happens if the spindle controller is power on but the Gcode interpretter board is down. Good point. It's like the limit sw situation where limit switch active is the better failure mode as you previously suggested.

    I was intending to have a spindle enable so I will try to ensure that that goes into disable state if there is not power on the MPU.

    Thanks for you input.

  6. #6
    ericks Guest

    Re: opto-isolator and PWM speed control.

    I made a pwm to 0-10V converter a while back. It worked well but i did not use it cause i still needed to make it "isolated". This is something i will look into sometime when i have a bit of spare time. To be honest i am thinking of designing a bob with all the stuff that might be needed for the proper control of the cnc router etc. All the best with your design....

  7. #7
    Join Date
    Jun 2012
    Posts
    153

    Re: opto-isolator and PWM speed control.

    Yes, using an opto like FOB817B provides both level shift and galvanic isolation in simple cheap and compact way. A four pin dil with minimal additional components.

  8. #8
    ericks Guest

    Re: opto-isolator and PWM speed control.

    Thanks for the info.....much appreciated

  9. #9
    Join Date
    Jun 2012
    Posts
    153

    Re: opto-isolator and PWM speed control.

    For anyone interested, here is what I settled on. Works well, following skrubol's suggestion of doing it the other way up.

    Attachment 418296

Similar Threads

  1. opto-isolator / limit sw advice.
    By reg.miller in forum CNC Machine Related Electronics
    Replies: 8
    Last Post: 04-03-2019, 11:13 AM
  2. Need Optocoupler/Opto-isolator
    By lingo124 in forum CNC Machine Related Electronics
    Replies: 0
    Last Post: 06-23-2013, 05:44 AM
  3. Need help in opto isolator circuit!
    By evander in forum CNC Machine Related Electronics
    Replies: 26
    Last Post: 04-07-2010, 06:25 AM
  4. Opto-Isolator problem G201 ?
    By Clyde in forum Gecko Drives
    Replies: 4
    Last Post: 08-20-2008, 12:09 PM
  5. Opto-isolator problem?
    By Me2 in forum Gecko Drives
    Replies: 2
    Last Post: 10-27-2007, 02:31 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
  •