# Load cell feedback

• your link does not work. why not attach image to the post so it is stored on this server?

1) read pinned topic: READ FIRST...

2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

3) read 1 and 2

• AD

• That should work now

• That TIP120 should be unnecessary. The digital input is going to be a high-impedance, low-current load. The "output" side of the optocoupler just needs to support 24VDC, a few hundred mA, and act (when active) very much like a "dead short" to the digital input. Remember, these digital inputs are designed to work with simple switches and relay contacts, which are dead shorts when closed.

It looks like B2 is a lamp? I'm assuming a high-current incandescent, which draws enough current that might explain the TIP120.

• Built the the circuit in previous posts shown below on a simulator and only getting an output of 9V

• You don't need a resistor on the output side.

Although, even with the resistor, it should still work -- both the resistor, and the input, should see 24VDC (minus the ~1.6V of diode loss in the optocoupler). I think your simulation has some errors.

• because something with that simulation is not right... i see no part number or ANY parameters related to simulated optocoupler....

there is something called CRT (current transfer ratio) and varied a lot from one optocoupler to another

also there is something called rise time and optocouplers are slow... it take time for output to settle.

looking at signal after only 5micro seconds is wrong. your EL1809 will not even respond to signals faster than couple of ms. that is hundreds of times slower.

also circuit is given as an idea not as set in stone solution for your exact needs. this means SIZING of resistors for example need to be done.

assuming Vf of 1.25V and 8mA input current, first resistor should be

(5V-1.25V)/0.010A = 468 Ohm. this one looks very good.

if the CTR is very low, (60% for example) then output current would saturate at some 4.8mA (maximum that this opto can do if input current is limited).

4.8mA*1k = 4.8V

if CTR is 100%, then output current may be as high as input current or up to 8mA. this means

8mA*1k = 8V.

if the CTR is high (400% for example) then output current could be 4x larger than input current.

400% of 8mA is 32mA.

32mA*1k = 32V but since this is above supply voltage, real output would be clipped to supply voltage which is 24V.

do we need output that can handle up to 32mA? well it better be above whatever input of your EL1809 expects. most PLC inputs are expecting something on the order of 2-5mA. if the input is able to switch with lower current, then you could use opto with low CTR (and you can increase 1k output resistor to some higher value such as 4k7) but keep in mind that high sensitivity also means more susceptible to noise.

so you think great, here the opto with high enough CTR, then you go and use your typical breadboad kit resistor - 1k 1/4W ... and it works for a while but it gets hot and blows up. that's because you need to consider power as well. if your "24V" is really DC taken from KRC4, then voltage is actually 27V (or 27.1V)

P = V^2 / R = 27V*27V/1k = 729mW which is way more than rating of resistor your use which in this example was only 250mW

so if you use 1k, it need to be at least 1W in this case, which is 4x more than initially assumed.

see how this goes? just because there is a schematics of some circuit that someone created, it does not mean that all info is shared and that your build will be successful. so if you are building something yourself, you still need to do proper calculations yourself. hope this is an eye opener. simulation is good tool but it is only as good as person using it.

what else could go wrong? well, you do want optocoupler to be either on or off for use with digital I/O.... you do not want it to operate in analog regime. analog is used for different applications and cannot take much power. here output stage of optocoupler would be stressed a lot if CTR is insufficient. for example one of the calculations was 8mA and 8V across resistor, this means that remaining (27V-8V = 19V) is across optocoupler. and 19V*8mA is 152mW. you want to keep this within optos specs but note that in analog regime, operating point constantly moves... at some point V*I may exceed power rating.

so staying below max Pd curve is required. colored line show example of operating condition on a transistor dissipation graph.

green segments are fine but red is not.

oh, and there is also something called signal polarity. you want logic levels to match. so when Arduino says output is TRUE, KRC should also see that signal on corresponding input is really TRUE and not the opposite.

1) read pinned topic: READ FIRST...

2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

3) read 1 and 2

• my question again:

what type of sensor do you want to use?

Until now all discussion was quite interesting, but useless)

• my question again:

what type of sensor do you want to use?

Until now all discussion was quite interesting, but useless)

Load cell is handle by an arduino. At a certain force, a 5v output is set to high and want to use the output on Arduino to turn on a input on the beckoff el1809 which has a '1' signal voltage of 11-30V

• now I got it

You are using a s type load cell (range probably up to 750 N) and the module HX711 as amplifier and for higher resolution for the input voltage(s).

The robot should not monitor (or display) the values on the way to reach the required force. A threshold is set (maybe changeable) which activates an output to the robot control and via interrupt the robot motion will stop.

If you want to reach 500 N then you probably want to set the threshold to 490 N so when the interrupt is executed and the robot came to a stop the 500 N are reached.

As an arduino output I just want to mention, that are EtherCAT modules for arduino available wich may be used as well

• Hi,

i want to be able to use the existing modules on the robot hence trying to use the 1809. i could probably use a relay to switch voltages but liked the idea of optocoupler.

Could you provide more info on ethercat modules for arduino like setup and what modules work

• using optocoupler is the fastest way to get the signal from Arduino to KRC.

1) read pinned topic: READ FIRST...

2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

3) read 1 and 2

## Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account
Sign up for a new account in our community. It's easy!
Sign in
Already have an account? Sign in here.