120/240V to logic level optoisolator (with schematic)

Sdílet
Vložit
  • čas přidán 27. 08. 2024

Komentáře • 617

  • @BenMitro
    @BenMitro Před 3 lety +59

    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.

    • @spawnterror
      @spawnterror Před 3 lety

      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.

    • @MrNams
      @MrNams Před 10 měsíci

      I need to detect 440v in 3phase @@spawnterror

  • @stargazer7644
    @stargazer7644 Před 3 lety +91

    The zener is there to protect the cap from a smoldering death in case either LED goes open circuit.

    • @user-gx6jb6wc5g
      @user-gx6jb6wc5g  Před 3 lety +22

      The current is very limited, so it might possibly pop, but would be more likely to slowly vent.

    • @someguy2741
      @someguy2741 Před 3 lety +23

      @@user-gx6jb6wc5g the hiss of sadness...

    • @TECHnoman753
      @TECHnoman753 Před 3 lety +4

      Magic smoke

    • @LeifNelandDk
      @LeifNelandDk Před 3 lety +7

      @@user-gx6jb6wc5g 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.

    • @user255
      @user255 Před 3 lety

      @@user-gx6jb6wc5g Are you sure it is zener? Maybe it is there to offer ESD protection to the input side.

  • @GreenJimll
    @GreenJimll Před 3 lety +41

    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.

    • @hotmailcompany52
      @hotmailcompany52 Před 3 lety +6

      I always think designers should work on building stuff so they know all the quirks and potential risks/failures

    • @WINGNUT307
      @WINGNUT307 Před 3 lety +2

      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.

    • @theskett
      @theskett Před 3 lety +1

      @@WINGNUT307 I'm saddened that you don't have an oink switch solenoid, that might allow you to refill your sausages ;-)

    • @thisismyuniquestory
      @thisismyuniquestory Před 3 lety

      @@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.

  • @joshhaughton1893
    @joshhaughton1893 Před 2 lety +8

    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.

  • @APSuk2
    @APSuk2 Před 3 lety +68

    Careless Whiskers, I love my bootlace ferrules.

    • @rrsbr
      @rrsbr Před 3 lety +4

      I read that as careless whisper, I could already hear the saxophone 🎷

    • @Anvilshock
      @Anvilshock Před 3 lety +1

      @@rrsbr That pun is very much intended.

    • @captainboing
      @captainboing Před měsícem

      Aglet

  • @drussell_
    @drussell_ Před 3 lety +131

    You're probably expected to be mounting something like that with those little nylon push-on press-fit standoffs, not screws...

    • @jkobain
      @jkobain Před 3 lety +14

      Yeah, nylon pylons. Or nylon screws.

    • @colejohnson66
      @colejohnson66 Před 3 lety +8

      Are plastic screws a thing?

    • @jkobain
      @jkobain Před 3 lety +12

      @@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.

    • @jkobain
      @jkobain Před 3 lety +7

      @@colejohnson66 and they even can withstand temperatures over 100 °C.

    • @AlexanderBukh
      @AlexanderBukh Před 3 lety +4

      thought the same but still better be designed universal

  • @DeputatKaktus
    @DeputatKaktus Před 3 lety +5

    "Careless Whisker"...this is brilliant and I shall remember that.

  • @DerMarkus1982
    @DerMarkus1982 Před 3 lety +46

    "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!

    • @wesleymays1931
      @wesleymays1931 Před 3 lety

      What song?

    • @Graham_Langley
      @Graham_Langley Před 3 lety +1

      @@wesleymays1931 Change the first bit to "I'm never gonna dance again".

    • @theskett
      @theskett Před 3 lety

      Just for comparison purposes, here's George: czcams.com/video/izGwDsrQ1eQ/video.html

  • @MrConnor128
    @MrConnor128 Před 2 lety +3

    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!

  • @jameshunt2141
    @jameshunt2141 Před 3 lety +11

    the careless whiskers are to remind you that your working with live electronics when it goes bang!

  • @Robert-hr6sh
    @Robert-hr6sh Před rokem

    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.

  • @SianaGearz
    @SianaGearz Před 3 lety +2

    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.

  • @rick_.
    @rick_. Před 3 lety +34

    Mounting holes: I suspect the intent is to use either heat-staked pins or the plastic standoffs that have a split top.

    • @templebrown7179
      @templebrown7179 Před 3 lety +2

      I came to comment the same!

    • @gordonlawrence1448
      @gordonlawrence1448 Před 3 lety +2

      Heat stakes would be my bet. I was trying to figure how to DIN rail mount them.

  • @rich3500
    @rich3500 Před 3 lety +6

    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.

  • @holzwurm_hd7029
    @holzwurm_hd7029 Před 3 lety

    Honestly Clive i dont know what i would do without you and your Videos.

  • @thoughtful_criticiser
    @thoughtful_criticiser Před 3 lety +4

    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.

  • @RNMSC
    @RNMSC Před 3 lety +2

    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.

    • @Seiskid
      @Seiskid Před 3 lety

      What a simple idea. Like it.

  • @patrickjmorgan
    @patrickjmorgan Před 3 lety

    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.

  • @SigEpBlue
    @SigEpBlue Před 3 lety +13

    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.

    • @muxerbaker4638
      @muxerbaker4638 Před 3 lety +4

      A better version of this is to use a capacitive dropper instead of a resistor (which @bigclivedotcom is well familiar with).

  • @mikepurdy1738
    @mikepurdy1738 Před 3 lety +3

    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 😝

  • @David8n
    @David8n Před 3 lety +4

    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!

  • @darylcheshire1618
    @darylcheshire1618 Před 3 lety +7

    I was interested to hear your comments about the advantage of high voltage safety circuits compared to low voltage ones.

  • @ovalwingnut
    @ovalwingnut Před 3 lety

    Back to Basics. Very COoL. Ben has approved this video.

  • @olavl8827
    @olavl8827 Před 3 lety

    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.

  • @stridermt2k
    @stridermt2k Před 3 lety +1

    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.

  • @davidfaraday3085
    @davidfaraday3085 Před 3 lety +8

    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

    • @gedtoon6451
      @gedtoon6451 Před 3 lety

      Do you mean the H11AA1 ?

    • @davidfaraday3085
      @davidfaraday3085 Před 3 lety

      @@gedtoon6451 Actually I'm using the TLP620, but its pretty similar to the H11AA1

  • @jasharin
    @jasharin Před 3 lety +7

    it'd be interesting to see you break down one of those fan run-on timers. i've always wondered how they work

  • @sparkyprojects
    @sparkyprojects Před 3 lety +35

    It seems they never do what used to be done with 'power' resistors, space them from the board, remember the ceramic bead spacers ?

    • @jkobain
      @jkobain Před 3 lety +2

      I'm actually glad they didn't decide to draw it as another «fusible resistor» on the board, that'd be a disaster.

    • @gordonlawrence1448
      @gordonlawrence1448 Před 3 lety +5

      I still have a pack of those spacers somewhere. These days I just tend to use 1W resistors running at about 25% dissipation.

    • @alunjones3860
      @alunjones3860 Před 3 lety +5

      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.

    • @bugdrvr
      @bugdrvr Před 3 lety +2

      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.

  • @Mike40M
    @Mike40M Před 7 měsíci

    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.

  • @antoniomaglione4101
    @antoniomaglione4101 Před 3 lety +2

    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...

    • @robegatt
      @robegatt Před 3 lety

      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?

    • @antoniomaglione4101
      @antoniomaglione4101 Před 3 lety

      @@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.

    • @robegatt
      @robegatt Před 3 lety

      @@antoniomaglione4101 You did not answer my question.

    • @theskett
      @theskett Před 3 lety

      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.

  • @stevenA44
    @stevenA44 Před 3 lety

    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.

  • @Gold63Beast
    @Gold63Beast Před 3 lety +8

    The ol twist and fold. Thought I was the only person who did that. The more you know.

    • @empanada401
      @empanada401 Před 3 lety

      or twist and pinch.

    • @robbieaussievic
      @robbieaussievic Před 3 lety

      ..... I recognize my work from 50 years ago by the anti-clockwise (Mollydooker) twist.

  • @nixxonnor
    @nixxonnor Před 3 lety

    I think this video contains some really good advice for circuit engineers... (especially the part regarding using no more than half the resistor wattage)

  • @michaelreilly5783
    @michaelreilly5783 Před 3 lety +2

    This is a great tutorial! Your videos are extremely helpful.

  • @tomschmidt381
    @tomschmidt381 Před 3 lety +1

    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.

  • @chrisdash9803
    @chrisdash9803 Před 3 lety +37

    Hahaha love the careless whisker comment!

  • @ytgsmithwa
    @ytgsmithwa Před 3 lety +1

    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.

  • @danburch9989
    @danburch9989 Před 3 lety

    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.

  •  Před 3 lety +13

    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.

  • @jacobwcrosby
    @jacobwcrosby Před 2 lety

    How does Clive *always* know when I'm laying in bed watching at 3am!?!?
    Thank you for the 'always' brightness warning!

  • @user-wp8zc8jy5n
    @user-wp8zc8jy5n Před 7 měsíci

    you have a lot of useful experienced knowledge.

  • @davidquirk8097
    @davidquirk8097 Před 3 lety +18

    AvE calls it 'Beach Ready' i.e., no stray hairs hanging out.

  • @markkayser426
    @markkayser426 Před 3 lety +1

    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.

  • @twogitsinacar4811
    @twogitsinacar4811 Před 3 lety +1

    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

  • @ghlscitel6714
    @ghlscitel6714 Před 3 lety

    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.

  • @theelmonk
    @theelmonk Před 3 lety +6

    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.

    • @user-gx6jb6wc5g
      @user-gx6jb6wc5g  Před 3 lety +9

      The ones we used to use at Hussmann Refrigeration used a neon and LDR in a heatshrink sleeve to detect defrost activity.

    • @thisismyuniquestory
      @thisismyuniquestory Před 3 lety

      @@user-gx6jb6wc5g 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.

  • @vk3fbab
    @vk3fbab Před 3 lety

    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. .

  • @3v1Bunny
    @3v1Bunny Před 3 lety +13

    raising the prices one review at a time ;)

    • @jkobain
      @jkobain Před 3 lety +3

      Whenever they deliver to the Isle of Man, they must've been already expecting an enormous spike of interest in their products! ;D

    • @theskett
      @theskett Před 3 lety +2

      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? :-)

  • @Zardox-The-Heretic-Slayer

    with the mounting holes, it would definitely be a good idea to use nylon posts/screws!

    • @zebo-the-fat
      @zebo-the-fat Před 3 lety

      Nylon posts?? nah... just leave the board hanging from the cables! (more air flow to cool it!)

  • @tommays56
    @tommays56 Před 3 lety

    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

  • @vidasvv
    @vidasvv Před 3 lety +5

    Its double sided so people south of the equator can use it ( keeps the electrons from falling out )

  • @SeanBZA
    @SeanBZA Před 3 lety +1

    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.

  • @stephenbell9257
    @stephenbell9257 Před 3 lety +1

    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.

  • @MaxiG
    @MaxiG Před 3 lety

    Que buen video! Se nota la pasión por la electrónica, no muchos docentes la tienen, éxitos!

  • @alunjones3860
    @alunjones3860 Před 3 lety

    For safety reasons, always use nylon spacers to mount the board to any metal enclosure.

  • @jassenjj
    @jassenjj Před 3 lety

    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.

  • @Richie_
    @Richie_ Před rokem

    I had a whisker yesterday soldering a barrel jack. All good now.

  • @Arek_R.
    @Arek_R. Před 3 lety +1

    You could use it in home automation to do voltage detection past the breakers and detect if it had tripped.

    • @theskett
      @theskett Před 3 lety

      But only if the monitoring kit was on a UPS or equivalent, which most people don't have.

    • @Arek_R.
      @Arek_R. Před 3 lety

      @@theskett The home automation computer would be powered via separate breakers not used by anything else.

  • @pagiatis
    @pagiatis Před 3 lety

    I lost it at careless whisker, thanks uncle Clive!

  • @bdunderscore
    @bdunderscore Před 3 lety +9

    Why don't these use capacitative droppers if they have so many problems with resistors? Cost?

    • @acmefixer1
      @acmefixer1 Před 3 lety +5

      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.

    • @richardhemingway6084
      @richardhemingway6084 Před 3 lety

      @@acmefixer1 Thanks. I wondered that too.

    • @gordonlawrence1448
      @gordonlawrence1448 Před 3 lety +1

      @@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.

    • @Foobar_The_Fat_Penguin
      @Foobar_The_Fat_Penguin Před 3 lety

      @@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?

    • @theskett
      @theskett Před 3 lety

      @@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.

  • @phasehalide
    @phasehalide Před 3 lety +1

    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.

    • @theskett
      @theskett Před 3 lety

      The Zener's unnecessary, and that's not a ceramic resistor.

    • @phasehalide
      @phasehalide Před 3 lety

      @@theskett and why is the zener unnecessary? What is that power resistor if it's not ceramic coated film resistor? Please do elaborate.

    • @theskett
      @theskett Před 3 lety

      ​@@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.

  • @swatcat7928
    @swatcat7928 Před 3 lety +10

    Once the resistor go black, they will never go back :)

  • @berndeckenfels
    @berndeckenfels Před 3 lety

    The galvanic Isolation and the high voltage zone looks well thought out, only the bare components might be not the safest option for makers,

  • @Mountain-Man-3000
    @Mountain-Man-3000 Před 3 lety +1

    I feel like Cliff owes you a commission from the number of people turned onto the Quicktest from your videos.

  • @scarpaz
    @scarpaz Před 3 lety

    The **careless whisker** pun is great.

  • @ATMAtim
    @ATMAtim Před 3 lety +1

    Neat demo and tutorial. I'm going to try to find an excuse to use these. They are too cool to pass up.

  • @hadireg
    @hadireg Před 3 lety

    nice! I have a couple of them, need to make use of them some day :) I'll steal "the careless whisker" expression 😉👍 Thanks Clive!

  • @erikdenhouter
    @erikdenhouter Před 3 lety

    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.

    • @theskett
      @theskett Před 3 lety

      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).

    • @erikdenhouter
      @erikdenhouter Před 3 lety

      @@theskett True, but it still gives an unpredictable mess.

    • @theskett
      @theskett Před 3 lety

      Something more important already failed, that's a much bigger problem.
      Plus most times, electrolytics just bulge and vent / dry out; almost never explode.

  • @TigerP1
    @TigerP1 Před 3 lety +3

    "A George Michel" - That made me laugh at 5am

  • @robegatt
    @robegatt Před 3 lety +4

    And today we again managed to turn a led on with an electronic circuit.☺️

    • @jkobain
      @jkobain Před 3 lety +2

      These three LEDs deserved that!

    • @robegatt
      @robegatt Před 3 lety +1

      @@jkobain LEDs always deserve the best!

  • @IanDarley
    @IanDarley Před 3 lety +1

    Yes indeed, the component maximum power rating is a limit, not a target.

  • @railgap
    @railgap Před 3 lety +1

    @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.

  • @davidjones9730
    @davidjones9730 Před 3 lety

    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.

  • @kevinmartin7760
    @kevinmartin7760 Před 3 lety

    If the circuit is using a full bridge rectifier and a filter capacitor, it could use a capacitor instead of a resistor to drop the voltage thus avoiding the big power dissipation. This would, of course, not work for doing phase detection! It would also need a discharge resistor on the dropper cap.

  • @UpLateGeek
    @UpLateGeek Před 3 lety +1

    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.

  • @hamza4537
    @hamza4537 Před 3 lety

    the first board is IMEM lifts and the safety voltage is 110v AC.

  • @andydelle4509
    @andydelle4509 Před 3 lety

    A product like that really needs to be safety listed. UL, in the USA, for example. Also for the novices here, that opto transistor does not really pull down to zero volts. It pulls down to 0.6v or what ever the transistor junction voltage is. They do make FET based opto couplers that can get down to the 0.3v range, perhaps lower. But it will never be like a true mechanical relay. It's rare but sometimes you need an electronic switch with a true "bolted" short capability. You can do it electronically but it involves negative supply rails and a more complex circuit.

    • @theskett
      @theskett Před 3 lety

      A saturated transistor will have Vce well below Vbe; I'm fairly sure I've seen 100mV, but these guys offer 400mV: electronics.stackexchange.com/questions/13063/how-do-i-saturate-an-npn-transistor

  • @wktodd
    @wktodd Před 3 lety +1

    I remember reading "resisters,like politicians, should be open and above board"

  • @andreipastushuk3234
    @andreipastushuk3234 Před 3 lety +1

    Awesome review! Thanks a ton!

  • @dancoulson6579
    @dancoulson6579 Před 3 lety +4

    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.

    • @robegatt
      @robegatt Před 3 lety +1

      one component less to mount

    • @richardturton6900
      @richardturton6900 Před 3 lety

      I was wondering the same thing, we need a definitive answer from the Great Sage Clive.

    • @Gengh13
      @Gengh13 Před 3 lety +1

      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.

    • @Broken_Yugo
      @Broken_Yugo Před 3 lety +3

      @@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.

    • @theskett
      @theskett Před 3 lety

      Economics matters most. Pretty sure none of the manufacturers / vendors give a damn about longevity, they just want non-DOA at minimum cost.

  • @iStormUK
    @iStormUK Před 3 lety

    You need another disclaimer beside 'mind your eyes light is coming back', "Mind your brain, you will learn something interesting!" I always manage to pick something up from these, even the soda stream vids.. :D

  • @weerobot
    @weerobot Před 3 lety +1

    I feel elevated....

  • @HappilyHomicidalHooligan
    @HappilyHomicidalHooligan Před 3 lety +1

    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.

  • @MrJef06
    @MrJef06 Před 3 lety +3

    Thanks for uploading to odysee at the same time as YT!

  • @RcAircraft
    @RcAircraft Před 3 lety

    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.

  • @rimmersbryggeri
    @rimmersbryggeri Před 3 lety +1

    Wouldnt the risk of careless whiskers be reduced by using ferrules rather than twist and bend? For more permanent contraptions than this?

  • @tonyweavers4292
    @tonyweavers4292 Před 3 lety +2

    Could this be improved by using a capacitor instead of the resistor?

  • @Roy_Tellason
    @Roy_Tellason Před rokem

    I suspect that the reason they're so casual about locating those mounting holes is that rather than using screws as you mention they're probably assuming the use of those plastic thingies that you find all over equipment these days, which would just push in, and not get all that close to the resistor...

  • @duncanpotter5838
    @duncanpotter5838 Před 3 lety +1

    Id love to see a module for the other direction - low level DC control to AC output.

  • @Seiskid
    @Seiskid Před 3 lety

    Interesting little circuit board - a lot cheaper than the other option which is a 240v relay.

  • @fifaham
    @fifaham Před 3 lety

    @3:48 The Zener Diode is there for protection and for current limiting just in case something goes wrong.

  • @ppdan
    @ppdan Před 3 lety

    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.

  • @afeathereddinosaur
    @afeathereddinosaur Před 3 lety

    Double sided circuits are cool, I had to engrave one of those by hand with a blank plaque and some chemicals that certainly wouldn't do well down the drain, pretty fun thing to do

    • @TheBackyardChemist
      @TheBackyardChemist Před 3 lety

      Most likely iron (III) chloride (aka. ferric chloride), looks extremely brown when concentrated and yellow when diluted.

    • @afeathereddinosaur
      @afeathereddinosaur Před 3 lety

      @@TheBackyardChemist yes, I did use it!

  • @jkbrown5496
    @jkbrown5496 Před 3 lety

    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.

  • @saddle1940
    @saddle1940 Před 3 lety

    Just my 2c worth.
    Having designed many of these into circuits for detecting mains, I'd never make one that has the led in the opto on all the time with all that heat pouring out of the resistor. With a couple of transistors (1 npn, 1 pnp) on the mains side, you can turn it into a missing pulse design getting the opto pulsed on only at the zero crossing point, only on for a tiny fraction of the time. The 150k can be a much higher value (and should be multiple series resistors, not one). The circuit will now dissipate very little heat. With a missing pulse design, you will immediately know when mains is not present. The presented circuit has a significant decay time before detection because the voltage on the cap needs to collapse first.

    • @theskett
      @theskett Před 3 lety

      The opto's only going to dissipate milliwatts, so "LED in the opto, on all the time" is a non-problem.
      The hot resistor is potentially a problem, but that was an economics design choice.
      Your "missing pulse" choice requires significantly more software effort than most Arduino users would be willing to apply, so isn't very attractive.

  • @Berraud
    @Berraud Před 3 lety

    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

  • @gudmundureinarsson497
    @gudmundureinarsson497 Před 3 lety

    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).

    • @user-gx6jb6wc5g
      @user-gx6jb6wc5g  Před 3 lety +2

      I have a 3 channel on it's way.

    • @sydcarter3
      @sydcarter3 Před 3 lety

      @@user-gx6jb6wc5g 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.

  • @richardturton6900
    @richardturton6900 Před 3 lety +10

    The board with the "liquid" damage looks like someone has "gobbed" on the resistors to see if their hot.

    • @user-gx6jb6wc5g
      @user-gx6jb6wc5g  Před 3 lety +6

      Ewww!

    • @SeanBZA
      @SeanBZA Před 3 lety +2

      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.

  • @zagabog
    @zagabog Před 3 lety

    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.

  • @calinbaciu
    @calinbaciu Před 3 lety

    I would change 150k resistor with series capacitor. By that, zener diode can be removed.