Hybrid View
-
02-06-2018 #1
Agreed - our results tally.
If the 817 is preceded with an italic "L", then its the Liteon LVT-817. The 1024 is just the date-code. These are all pretty much the same.
You don't say if the sensor is On or Off. What's the actual voltage with 24V applied across the supply, measured with a 4k7 pull-up, in both On and Off states? (I'll measure mine in the morning anyway). I'd expect the output voltage to be sat at 24V "Off" and near-as-dammit 0V "On".
It becomes a non-problem provided that there are no pull-ups to the supply voltage to the sensor. Once you have the sensor input floating to 24V (which you'll only have with a pull-up, for example if you wanted a 24V control circuit) then you're breaking the spec on the data sheet, and will likely damage the optocoupler.
I simply read that that there's reverse-polarity protection on (or around) the LM317 regulator. There is nothing on the optos to protect them (this would be an easy mod to the board to support 24V signalling).
I do think this is a non-problem by avoiding 24V switching levels.
-
03-06-2018 #2
Okay, a nice Sunday experiment.
With reference to https://www.renesas.com/en-eu/produc...tandard-p.html - which discusses the effect of reverse-biasing an opto-coupler (section 1.5).
I've hooked up a brand-new 4n25 opto-coupler, 1K between anode and +10V, cathode connected to either 0V (opto = on) or through a 10k resistor to 24V (opto = off, reverse biased, simulating the sensor behaviour). Collector to +10V, emitter through a 1k to ground. DVM across emitter and ground.
With the cathode connected to 0V (on), the voltage at the emitter raises from 0.0 to 9.06V.
Now, I connect the cathode to the 24V supply via the 10k resistor (simulating the sensor internal pull-up of 10k). Predictably, the emitter voltage drops to 0V as the opto-coupler turns off.
So, the real test - leave like that for 5 minutes, then disconnect the 24V supply and ground the cathode.
Result - emitter voltage rises to 9.06V
Conclusion - for a short-duration (5 minute) exposure to 24V (and a reverse bias of 14V) the performance of the opto isolator is not changed.
However, measuring the voltage across the 10k gives 0V (i.e. no voltage drop - no current flow) - the voltage hasn't reached the avalanche voltage of the opto's LED.
Since then, I've added in a second PSU giving me a range upto 60V, in place of the 24V supply. Cranking the voltage up it was evident that the avalanche region of the LED in the opto was around 50V. Removing the 50V showed an emitter voltage of 9.01V (a 0.05V reduction from previous). Replacing the 10K resistor with a 2.2k resistor (to increase the current flow during the reverse-biasing), and the emitter voltage dropped to 8.84V (further degeneration). Note, this effect does appear to be permanent, but not increasing (in the 5-10 minutes I waited).
So, what do I think? Reading random articles on the internet does suggest that reverse-biasing the LED will result in a deterioration of performance over a period of years. The article above suggests that even short duration reverse biasing can result in deterioration.
However, the avalanche voltage may be substantially higher than the datasheet (clearly you can expect the opto-isolator to tolerate a 6V reverse bias without damage - but the actual headroom that you have between that and the actual avalanche voltage is unknown, and likely variable between difference devices, age, temperature etc).
Having run this experiment I'm inclined to think that you're not likely to have a significant problem running the BoB with the inputs connected to a 24V-driven NPN sensor. If might be that, over time, the opto-couplers degrade, but I'm not convinced that this would result in failure. If it does, the optos are easily replaced (or the BoB, if these are still available after the failure).
BUT, I have decided that I'll be powering the BoB and the sensors with a common 12V supply - it's a personal choice but I will keep the reverse bias voltage to less than the maximum expressed on the datasheet.
-
The Following 2 Users Say Thank You to Doddy For This Useful Post:
-
03-06-2018 #3
Ok ,thoroughly does not even closely describe your commitment in helping me out.
Thank you for that.
Ok so...i decided to do the following based on this thread and other threads.
Since there seems to be 9.4k ish in line in the proximity switch emitter, i put a 4.7k resisitor in series connected to ground.
When connected to a 24vdc psu, this will give me about 8 volts at the point of connection at the bob. in the "open "position.
When in the " closed " position the emitter goes to 0v.. hope this will work.
I will report back when all is operational.
Doddy thanks again for doing research on this subject.
Grtz. Bert
Verstuurd vanaf mijn SM-A320FL met Tapatalk
-
03-06-2018 #4
In honesty, I'm doing this for me, as much as anything - I will need to start thinking of wiring pretty soon, and you're bringing up the questions that I need to answer for myself.
I think the NPN sensors the black wire is actually the collector, not emitter (I guess the emitter is connected to blue/0v)
Re your proposal. Think carefully of what you're trying to achieve. With the NPN providing a switch to ground (current sink), by placing a resistor from the output to ground will give you a low(ish) resistance to ground even when the NPN transistor is OFF - the LED will still illuminate (you'll get around 1.5mA through it - enough to illuminate it, probably enough for the current through the opto's transistor to actuate the input to the UCx00 - the input impedance of that is something like 50k to ground (and 4k7 to +5).
Try it, by all means, but don't be surprised if the input is permanently on.
The easiest solution is to simply tack a small signal diode (1n4148 is probably the most common) across the pin 1/2 of each opto - in the opposite sense to the opto's LED (i.e. cathode to pin 1, anode to pin 2). That way you cannot reverse bias either diode beyond the forward conduction voltage of the opposing diode - max of 0.6V by the 1n4148 across the opto's LED, or around 1.5V by the opto's LED across the 1n4148. Essentially, this will limit the voltage at the input to the BoB to the V-Ref provided by the BoB's onboard regulator (~10V) plus 0.6V.
Of course, this (and the idea that you proposed) both serve to reduce the switching voltage to something around 10V, which is why I still think that just using a 12V supply to the BoB and to the sensor is an easy alternative.
-
03-06-2018 #5
Ok i get it.
So best would.be to raise voltage just over 9.3 or what ever comes out the bob with nothing connected.
I really like your idea of the reversed diode.
This will act as an indicator for status at the same time.
Grtz Bert.
Verstuurd vanaf mijn SM-A320FL met Tapatalk
-
20-08-2018 #6
Hi doddy,
All in all i had to add 500 ohm to 4.7k to have the inputs switch reliably. I ended up at 8.65 volt. after switching the inputs would not drop..
Adding 500 raised it to 9.15 ish. which is ok
So you where right it needed to go near 9 and or slightly over.
0.5volts still illuminated the input opto's just enough to screw up somtimes
I still have a glitch in 1 of the inputs though..
Need to find out why.
maybe wiring issue or a slightly off 4.7k resistor.
ill try 1k instead off 500 first... maybe there is a switching effect or so.
Grtz Brt
Verstuurd vanaf mijn SM-A320FL met TapatalkLast edited by driftspin; 21-08-2018 at 04:13 PM.
-
21-08-2018 #7
It looks good from down here Bert
-
The Following User Says Thank You to AndyGuid For This Useful Post:
-
21-08-2018 #8
Nifty Job!
-
The Following User Says Thank You to Nickhofen For This Useful Post:
Thread Information
Users Browsing this Thread
There are currently 2 users browsing this thread. (0 members and 2 guests)
Similar Threads
-
BUILD LOG: First time build - Steel Frame CNC Router
By examorph in forum DIY Router Build LogsReplies: 144Last Post: 19-10-2023, 06:25 PM -
BUILD LOG: First Build 5 x 12 Steel Frame CNC router
By Scott Damman in forum DIY Router Build LogsReplies: 104Last Post: 18-01-2017, 06:36 PM -
BUILD LOG: Steel frame cnc router design/build
By CraftyGeek in forum DIY Router Build LogsReplies: 110Last Post: 06-05-2015, 10:00 PM -
600x900 Steel welded router build
By embraced in forum Gantry/Router Machines & BuildingReplies: 7Last Post: 08-10-2014, 10:55 PM -
BUILD LOG: First steel diy CNC router build
By ivars211 in forum DIY Router Build LogsReplies: 59Last Post: 28-07-2014, 08:29 PM
Bookmarks