586,269 active members*
3,604 visitors online*
Register for free
Login
IndustryArena Forum > CNC Electronics > CNC Machine Related Electronics > Relay Module Optocoupler for controlling new CNC router outputs
Results 1 to 8 of 8
  1. #1
    Join Date
    May 2003
    Posts
    96

    Relay Module Optocoupler for controlling new CNC router outputs

    Hi To all,
    I'm in the process of slowly building my 5 axis CNC router and have started wiring the control box. In order to control pneumatic valves and relays. I'm using an 8 channel relay module optocoupler which onboard relays are rated 5V and the breakout board (HDBB2 from CNC Drive) output voltage is 12V. My difficulty is that since there is no information on the optocoupler, I'm not sure if connecting as indicated on the attached circuit would damage the optocoupler. Is there anyone that can advise in this regard or has any experience with this type of optocoupler?
    Thanks
    Marting
    Martin G

  2. #2
    Join Date
    Dec 2003
    Posts
    24221

    Re: Relay Module Optocoupler for controlling new CNC router outputs

    You may have to reverse engineer the resistor used in the opto coupler, but as a general rule if the opto input is designed for 5 input, and you have 12v, then it may need a series resistor on each input, double the value that is there now, or look up the max diode current rating of the opto.
    Also what is the nature of the BOB output?
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

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

  3. #3
    Join Date
    May 2003
    Posts
    96

    Re: Relay Module Optocoupler for controlling new CNC router outputs

    Hi Al,
    I think so as well but thought maybe these would be tolerant enough, anyway I still have an alternative to connect it to the UC300-5LPT motion controller which has a 5V supply on each of the remaining 3 LPT ports. I'll actually be driving 2 HDDB2 BOB, in turn connecting 6 servos (slaving A axis to X axis), 6 homing sensors, 6 encoders and 2 TTL outputs, 1 for router speed control and another for laser control.
    Martin G

  4. #4
    Join Date
    Jun 2005
    Posts
    1730

    Re: Relay Module Optocoupler for controlling new CNC router outputs

    Most of these type boards will accept an input voltage to the optocoupler from about 3V to 28V, they tend to vary depending on which opto they actually used. The output stage is being controller by a 5V relay. You can have the contacts of the relay do whatever you want since they have COM NC NO contacts all available. The input normally has a current limiting resistor, since you are just turning on the tiny LED inside of the OPTO to activate the transistor inside. This is how people interface higher voltage inputs to lower voltage boards, since using the opto to handle the high incoming voltage is totally isolated due to the OPTO and relay to the lower voltage required on the microcontroller.

    Russ

  5. #5
    Join Date
    May 2003
    Posts
    96

    Re: Relay Module Optocoupler for controlling new CNC router outputs

    Hi Russ,
    thanks for the input, agreed but what I meant was the optocoupler circuitry being supplied by a higher voltage while still operating the relays by connecting to the 3 pins at the upper right side, which is normally bridged to supply the optocoupler circuit. It is highly probable that the later would only operate at the same voltage of the relays.
    Thanks
    Martin G

  6. #6
    Join Date
    Jun 2005
    Posts
    1730

    Re: Relay Module Optocoupler for controlling new CNC router outputs

    If you look at this page you will see the schematic for a typical input on this board. It shows the OPTO and the Relay circuit.

    Russ



    SainSmart 8 Channel DC 5V Relay Module for Arduino Raspberry Pi 3D Printing, Arduino, Robotics | Sainsmart

  7. #7
    Join Date
    Dec 2003
    Posts
    24221

    Re: Relay Module Optocoupler for controlling new CNC router outputs

    I see now by looking at the HDBB2 it has open drain mosfet output, so they would normally just sink to common so I agree, there should be no concern.
    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
    May 2003
    Posts
    96

    Re: Relay Module Optocoupler for controlling new CNC router outputs

    Hi Russ and Al, thanks for the input. After further consideration, I decided that since I wouldn't have enough outputs on the HDBB2 boards anyway, it would be better to connect all outputs to one location in the UC300 and on the other hand would be easier since the output on the later LPT port is 5V as well.
    Regards marting


    Sent from my SM-T555 using Tapatalk
    Martin G

Similar Threads

  1. Osai rio module m16 cnc router.
    By M.Abid in forum Controller & Computer Solutions
    Replies: 0
    Last Post: 07-11-2015, 11:40 AM
  2. Replies: 8
    Last Post: 06-17-2015, 01:24 PM
  3. Who needs a Relay box for controlling spindle & flood/mist?
    By mavericks in forum Taig Mills / Lathes
    Replies: 0
    Last Post: 04-26-2010, 02:23 AM
  4. Switching Relay From Optocoupler Output
    By deanbayley in forum CNC Machine Related Electronics
    Replies: 23
    Last Post: 08-20-2009, 10:12 PM
  5. What m-codes control relay outputs in mach3?
    By jedcam67 in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 1
    Last Post: 10-23-2007, 02:37 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
  •