I must say that sharing your knowledge and experience is a very generous thing to do and to do it with added entertainment value is magic. Thanks Clive.
@@bigclivedotcom we want to see what happens if you disconnect zener and the LED. Boom or fzzz. Whatever, if a cheap zener can prevent just a little goo in your box, fine.
Whilst I'm not an engineer who needs to use these on a day-to-day basis, this was very interesting. And handy tips to designers and manufacturers based on your experiences. Good stuff.
I'm going to use one to detect when my oil boiler is actually fired up by connecting it to the oik switch solenoid. This will then send the data to Home Assistant which will log the hours burnt and tell me when to refill my oil.
@@WINGNUT307 Good to hear of a link to monitoring your oil boiler with a Big Clive practical application. He must have been a very accomplished lift engineer with his approach to repair. Servicing in any trade needs more Clive's, my opinion for fifty years and travelling half the country working for national companies. As an industrial electrician from the sixties I did a crossover to work as an R&D engineer on oil combustion, including boiler design and then gas combustion after the oil crisis. My electrcal knowledge gave me fifty years of advantage to help many good mechanical engineers to improve their electrical thought processes. I made alarm circuits to notify customers when the oil tank was getting low, float switches with mercury switches to prevent any fire risk with arcs and oil vapour venting to atmosphere. All before Watchman or similar systems when I became a heating service engineer in Dorset and Hampshire. Oil servicing had few respectable craftsman so getting paid to drive around the New Forest was a gift.
Did not expect the discussion to cover elevator control circuit boards. As a journeyman elevator tech in Canada I'm impressed by the depth of your knowledge on our trade. Bang on, and much appreciated.
Thank you Clive! Another great video as always. This is exactly what I needed for my project. I “reverse engineered” my own circuit, but I found that my Esp8266 was occasionally picking up the ripple from the mains. I ended up putting another small electrolytic cap on the logic side of the optocoupler. Works perfectly!
Nice video! 👍 Thank you in all you do!! For myself a retired Electronics Engineer in the past 8 years now and in the "past working in Electronics" from 1972 untill 2013....Iam getting back into Electronics again. It's in the blood!! Thanks for the refreshing videos.
@@colejohnson66 welcome to our age. Sorry. I mean, they literally are, I'm not the only one who thought about them instantly when Clive mentioned that you can easily short the resistor's contact with a metal screw.
A very similar tech is used in some 3D printers for the power loss resume function. A 3D printer has about 150-300W worth of heaters and 40W worth of motors, and the PSU is guaranteed to hold over at least 25ms dropout from its stored energy. So when the expected mains pulse is not detected, they can quickly turn off all heaters - and they still have about half the capacitor energy in the PSU left, which is enough to run the relatively frugal motors to move the toolhead a little bit up and prevent damage to the print, and then write a cookie to the internal nonvolatile memory, saying which file was being printed, which line was last finished, and where the toolhead is at at this moment, and then just wait until the power drains from the power supply. When the power resumes, they can just continue printing. The voltage sensing needs to be mains side, because when you see the voltage dropping on the output of the PSU, it's already too late, it has basically no residual energy left. Also they insert it before the manual power switch, so when you power it off by hand, obviously you wanted it that way, while if the cord is pulled or the mains just collapses, then the power loss resume is activated. Eventually other ways to implement resume were implemented by just always writing a cookie every layer with no mains side sensing, but it's not nearly as clean.
Spot on Clive as usual,! (Lift engineer here) Even back in the day when I was working on the tool- 1970’s, board repair was discounted, even though a few of us could. Niwdays, it unheard of. Otis CMOS control and OI4 boards were just as this control and shorted regularly, cause all sorts of other unpleasantries.
I know the fan timer pcb you mentioned, it's the same size as the one featured here but a bit longer. I think JW made a video about them a while ago. I've had several fail due to the resistor going thermonuclear so I converted them to half wave capacitive dropper using a 0.22uF X2 capacitor. No more heat and they're all still working.
"It's never gonna spark again, 'till you go reset that breaker, all the black soot settled down, I'm sure that something blew" Yes, Clive, I know that song!
It's quite common for ceramic resistors to have very high temperature ratings, a couple of hundred degrees C or more, so the board burns and resistor unsolders, completely unharmed.
During my Electrical and Electronic Engineering degree it was suggested that we rate resistors at twice the power if we want a long lasting stable circuit. However, if you are building in obsolescence use the only slightly higher, this ensures a short but acceptable life and more sales! On the political side, I have a feeling that we are going to be paying a lot more for circuits like this. At least short to medium term.
I'm just one of those Arduino hobbyists who lives up to the cliché of not knowing WTF I'm doing half the time when it comes to electronics. But I understood this circuit and I see the possibilities. I might even integrate this into a little board that I'm trying to design. Thanks again Big Clive.
The Zener diode is in there in case the infrared LED inside the optoisolator goes bad and becomes an open circuit. In that case, the full RMS voltage (220 x √2 Volt) would build up across the electrolytic capacitor, causing its explosion. With respect to the canonical design, there is a missing resistor, between the positive of the capacitor and the LED, calculated to limit the current flowing thru the LEDs at 15 mA. In the case of your board is R = 5.1 - ( 1.7 + 1.4) / 0.015 = 120 Ohm. 1.7 V is the Vf of the red LED, and 1.4 V is the Vf of the infrared LED inside the optoisolator. Thank you for the nice video...
Otherwise where is the voltage difference going? Are the leds working on a higher foward voltage on their curve? or is the zener turned off completely? who wins?
@@robegatt The power would be otherwise dissipated in the 1 Watt resistor. If you draw the V/I diagram of the Zener diode, for all operating conditions, it become self-explanatory.
Yet another great exploration and explanation! Wee see our share of optos that have been damaged for one reason another. Along electrolytics and comms ICs optos are regularly replaced in industrial stuff under repair.
I've been meaning to watch this for days and just got around to it. Interesting little board. Seems like it would be easy to make too. I have all the parts it has. Thanks for the info on changing the resistor for 120 volts.
In Ireland, we call stray strands "hairy mollys"! Most common in lift controllers on mains 3ph terminals where 10 sq tails have been stuffed in without ferrules. Always a nice surprise in a dimly lit plant room 😝
Unless I'm working with vacuum tubes, I'm not a fan of simply letting things run hot/warm like that constantly, especially for something as simple as voltage detection. Yes, "it works," but needless thermal stress is something to be avoided.
I remember getting a belt off a lift door open detector switch many years ago. The switch was two exposed contacts on the edge of the door at mains voltage, the circuit being closed by the steel of the other door. Being an inquisitive teen-ager I poked them with my finger! They weren't shrouded or anything!
An alternative, and about the same price, is to use an old (functionsl) 5v USB phone charger to your detector pin on your equipment, optionally through an opto-isolator. We use (or have used) this as a solution on ham radio repeaters to detect when we're actually running on battery power rather than commercial power to operate the transmitter at a lower power mode to extend the availability time of the repeater. (Use a resistor, or a voltage divider and resister if needed for 3.3v to limit current going to your micro-controller if you're not running it through an opto-isolator. I'd also recommend validating that the '5v' is correct compared to the ground of what you're sensing with, and isn't incidentally floating at high voltage because someone put in a transformer that's been wound too tight.
You can also make one from a mains neon and an LDR or other photo sensor. The LDR is a less decisive switch than the opto but the mains neon is much easier to make safe if you need to build it without a PCB.
@@bigclivedotcom Hussman, Airdale, Denco, Wright Air Con Birmingham. A lot of time on main frame computer rooms, great for biood pressure with financial services leaving London. Plus the MoD Dockyards, heating for Concorde's and the Red Arrows etc. All in my past with a bad experience with a lift during my first week as an apprentice industrial electrician working on the companys lift. 1963, lift room, power off but the brake was jammed off with a wooden wedge as instructed. ?¿? Meanwhile the burly van driver forced a fourth floor lift open to load with 2/3 hundredweight of leather + driver. Fortunately I heard the lift motor spinning. 'Presence of mind by me to grab the wedge and the speeding car gently touched the springs. With a ranting van driver complaining he was a foot below the ground floor and he had never had such a quick trip before, I never explained. 1963, October continued Neon control for industrial timers made by Brook Motors (the only source in the country, allegedly) Huddersfield. Only available on three months delivery and with no other source and 200+ Brook timers in control systems built by the company. Very costly timers and all eggs in one basket. There was zero stocking from any supplier, wholesaler home or abroad. Memory prompt, the neon was 50mm long, the board was 90mm, with very few components. PS the Radiospares catalogue was 20 pages of electronic components. Catalogue page size the Imperial size of A5. Potentiomers, carbon track, for Pittards Leather they were used remote mounted to control the Brooks timers. Prone to arcing or sparking you choose. Point of History. From 1914 in the carTanning machinery, British, Turners ltd, ' had to be Yorkshire based, 1914 designed and all clunky, ' withstood lethal quantities of deadly alkalines, skin layers removed in 20 seconds, deadly for live maintenance to flick moving parts. Massive numbers of scarred employee's at the tanning end. Mercier Frere, a French manufacture of tanning machinery using hydraulics and so quiet. Delivered with control systems, panels included. The original block contactors with a life of weeks, all immediately rebuilt with Brook Motor face plate switch gear for reliability. Everything Brook was on a three months lead time. The face plate was 200mm high, 250mn wide. Large exposed solenoid, Copper contacts with 8mm silver contacts, every copper part was exposed, sou in extremely dangerous. No door isolators that required to be defeated to work live for fault detection. A Brook starter could be rebuilt in minutes with everything exposed for access. Great training. By 1966 my C&G Technicians course stalled at the intermediate level in Somerset. A two year C&G final Technicians course, Industrial Electronics sounded great, all based on 1930's valve theory, forget triacs, quadracs. Our course was the same theory as our lecturers had been taught. Not great for a student who was working in industrial electrics for maintenance and very little contact with electronics other than changing circuit boards and no teaching except the library and a 55-60 hour working week. Keep educating the world Clive.
4 ปีที่แล้ว +12
I wonder why they use resistors instead of capacitors, wouldn't be better to power the the opto isolator using a capacitive power supply? I can only think of cost, a resistor been cheaper that a properly rated capacitor.
Been designing and testing quite large industrial systems. Apart from insulating high and low voltage, optoisolators are used for eliminating ground loops. They are often filtered to to suppress voltage spikes and other EMI. Commercially available optoinsulators can have a time constant of 20 ms. Had a problem in Finland where 3 optocouplers was fitted in series. As the machines speed increased, a pulse train fed into one computer disappeared. Every optocoupler shortened pulse length.
These days I prefer to use the AC-input optos, the type with two parallel LEDs that works on either polarity of input. The circuit then reduces to simply the opto and the resistor. OK, the output is then a series of low-going pulses at 100 Hz rather than a solid low, but its easy to either filter that with a capacitor on the output, or do that in code when driving an Arduino
Interesting module. When I need to detect mains voltage I use a DIY isolator, a neon pilot light assembly shining on an LDR, and heat shrink over both. This kludge provides plenty of isolation and draws hardly any power.
I think this video contains some really good advice for circuit engineers... (especially the part regarding using no more than half the resistor wattage)
Where I need to sense AC in my Arduino projects, I use a plastic encapsulated neon indicator (like a panel indicator lamp with an inbuilt resistor) and an LDR stuck on the outside, and wrapped in black tape. LDRs are pretty slow and I've found that typical response times are around 1/4 sec. The advantage is it's cheap, almost no heat dissipation, and I estimate better than 2500V isolation.
I live in an apartment building where I've taken a number of fan run on timers out with carbonised resistors and PCBs. Got some still operational examples if you wanted to see them. Grossly under power rated resistor in a capacitive dropper, TRIAC you get the idea. Designed to fit in an Australian mains socket. So quite neat. Low production run too. .
Capacitive droppers are much better at conducting interference spikes generated by high power switching circuits. A spike could trigger the optoisolator, giving a faulty indication. Remember that he said the input may run through switches on all floors of the lift / elevator.
@@acmefixer1 I'm pretty certain cost is an issue too. You need two diodes for a cap dropper. The diodes dont cost much but the caps are about 11p compared to 5p for the resistor. The most expensive component is the opto. However the saving on component cost going from cap to resistor is likely to be 10% of the BOM cost.
@@acmefixer1 Just out of curiosity (noob here): Would that be fixable with an inductor in series or maybe a common mode choke? I get that there is also beauty in a simple solution. But assuming I actually were competent enough to fiddle with mains voltage stuff (which I'm not) and wanted to get rid of the -heating- -element- resistor, could I do it that way?
@@Foobar_The_Fat_Penguin Inductors are almost always the worst choice; big-ish, heavy-ish, hard to manufacture, difficult to measure, fragile, and hence expensive compared to other components. As Gordon implies, a cap dropper is almost certainly the best route forward if you don't want to burn a Watt in the resistor; but if the load is multi-kilowatt, wasting less than 0.1% in the resistor is a don't-care.
I use stuff like this all the time we have crazy machines that have to control 5 12 and 24 DC and 12 and 24 AC from PNP sensors and the switching thresholds and voltages get crazy to manage Gotta love older Italian packaging machines
Thing is, BC only raises the prices on *good* stuff. Unless you think that many people bought that high-voltage gay Dalek, as a result of BC's non-recommendation? :-)
We used optoisolators in the reverse direction. A logic level low would turn on the optoisolator. The output of the optoisolator connected to the gate of a triac (solid state relay) would turn it on and provide 120vac/240vac power to the load.
The 5.1v Zener diode is part of the voltage regulator circuit limiting the voltage after the bridge rectifier and the capacitor smooths it and keeps it at 5v, its in turn supplying both opto and emitting led's in series with 2.5v each to turn them on. Its using the 1W ceramic resistor on the AC input as the regulators heat dump.
@@phasehalide The Zener's unnecessary because the LEDs pull the voltage down, and the dropper resistor "defends" the cap (IOW, there's not enough amps to pop it). The resistor is almost certainly carbon or maybe metal-oxide film, because those are penny parts (like everything else on the board, except maybe the terminal blocks). "Ceramic resistors" are certainly a thing, but are generally wirewound and only used in (serious) power applications; and start at £2, so won't be on a £4 opto board. www.google.com/search?q=ceramic+resistor&tbm=isch Let's hope you enjoyed my elaboration, eh.
Undersized zener resistors is a very frequent failure on the pre of guitar and bass amps. They reduce the power stage voltage with a resistor plus zener to save a winding, but the reliability goes down a lot
33k says 24VAC control circuits in that lift controller, though often you find them running on anything from 24-48VAC as they are often a retrofit board to replace old relay or switch logic during an upgrade. Yes running resistors at rating is bad, especially when it is inside an enclosure and thus ambient for it is going to be 100C plus. Had that with an industrial timer, replaced the original 1W resistors with 10W ceramic, which barely fitted in the space, though I was able to do so as the original controller was multivoltage, and had 3 resistors to allow 120VAC, 230VAC and 277VAC so there were 3 1W resistors in a string. 10W resistor was just short enough to replace all 3, and with that, and replacing the 3 well cooked electrolytic capacitors in it, it ran cool and long lasting. Did not need the 2 other voltage tappings, so those wires went away, as the original installer left them bare end loose in the enclosure, despite a note saying to insulate the unused connections.
Another great video Clive, thanks for keeping us both informed and entertained. The HCPL 3700 opto-isolators which have almost all this circuit built in, see 0033mer’s channel for a video on this chip.
I've been trying to grasp the sensing circuits on my heat pump defrost board that uses a PIC micro-controller. The board sends 24vac out to, say the high pressure switch, then back to the board and to a 1K power power resistor to the AC common traces. A thinner trace runs to a 47k resistor then a zener to the 24 vDC negative, thus then through the discrete diode FB rectifier. A 47k resistor also goes to the pin on the PIC m-controller. This video answered some question for me on the software sensing the fluctuation signal and such. I've been thinking of building circuits to sense when my thermostat energizes a signal to track what is being called for when. Such as when it calls for the back up resistive heat, etc. The opto-iso would ensure I'm not loading the signal wires.
12:24 I guess the main problem is wetting current (minimum required current for dry contacts). When the current through a contact is too low it might fail to "break through". We have had this problems on a bunch of relays in our locomotives where contacts started to fail after several years. The current through some of those relay contacts was too low and under the manufacturers specified wetting current. At first we replaced the relays by new ones, but soon found out that we could "electrically clean" the contacts by applying a higher current (about 10% of the max rated current) for several cycles and AC seems to be the best choice for this method.
People might laugh at the part about getting legs reversed going to an elevator but I have seen it happen. On our campus we lost a major distribution leg. The electricians spent several days replacing everything without sleep. I was there when everything was kicked on and out of habit from working in a manufacturing plant with dodgy wiring I looked at the nearest motor and it was indeed spinning backwards. It was decided that it would be easier to redo all the motors on campus than to try to undo the transformer.
@bigclivedotcom This is way orthogonal from the subject of opto-isolators, but you've reminded me of something I think you'll find interesting anyway: Tektronix used to make a scope called the Power Scout which had channel grounds isolated from each other by over a kilovolt, yet they somehow stayed referenced to each other. So you could plug Ch.1 into the five volt trigger signal coming from a motor control logic circuit and Ch.2 into one phase - even across a delta without any ground connection - of say a motor control's 440V output. Try that with a normal scope, and the leads and scope will literally go up in flames along with the control board. I dunno how they did it, and I don't know what - if anything - they have replaced it with. Maybe a competitor like Fluke has something similar in the scopemeter line. oh, and it had a cute little CRT display about 3" across too. I want one still and I don't even have a use case, they're just sexy.
Clive... On the mounting holes... Are they perhaps thinking of mounting this board, as is often done in appliances, on nylon standoffs (often with locking tabs or ears)? It could explain the proximity to the resistor... Oops... Guess I could have read into the comments... :)
Zener is for safety. Current is low, but that still means that slowly the cap gets charged until it (surely) pops. If you use 5RC for fully charged (338V) you get 15 seconds.
The opto discharges the cap; if the opto's broken, the monitored power shows as down -- and it doesn't much matter if the cap explodes (seriously; that tiny cap can't do much damage).
Something more important already failed, that's a much bigger problem. Plus most times, electrolytics just bulge and vent / dry out; almost never explode.
The input resistor and the capacitor in the schematic actually shift the detection by adding a delay. I wouldn't use this for a safety switch especially on an elevator as even half a second of a delay could matter a lot.
Designers often don't consider the temperature rise when resistors are run at their full rated power. A normal carbon film or metal film resistor can have a maximum body temperature (hot-spot) of 150C when run at full rated power and high ambient temperatures. A power metal oxide or wire-wound resistor is even worse and can have a hot-spot temperature of 250-300C when run at full power. It is not surprising that the PCB material, which usually has a maximum continuous temperature rating of 125C, gets burnt when the designer plonks the resistor hard down against the PCB and then runs that resistor at full power for an extended period.
20:06 I personally would design a board with an indicator LED on both sides of the Opto-Isolator so you can see both when the unit sees Mains Power and sends a Low Voltage signal.
Interdasting. The lift safety circuit looks like one my mate used for an "IOT" mains frequency logging application in his old job. He asked for my advice on the circuit and I think I just said it definitely needs to be optoisolated. Pretty sure I also told him I'm not exactly comfortable working with mains, and he should probably ask a real EE.
These boards are sold in three version with different number of channels. There are 8 channel boards, 3 channel boards and then 1 channel boards (the same as in the video). It is interesting that the 3 channel boards are also different from the 1 and 8 channel boards in the fact that they also have a LED in the output part (two indicator LED on each channel).
@@bigclivedotcom as do I.. ordered Dec 24th, tracking says it left China Jan 1st bound for Canada. Here it is Jan 29th.. shipping status hasn't changed.
The weirdest encounter with lifts for me was Aston Uni main building. It was designed with 9 lifts and had had 2 more added to it externally. Using one of the new lifts, I opened the car doors as it was going up. It stopped, as expected. After closing the doors, it set off again - this time going down BUT the floor counter was still counting upward ! I think it got down to the third floor before correcting the counter.
Looks more like there was a roof leak, and that was a drip landing on the cabinet, and coming in a gap in a knockout, and falling on the board all full of goodness from the dust and bird poo there. Could also be a bird nesting on the cabinet top, a pigeon can be pretty fast nesting if you only go into the lift room once a month.
I suspect open collector is more commonly used with PLCs because pulling current is less susceptible to interference than a voltage being detected by a high impedance input.
Oh, so you can use it as an interface to detect, say, power outages and make some automation to react in no time, right? Seems to be quite a nice module to purchase instead of inventing your own dodgy contraptions. Good to know, thanks!
From the "Industrial Lego" perspective, it's quite good; $4 to play, no need to think, start immediately, you're probably ok. But you could design better (cooler, more reliable) and smaller, if you wished.
the rather high 7mA through the opto input might be there to counter ageing of the emitting diode. i remember reading that in the datasheet of an optoisolator, where it said the min value should be fine but that ageing (and tolerance of parts) might occur and you shouldnt run it on the lowest possible currents in more critical applications. (did imagine you saying 7mA or was it the opto i looked up back then... ah yes @10:50)
I wonder why they opted to use a resistive dropper, instead of capacitive? Surely the cost of a chunky 1w resistor is greater than the cost of a small 400v polyester film capacitor... Even with the addition of the standard 1/4w 1MR discharge resistor accross the capacitor, I think it would still be cheaper.
Perhaps longevity? As seen in past videos the capacitance slowly drops with time due to self healing when there are spikes in the line, I've seen a lot of capacitive droppers fail after a while.
The photos looked like a control I/O board with 24vdc inputs on a VFD, a input precharge card to slowly charge up the capacitor bank before turning on the mains on a VFD, and not sure on the 3rd one. Probably the elevator's transmodial termporal inhibitor.
What is the latency of this? I've been interested in a 0 crossing detector to sync an Arduino up to the mains power for use with a triac. I think optocouplers would be too slow for that use though.
I'm planning on a similar use case. Would think the latency is calculated by a sine function; Vpeak×sin(2×π×VfwdOpto÷8.33) = milliseconds. This formula calculator the time to reach optocoupler forward voltage based on a 60hz sinewave. The 8.33 divider is based on zero crossing twice a cycle. But if your worried about latency then consider triggering on the falling edge
Opto-couplers are *very* fast (think 100kHz+, probably in the MHz); mains frequency is 50Hz or 60Hz, nominal. So, feed the opto with un-smoothed input voltage; have the Arduino (or whatever) set a watchdog timer on 10ms or 8.3ms; if the Arduino doesn't get a pulse, count to three or so (because just occasionally, something gets lost) and then trigger an alert.
Sir, please do more about the PLC that you showed briefly at the end of video. Myself and all my friends are currently very very interested in PLC but can't afford the cost of a full featured one. But it looks like you have what we are looking for. Can you see to it my friend?
Not only will this work, some designs use the mains frequency as a clock source. So - yes, if you sample it often enough or have an interrupt callback set up, it should work.
I'm confused - I thought the rectifier output was 315v peak to peak, so how come the LEDs only have about 3v combined? Does it all get sucked into the capacitor and zener, so it's 315v between the rectifier and capacitor, but that piece of wire is at a different potential along its length?
Where i used to work i made Scoreboards for football clubs each character was approx 12" X 12" with 8 x 8 lamps fitted these lamps where 240 Vac 5w all switched by Optoisolators but of coarse worked in the opposite direction all controlled by a Amstrad 486. Later on i made my own 8 channel board which i connected to my Sinclair computer to control Christmas lights Which was Fun.
I must say that sharing your knowledge and experience is a very generous thing to do and to do it with added entertainment value is magic. Thanks Clive.
I just found Clive's channel and I'm absolutely loving it. Very experienced with his stuff and - have to be said - great teacher material.
I need to detect 440v in 3phase @@spawnterror
The zener is there to protect the cap from a smoldering death in case either LED goes open circuit.
The current is very limited, so it might possibly pop, but would be more likely to slowly vent.
@@bigclivedotcom the hiss of sadness...
Magic smoke
@@bigclivedotcom we want to see what happens if you disconnect zener and the LED.
Boom or fzzz.
Whatever, if a cheap zener can prevent just a little goo in your box, fine.
@@bigclivedotcom Are you sure it is zener? Maybe it is there to offer ESD protection to the input side.
Whilst I'm not an engineer who needs to use these on a day-to-day basis, this was very interesting. And handy tips to designers and manufacturers based on your experiences. Good stuff.
I always think designers should work on building stuff so they know all the quirks and potential risks/failures
I'm going to use one to detect when my oil boiler is actually fired up by connecting it to the oik switch solenoid. This will then send the data to Home Assistant which will log the hours burnt and tell me when to refill my oil.
@@WINGNUT307 I'm saddened that you don't have an oink switch solenoid, that might allow you to refill your sausages ;-)
@@WINGNUT307
Good to hear of a link to monitoring your oil boiler with a Big Clive practical application.
He must have been a very accomplished lift engineer with his approach to repair.
Servicing in any trade needs more Clive's, my opinion for fifty years and travelling half the country working for national companies.
As an industrial electrician from the sixties I did a crossover to work as an R&D engineer on oil combustion, including boiler design and then gas combustion after the oil crisis.
My electrcal knowledge gave me fifty years of advantage to help many good mechanical engineers to improve their electrical thought processes.
I made alarm circuits to notify customers when the oil tank was getting low, float switches with mercury switches to prevent any fire risk with arcs and oil vapour venting to atmosphere.
All before Watchman or similar systems when I became a heating service engineer in Dorset and Hampshire. Oil servicing had few respectable craftsman so getting paid to drive around the New Forest was a gift.
Did not expect the discussion to cover elevator control circuit boards. As a journeyman elevator tech in Canada I'm impressed by the depth of your knowledge on our trade. Bang on, and much appreciated.
Thank you Clive! Another great video as always. This is exactly what I needed for my project. I “reverse engineered” my own circuit, but I found that my Esp8266 was occasionally picking up the ripple from the mains. I ended up putting another small electrolytic cap on the logic side of the optocoupler. Works perfectly!
Nice video! 👍 Thank you in all you do!! For myself a retired Electronics Engineer in the past 8 years now and in the "past working in Electronics" from 1972 untill 2013....Iam getting back into Electronics again. It's in the blood!! Thanks for the refreshing videos.
You're probably expected to be mounting something like that with those little nylon push-on press-fit standoffs, not screws...
Yeah, nylon pylons. Or nylon screws.
Are plastic screws a thing?
@@colejohnson66 welcome to our age.
Sorry.
I mean, they literally are, I'm not the only one who thought about them instantly when Clive mentioned that you can easily short the resistor's contact with a metal screw.
@@colejohnson66 and they even can withstand temperatures over 100 °C.
thought the same but still better be designed universal
Careless Whiskers, I love my bootlace ferrules.
I read that as careless whisper, I could already hear the saxophone 🎷
@@rrsbr That pun is very much intended.
Aglet
Mounting holes: I suspect the intent is to use either heat-staked pins or the plastic standoffs that have a split top.
I came to comment the same!
Heat stakes would be my bet. I was trying to figure how to DIN rail mount them.
A very similar tech is used in some 3D printers for the power loss resume function. A 3D printer has about 150-300W worth of heaters and 40W worth of motors, and the PSU is guaranteed to hold over at least 25ms dropout from its stored energy. So when the expected mains pulse is not detected, they can quickly turn off all heaters - and they still have about half the capacitor energy in the PSU left, which is enough to run the relatively frugal motors to move the toolhead a little bit up and prevent damage to the print, and then write a cookie to the internal nonvolatile memory, saying which file was being printed, which line was last finished, and where the toolhead is at at this moment, and then just wait until the power drains from the power supply. When the power resumes, they can just continue printing.
The voltage sensing needs to be mains side, because when you see the voltage dropping on the output of the PSU, it's already too late, it has basically no residual energy left. Also they insert it before the manual power switch, so when you power it off by hand, obviously you wanted it that way, while if the cord is pulled or the mains just collapses, then the power loss resume is activated.
Eventually other ways to implement resume were implemented by just always writing a cookie every layer with no mains side sensing, but it's not nearly as clean.
Spot on Clive as usual,! (Lift engineer here) Even back in the day when I was working on the tool- 1970’s, board repair was discounted, even though a few of us could. Niwdays, it unheard of. Otis CMOS control and OI4 boards were just as this control and shorted regularly, cause all sorts of other unpleasantries.
I know the fan timer pcb you mentioned, it's the same size as the one featured here but a bit longer. I think JW made a video about them a while ago. I've had several fail due to the resistor going thermonuclear so I converted them to half wave capacitive dropper using a 0.22uF X2 capacitor. No more heat and they're all still working.
Honestly Clive i dont know what i would do without you and your Videos.
I was interested to hear your comments about the advantage of high voltage safety circuits compared to low voltage ones.
"It's never gonna spark again, 'till you go reset that breaker, all the black soot settled down, I'm sure that something blew" Yes, Clive, I know that song!
What song?
@@wesleymays1931 Change the first bit to "I'm never gonna dance again".
Just for comparison purposes, here's George: th-cam.com/video/izGwDsrQ1eQ/w-d-xo.html
It seems they never do what used to be done with 'power' resistors, space them from the board, remember the ceramic bead spacers ?
I'm actually glad they didn't decide to draw it as another «fusible resistor» on the board, that'd be a disaster.
I still have a pack of those spacers somewhere. These days I just tend to use 1W resistors running at about 25% dissipation.
It's quite common for ceramic resistors to have very high temperature ratings, a couple of hundred degrees C or more, so the board burns and resistor unsolders, completely unharmed.
I bought a set of lead kinking pliers to get resistors up off of the board neatly. Works about as well as the spacers in my experience.
During my Electrical and Electronic Engineering degree it was suggested that we rate resistors at twice the power if we want a long lasting stable circuit. However, if you are building in obsolescence use the only slightly higher, this ensures a short but acceptable life and more sales!
On the political side, I have a feeling that we are going to be paying a lot more for circuits like this. At least short to medium term.
"Careless Whisker"...this is brilliant and I shall remember that.
I'm just one of those Arduino hobbyists who lives up to the cliché of not knowing WTF I'm doing half the time when it comes to electronics. But I understood this circuit and I see the possibilities. I might even integrate this into a little board that I'm trying to design. Thanks again Big Clive.
The Zener diode is in there in case the infrared LED inside the optoisolator goes bad and becomes an open circuit. In that case, the full RMS voltage (220 x √2 Volt) would build up across the electrolytic capacitor, causing its explosion.
With respect to the canonical design, there is a missing resistor, between the positive of the capacitor and the LED, calculated to limit the current flowing thru the LEDs at 15 mA. In the case of your board is R = 5.1 - ( 1.7 + 1.4) / 0.015 = 120 Ohm. 1.7 V is the Vf of the red LED, and 1.4 V is the Vf of the infrared LED inside the optoisolator.
Thank you for the nice video...
Otherwise where is the voltage difference going? Are the leds working on a higher foward voltage on their curve? or is the zener turned off completely? who wins?
@@robegatt The power would be otherwise dissipated in the 1 Watt resistor. If you draw the V/I diagram of the Zener diode, for all operating conditions, it become self-explanatory.
@@antoniomaglione4101 You did not answer my question.
The cap's behind a high-value resistor, and hence won't explode. May vent, slowly. The Zener's a complete waste of time and money; redundant.
it'd be interesting to see you break down one of those fan run-on timers. i've always wondered how they work
Yet another great exploration and explanation!
Wee see our share of optos that have been damaged for one reason another. Along electrolytics and comms ICs optos are regularly replaced in industrial stuff under repair.
I've been meaning to watch this for days and just got around to it. Interesting little board. Seems like it would be easy to make too. I have all the parts it has. Thanks for the info on changing the resistor for 120 volts.
In Ireland, we call stray strands "hairy mollys"! Most common in lift controllers on mains 3ph terminals where 10 sq tails have been stuffed in without ferrules. Always a nice surprise in a dimly lit plant room 😝
Unless I'm working with vacuum tubes, I'm not a fan of simply letting things run hot/warm like that constantly, especially for something as simple as voltage detection. Yes, "it works," but needless thermal stress is something to be avoided.
A better version of this is to use a capacitive dropper instead of a resistor (which @bigclivedotcom is well familiar with).
I remember getting a belt off a lift door open detector switch many years ago. The switch was two exposed contacts on the edge of the door at mains voltage, the circuit being closed by the steel of the other door.
Being an inquisitive teen-ager I poked them with my finger! They weren't shrouded or anything!
An alternative, and about the same price, is to use an old (functionsl) 5v USB phone charger to your detector pin on your equipment, optionally through an opto-isolator. We use (or have used) this as a solution on ham radio repeaters to detect when we're actually running on battery power rather than commercial power to operate the transmitter at a lower power mode to extend the availability time of the repeater. (Use a resistor, or a voltage divider and resister if needed for 3.3v to limit current going to your micro-controller if you're not running it through an opto-isolator. I'd also recommend validating that the '5v' is correct compared to the ground of what you're sensing with, and isn't incidentally floating at high voltage because someone put in a transformer that's been wound too tight.
What a simple idea. Like it.
You can also make one from a mains neon and an LDR or other photo sensor. The LDR is a less decisive switch than the opto but the mains neon is much easier to make safe if you need to build it without a PCB.
The ones we used to use at Hussmann Refrigeration used a neon and LDR in a heatshrink sleeve to detect defrost activity.
@@bigclivedotcom Hussman, Airdale, Denco, Wright Air Con Birmingham. A lot of time on main frame computer rooms, great for biood pressure with financial services leaving London.
Plus the MoD Dockyards, heating for Concorde's and the Red Arrows etc.
All in my past with a bad experience with a lift during my first week as an apprentice industrial electrician working on the companys lift.
1963, lift room, power off but the brake was jammed off with a wooden wedge as instructed. ?¿?
Meanwhile the burly van driver forced a fourth floor lift open to load with 2/3 hundredweight of leather + driver.
Fortunately I heard the lift motor spinning. 'Presence of mind by me to grab the wedge and the speeding car gently touched the springs.
With a ranting van driver complaining he was a foot below the ground floor and he had never had such a quick trip before, I never explained.
1963, October continued
Neon control for industrial timers made by Brook Motors (the only source in the country, allegedly) Huddersfield.
Only available on three months delivery and with no other source and 200+ Brook timers in control systems built by the company.
Very costly timers and all eggs in one basket.
There was zero stocking from any supplier, wholesaler home or abroad.
Memory prompt, the neon was 50mm long, the board was 90mm, with very few components.
PS the Radiospares catalogue was 20 pages of electronic components.
Catalogue page size the Imperial size of A5.
Potentiomers, carbon track, for Pittards Leather they were used remote mounted to control the Brooks timers.
Prone to arcing or sparking you choose.
Point of History.
From 1914 in the carTanning machinery, British, Turners ltd, ' had to be Yorkshire based, 1914 designed and all clunky, ' withstood lethal quantities of deadly alkalines, skin layers removed in 20 seconds, deadly for live maintenance to flick moving parts.
Massive numbers of scarred employee's at the tanning end.
Mercier Frere, a French manufacture of tanning machinery using hydraulics and so quiet.
Delivered with control systems, panels included.
The original block contactors with a life of weeks, all immediately rebuilt with Brook Motor face plate switch gear for reliability.
Everything Brook was on a three months lead time.
The face plate was 200mm high, 250mn wide.
Large exposed solenoid,
Copper contacts with 8mm silver contacts, every copper part was exposed, sou in extremely dangerous.
No door isolators that required to be defeated to work live for fault detection.
A Brook starter could be rebuilt in minutes with everything exposed for access.
Great training.
By 1966 my C&G Technicians course stalled at the intermediate level in Somerset.
A two year C&G final Technicians course, Industrial Electronics sounded great, all based on 1930's valve theory, forget triacs, quadracs.
Our course was the same theory as our lecturers had been taught. Not great for a student who was working in industrial electrics for maintenance and very little contact with electronics other than changing circuit boards and no teaching except the library and a 55-60 hour working week.
Keep educating the world Clive.
I wonder why they use resistors instead of capacitors, wouldn't be better to power the the opto isolator using a capacitive power supply? I can only think of cost, a resistor been cheaper that a properly rated capacitor.
the careless whiskers are to remind you that your working with live electronics when it goes bang!
Been designing and testing quite large industrial systems. Apart from insulating high and low voltage, optoisolators are used for eliminating ground loops. They are often filtered to to suppress voltage spikes and other EMI. Commercially available optoinsulators can have a time constant of 20 ms. Had a problem in Finland where 3 optocouplers was fitted in series. As the machines speed increased, a pulse train fed into one computer disappeared. Every optocoupler shortened pulse length.
These days I prefer to use the AC-input optos, the type with two parallel LEDs that works on either polarity of input. The circuit then reduces to simply the opto and the resistor.
OK, the output is then a series of low-going pulses at 100 Hz rather than a solid low, but its easy to either filter that with a capacitor on the output, or do that in code when driving an Arduino
Do you mean the H11AA1 ?
@@gedtoon6451 Actually I'm using the TLP620, but its pretty similar to the H11AA1
Interesting module. When I need to detect mains voltage I use a DIY isolator, a neon pilot light assembly shining on an LDR, and heat shrink over both. This kludge provides plenty of isolation and draws hardly any power.
You are right. The QUICKTEST thingy is very practical. I learned that from you quite a while ago and then I got me one from farnell.
I think this video contains some really good advice for circuit engineers... (especially the part regarding using no more than half the resistor wattage)
Where I need to sense AC in my Arduino projects, I use a plastic encapsulated neon indicator (like a panel indicator lamp with an inbuilt resistor) and an LDR stuck on the outside, and wrapped in black tape. LDRs are pretty slow and I've found that typical response times are around 1/4 sec. The advantage is it's cheap, almost no heat dissipation, and I estimate better than 2500V isolation.
This is a great tutorial! Your videos are extremely helpful.
I live in an apartment building where I've taken a number of fan run on timers out with carbonised resistors and PCBs. Got some still operational examples if you wanted to see them. Grossly under power rated resistor in a capacitive dropper, TRIAC you get the idea. Designed to fit in an Australian mains socket. So quite neat. Low production run too. .
Why don't these use capacitative droppers if they have so many problems with resistors? Cost?
Capacitive droppers are much better at conducting interference spikes generated by high power switching circuits. A spike could trigger the optoisolator, giving a faulty indication. Remember that he said the input may run through switches on all floors of the lift / elevator.
@@acmefixer1 Thanks. I wondered that too.
@@acmefixer1 I'm pretty certain cost is an issue too. You need two diodes for a cap dropper. The diodes dont cost much but the caps are about 11p compared to 5p for the resistor. The most expensive component is the opto. However the saving on component cost going from cap to resistor is likely to be 10% of the BOM cost.
@@acmefixer1 Just out of curiosity (noob here): Would that be fixable with an inductor in series or maybe a common mode choke? I get that there is also beauty in a simple solution. But assuming I actually were competent enough to fiddle with mains voltage stuff (which I'm not) and wanted to get rid of the -heating- -element- resistor, could I do it that way?
@@Foobar_The_Fat_Penguin Inductors are almost always the worst choice; big-ish, heavy-ish, hard to manufacture, difficult to measure, fragile, and hence expensive compared to other components.
As Gordon implies, a cap dropper is almost certainly the best route forward if you don't want to burn a Watt in the resistor; but if the load is multi-kilowatt, wasting less than 0.1% in the resistor is a don't-care.
Hahaha love the careless whisker comment!
Back to Basics. Very COoL. Ben has approved this video.
Que buen video! Se nota la pasión por la electrónica, no muchos docentes la tienen, éxitos!
@3:48 The Zener Diode is there for protection and for current limiting just in case something goes wrong.
How does Clive *always* know when I'm laying in bed watching at 3am!?!?
Thank you for the 'always' brightness warning!
I use stuff like this all the time we have crazy machines that have to control 5 12 and 24 DC and 12 and 24 AC from PNP sensors and the switching thresholds and voltages get crazy to manage
Gotta love older Italian packaging machines
with the mounting holes, it would definitely be a good idea to use nylon posts/screws!
Nylon posts?? nah... just leave the board hanging from the cables! (more air flow to cool it!)
The ol twist and fold. Thought I was the only person who did that. The more you know.
or twist and pinch.
..... I recognize my work from 50 years ago by the anti-clockwise (Mollydooker) twist.
A triac 226D we used to use in sound to light units does the same, with a transformer providing some isolation. That is how we USED to do it
raising the prices one review at a time ;)
Whenever they deliver to the Isle of Man, they must've been already expecting an enormous spike of interest in their products! ;D
Thing is, BC only raises the prices on *good* stuff. Unless you think that many people bought that high-voltage gay Dalek, as a result of BC's non-recommendation? :-)
We used optoisolators in the reverse direction. A logic level low would turn on the optoisolator. The output of the optoisolator connected to the gate of a triac (solid state relay) would turn it on and provide 120vac/240vac power to the load.
The 5.1v Zener diode is part of the voltage regulator circuit limiting the voltage after the bridge rectifier and the capacitor smooths it and keeps it at 5v, its in turn supplying both opto and emitting led's in series with 2.5v each to turn them on. Its using the 1W ceramic resistor on the AC input as the regulators heat dump.
The Zener's unnecessary, and that's not a ceramic resistor.
@@theskett and why is the zener unnecessary? What is that power resistor if it's not ceramic coated film resistor? Please do elaborate.
@@phasehalide The Zener's unnecessary because the LEDs pull the voltage down, and the dropper resistor "defends" the cap (IOW, there's not enough amps to pop it).
The resistor is almost certainly carbon or maybe metal-oxide film, because those are penny parts (like everything else on the board, except maybe the terminal blocks).
"Ceramic resistors" are certainly a thing, but are generally wirewound and only used in (serious) power applications; and start at £2, so won't be on a £4 opto board.
www.google.com/search?q=ceramic+resistor&tbm=isch
Let's hope you enjoyed my elaboration, eh.
You could use it in home automation to do voltage detection past the breakers and detect if it had tripped.
But only if the monitoring kit was on a UPS or equivalent, which most people don't have.
@@theskett The home automation computer would be powered via separate breakers not used by anything else.
Undersized zener resistors is a very frequent failure on the pre of guitar and bass amps. They reduce the power stage voltage with a resistor plus zener to save a winding, but the reliability goes down a lot
33k says 24VAC control circuits in that lift controller, though often you find them running on anything from 24-48VAC as they are often a retrofit board to replace old relay or switch logic during an upgrade.
Yes running resistors at rating is bad, especially when it is inside an enclosure and thus ambient for it is going to be 100C plus. Had that with an industrial timer, replaced the original 1W resistors with 10W ceramic, which barely fitted in the space, though I was able to do so as the original controller was multivoltage, and had 3 resistors to allow 120VAC, 230VAC and 277VAC so there were 3 1W resistors in a string. 10W resistor was just short enough to replace all 3, and with that, and replacing the 3 well cooked electrolytic capacitors in it, it ran cool and long lasting. Did not need the 2 other voltage tappings, so those wires went away, as the original installer left them bare end loose in the enclosure, despite a note saying to insulate the unused connections.
Another great video Clive, thanks for keeping us both informed and entertained.
The HCPL 3700 opto-isolators which have almost all this circuit built in, see 0033mer’s channel for a video on this chip.
9:30 Which brand is this? Looks like a mikeselectricstuff brand.
I've been trying to grasp the sensing circuits on my heat pump defrost board that uses a PIC micro-controller. The board sends 24vac out to, say the high pressure switch, then back to the board and to a 1K power power resistor to the AC common traces. A thinner trace runs to a 47k resistor then a zener to the 24 vDC negative, thus then through the discrete diode FB rectifier. A 47k resistor also goes to the pin on the PIC m-controller. This video answered some question for me on the software sensing the fluctuation signal and such.
I've been thinking of building circuits to sense when my thermostat energizes a signal to track what is being called for when. Such as when it calls for the back up resistive heat, etc. The opto-iso would ensure I'm not loading the signal wires.
Wouldnt the risk of careless whiskers be reduced by using ferrules rather than twist and bend? For more permanent contraptions than this?
The galvanic Isolation and the high voltage zone looks well thought out, only the bare components might be not the safest option for makers,
12:24 I guess the main problem is wetting current (minimum required current for dry contacts). When the current through a contact is too low it might fail to "break through".
We have had this problems on a bunch of relays in our locomotives where contacts started to fail after several years. The current through some of those relay contacts was too low and under the manufacturers specified wetting current.
At first we replaced the relays by new ones, but soon found out that we could "electrically clean" the contacts by applying a higher current (about 10% of the max rated current) for several cycles and AC seems to be the best choice for this method.
I lost it at careless whisker, thanks uncle Clive!
Id love to see a module for the other direction - low level DC control to AC output.
you have a lot of useful experienced knowledge.
People might laugh at the part about getting legs reversed going to an elevator but I have seen it happen. On our campus we lost a major distribution leg. The electricians spent several days replacing everything without sleep. I was there when everything was kicked on and out of habit from working in a manufacturing plant with dodgy wiring I looked at the nearest motor and it was indeed spinning backwards. It was decided that it would be easier to redo all the motors on campus than to try to undo the transformer.
@bigclivedotcom This is way orthogonal from the subject of opto-isolators, but you've reminded me of something I think you'll find interesting anyway: Tektronix used to make a scope called the Power Scout which had channel grounds isolated from each other by over a kilovolt, yet they somehow stayed referenced to each other. So you could plug Ch.1 into the five volt trigger signal coming from a motor control logic circuit and Ch.2 into one phase - even across a delta without any ground connection - of say a motor control's 440V output. Try that with a normal scope, and the leads and scope will literally go up in flames along with the control board. I dunno how they did it, and I don't know what - if anything - they have replaced it with. Maybe a competitor like Fluke has something similar in the scopemeter line. oh, and it had a cute little CRT display about 3" across too. I want one still and I don't even have a use case, they're just sexy.
For safety reasons, always use nylon spacers to mount the board to any metal enclosure.
nice! I have a couple of them, need to make use of them some day :) I'll steal "the careless whisker" expression 😉👍 Thanks Clive!
you also want to use isolating standoffs on the screws so you dont get leakage current i suppose since there is isolation
the first board is IMEM lifts and the safety voltage is 110v AC.
Clive... On the mounting holes... Are they perhaps thinking of mounting this board, as is often done in appliances, on nylon standoffs (often with locking tabs or ears)? It could explain the proximity to the resistor... Oops... Guess I could have read into the comments... :)
Zener is for safety. Current is low, but that still means that slowly the cap gets charged until it (surely) pops. If you use 5RC for fully charged (338V) you get 15 seconds.
The opto discharges the cap; if the opto's broken, the monitored power shows as down -- and it doesn't much matter if the cap explodes (seriously; that tiny cap can't do much damage).
@@theskett True, but it still gives an unpredictable mess.
Something more important already failed, that's a much bigger problem.
Plus most times, electrolytics just bulge and vent / dry out; almost never explode.
I had a whisker yesterday soldering a barrel jack. All good now.
The input resistor and the capacitor in the schematic actually shift the detection by adding a delay. I wouldn't use this for a safety switch especially on an elevator as even half a second of a delay could matter a lot.
Designers often don't consider the temperature rise when resistors are run at their full rated power. A normal carbon film or metal film resistor can have a maximum body temperature (hot-spot) of 150C when run at full rated power and high ambient temperatures. A power metal oxide or wire-wound resistor is even worse and can have a hot-spot temperature of 250-300C when run at full power.
It is not surprising that the PCB material, which usually has a maximum continuous temperature rating of 125C, gets burnt when the designer plonks the resistor hard down against the PCB and then runs that resistor at full power for an extended period.
20:06 I personally would design a board with an indicator LED on both sides of the Opto-Isolator so you can see both when the unit sees Mains Power and sends a Low Voltage signal.
Interdasting. The lift safety circuit looks like one my mate used for an "IOT" mains frequency logging application in his old job. He asked for my advice on the circuit and I think I just said it definitely needs to be optoisolated. Pretty sure I also told him I'm not exactly comfortable working with mains, and he should probably ask a real EE.
Could this be improved by using a capacitor instead of the resistor?
These boards are sold in three version with different number of channels.
There are 8 channel boards, 3 channel boards and
then 1 channel boards (the same as in the video). It is interesting that the 3 channel boards are also different from the 1 and 8 channel boards in the fact that they also have a LED in the output part (two indicator LED on each channel).
I have a 3 channel on it's way.
@@bigclivedotcom as do I.. ordered Dec 24th, tracking says it left China Jan 1st bound for Canada. Here it is Jan 29th.. shipping status hasn't changed.
19:15 What "PLC" was this?
The weirdest encounter with lifts for me was Aston Uni main building. It was designed with 9 lifts and had had 2 more added to it externally. Using one of the new lifts, I opened the car doors as it was going up. It stopped, as expected. After closing the doors, it set off again - this time going down BUT the floor counter was still counting upward ! I think it got down to the third floor before correcting the counter.
surely it is intended to mount on nylon pegs rather than with screws Clive?
Awesome review! Thanks a ton!
The board with the "liquid" damage looks like someone has "gobbed" on the resistors to see if their hot.
Ewww!
Looks more like there was a roof leak, and that was a drip landing on the cabinet, and coming in a gap in a knockout, and falling on the board all full of goodness from the dust and bird poo there. Could also be a bird nesting on the cabinet top, a pigeon can be pretty fast nesting if you only go into the lift room once a month.
I suspect open collector is more commonly used with PLCs because pulling current is less susceptible to interference than a voltage being detected by a high impedance input.
Oh, so you can use it as an interface to detect, say, power outages and make some automation to react in no time, right?
Seems to be quite a nice module to purchase instead of inventing your own dodgy contraptions. Good to know, thanks!
It's so dodgy, most pros can build the components into their circuit with more quality.
From the "Industrial Lego" perspective, it's quite good; $4 to play, no need to think, start immediately, you're probably ok.
But you could design better (cooler, more reliable) and smaller, if you wished.
the rather high 7mA through the opto input might be there to counter ageing of the emitting diode. i remember reading that in the datasheet of an optoisolator, where it said the min value should be fine but that ageing (and tolerance of parts) might occur and you shouldnt run it on the lowest possible currents in more critical applications.
(did imagine you saying 7mA or was it the opto i looked up back then... ah yes @10:50)
I wonder why they opted to use a resistive dropper, instead of capacitive?
Surely the cost of a chunky 1w resistor is greater than the cost of a small 400v polyester film capacitor... Even with the addition of the standard 1/4w 1MR discharge resistor accross the capacitor, I think it would still be cheaper.
one component less to mount
I was wondering the same thing, we need a definitive answer from the Great Sage Clive.
Perhaps longevity? As seen in past videos the capacitance slowly drops with time due to self healing when there are spikes in the line, I've seen a lot of capacitive droppers fail after a while.
@@Gengh13 Good point, a film and foil snubber cap that won't slowly eat itself in that application is gonna cost way more than that resistor.
Economics matters most. Pretty sure none of the manufacturers / vendors give a damn about longevity, they just want non-DOA at minimum cost.
Neat demo and tutorial. I'm going to try to find an excuse to use these. They are too cool to pass up.
I wonder if the zener diode is there in case the high voltage load is inductive like a motor, starting and stopping might cause flyback.
The photos looked like a control I/O board with 24vdc inputs on a VFD, a input precharge card to slowly charge up the capacitor bank before turning on the mains on a VFD, and not sure on the 3rd one. Probably the elevator's transmodial termporal inhibitor.
What is the latency of this? I've been interested in a 0 crossing detector to sync an Arduino up to the mains power for use with a triac. I think optocouplers would be too slow for that use though.
I'm planning on a similar use case. Would think the latency is calculated by a sine function; Vpeak×sin(2×π×VfwdOpto÷8.33) = milliseconds. This formula calculator the time to reach optocoupler forward voltage based on a 60hz sinewave. The 8.33 divider is based on zero crossing twice a cycle. But if your worried about latency then consider triggering on the falling edge
Opto-couplers are *very* fast (think 100kHz+, probably in the MHz); mains frequency is 50Hz or 60Hz, nominal.
So, feed the opto with un-smoothed input voltage; have the Arduino (or whatever) set a watchdog timer on 10ms or 8.3ms; if the Arduino doesn't get a pulse, count to three or so (because just occasionally, something gets lost) and then trigger an alert.
Yes indeed, the component maximum power rating is a limit, not a target.
Thanks for uploading to odysee at the same time as YT!
I like these and have used a few in the past (~20 or so), but I think I'll always stick with a relay in low-frequency applications.
Sir, please do more about the PLC that you showed briefly at the end of video. Myself and all my friends are currently very very interested in PLC but can't afford the cost of a full featured one. But it looks like you have what we are looking for. Can you see to it my friend?
Search eBay for PLC modules.
Mounting boards like that, I use plastic sleeves. Can usually find some sort of utility hose that is just the right size.
You put the board in a plastic sleeve? Normally I'd approve, but in this case the resistor will overheat.
Could the cap be removed to count half waves with a micro controller measuring mains frequency? I Think that would work!
Not only will this work, some designs use the mains frequency as a clock source. So - yes, if you sample it often enough or have an interrupt callback set up, it should work.
@Kalandro99
with bridge rectifier and no cap you will get 100 pulses per second :-)
@@YTANDY100 unless you're in the split-phase land of the 60 hz electronics and it is 120 pulses.
I'm confused - I thought the rectifier output was 315v peak to peak, so how come the LEDs only have about 3v combined? Does it all get sucked into the capacitor and zener, so it's 315v between the rectifier and capacitor, but that piece of wire is at a different potential along its length?
I feel elevated....
Where i used to work i made Scoreboards for football clubs each character was approx 12" X 12" with 8 x 8 lamps fitted these lamps where 240 Vac 5w all switched by Optoisolators but of coarse worked in the opposite direction all controlled by a Amstrad 486. Later on i made my own 8 channel board which i connected to my Sinclair computer to control Christmas lights Which was Fun.