Author Topic: Why not use digital isolators in hobby microcontroller and USB designs?  (Read 2583 times)

0 Members and 3 Guests are viewing this topic.

Offline tszaboo

  • Super Contributor
  • ***
  • Posts: 7583
  • Country: nl
  • Current job: ATEX product design
Re: Why not use digital isolators?
« Reply #50 on: July 02, 2024, 01:38:05 pm »
I'm thinking of making a new slim-line one with WCH CH552G, as JLCPCB has both TI ISO6721 and CH552G in stock for assembly ($1.19 and $0.58, respectively; with AP2112K-3.3 for the 3.3V regulator at $0.08, plus some supply bypass capacitors, maybe a button and a resistor for boot mode/flashing).  I'll solder a cable directly to through holes, scavenging a cheap but known-okay USB A-B cable I no longer need.  It will be dirt cheap, and be much better than any ready-made USB-to-UART cable you can buy.
Then do it.
Though the only time I need an isolator is when I work with project with power+data 2 wire protocols.
Like 4-20mA, DCC, Wiegand interface. None of these have shared ground, so that's the reason to use it . It's very rare to actually need an isolator. Aren't you a bit paranoid? What's your actual use case?
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2240
  • Country: 00
All measurements we did in test labs where performed during acquisition of signals.

(EN 55011 group 1 class B)

Here's a pic of a pre-compliance measurement:

Micro with 50MHz clock?  If so, you couldn't improve that area?  Just curious.

PIC32MX@96MHz, clock coming from a 66.6MHz oscillator block with spreadspectrum, SPI bus @12 Mbit/sec. through the digital isolators.
No shielding, plastic enclosure, no metalization.
 

Offline joeqsmith

  • Super Contributor
  • ***
  • Posts: 11997
  • Country: us
No shielding, plastic enclosure, no metalization.
Nice.  Are you required to meet some sort of radiated susceptibility requirements as well?  If so, I'm curious about the field strength and frequency range required?  Then, criteria? 

Offline joeqsmith

  • Super Contributor
  • ***
  • Posts: 11997
  • Country: us
..., while protocols meant to go over a reasonable length of cable are designed with some sort of immunity to common mode noise...

I don't think you can fix a USB common mode problem with a protocol.   Or, maybe let me ask.  What do you think happens when you exceed the common mode voltage when using USB?   Do you think it just causes some errors in the data stream?

The hidden (and real / more important) question being, is the above question even meaningful.  >:D

Tim

If the USB chipset locks, it's possible to add support to the protocol / hardware that allows hard power cycling the device to clear it.  Before you laugh,  I've not only seen that proposed  .......   

Your question on if my question was meaningful, only in that it was an attempt to determine if Berni had ran into similar problems and how they tried to mitigate them.   Again, working with your TV and audio system, who cares.  Most likely things will be fine. 

Offline Njk

  • Frequent Contributor
  • **
  • Posts: 251
  • Country: ru
The isolator is not a decoration feature. It's not wise to use it when it's not needed. But I'm going to build a battery eliminator device for Hantek CC-65 current clamp (which is extensively discussed here). So it can be powered from USB socket on the scope. Chinese provided me with a nice isolation DC-DC converter module in the branded box, all for about $1, with shipping. That's fantastic. I'm hoping all the components, including the filter inductors, will fit the battery housing, greatly simplifying the connection.
 

Offline djacobow

  • Super Contributor
  • ***
  • Posts: 1159
  • Country: us
  • takin' it apart since the 70's

I'm not sure what the debate in this thread is about. The digital isolator parts are nice when they are appropriate.

I used an ISOW7841 in an AC power meter project, and it worked like a charm. It provided an isolated power supply so that I could power the ADC chip I was using (ATM90E26) directly from it. It was a nice a really nice one-chip solution for isolated SPI slave with a power supply.

Part was pricey, but was a good choice for a low-volume hobby project.
 

Offline coppice

  • Super Contributor
  • ***
  • Posts: 8937
  • Country: gb

I'm not sure what the debate in this thread is about. The digital isolator parts are nice when they are appropriate.

I used an ISOW7841 in an AC power meter project, and it worked like a charm. It provided an isolated power supply so that I could power the ADC chip I was using (ATM90E26) directly from it. It was a nice a really nice one-chip solution for isolated SPI slave with a power supply.

Part was pricey, but was a good choice for a low-volume hobby project.
Now more isolator parts are becoming available with built in DC isolation these things are becoming really flexible for small scale and space limited systems with multiple DC domains. Most isolated requirements only need a small amount of power in the remote domain, to power some kind of sensor, so things work out really well. if they can just get the cost down....... which seems unlikely. The parts aren't that simple when you are looking for sufficient isolation for an AC mains system, with standard surge tolerances and so forth.
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21974
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
I don't think you can fix a USB common mode problem with a protocol.   Or, maybe let me ask.  What do you think happens when you exceed the common mode voltage when using USB?   Do you think it just causes some errors in the data stream?

The hidden (and real / more important) question being, is the above question even meaningful.  >:D

Tim

If the USB chipset locks, it's possible to add support to the protocol / hardware that allows hard power cycling the device to clear it.  Before you laugh,  I've not only seen that proposed  .......   

Your question on if my question was meaningful, only in that it was an attempt to determine if Berni had ran into similar problems and how they tried to mitigate them.   Again, working with your TV and audio system, who cares.  Most likely things will be fine.

Heh...

Ah, I had read it as a leading / didactic question.  But perhaps the "real answer" has more general appeal. :)  The angle I was hinting towards is:

USB is differential during a data packet only; it's not clear to me whether interfaces implement it as actually differential in practice, or just logically merging two normal-mode inputs together as the functional equivalent, but in any case packets are delimited by SE0 symbols, which is a both-lines-low bus state.  Thus, the common mode is an intentional signal component of the USB interface.

Receivers have 0...VCC input range, whether CM or NM, so the noise margin is small (a volt or two).  A shielded cable is therefore obligatory in a commercial (3V immunity) environment.

(Immunity is a bit different in High Speed mode, as both ends are terminated to GND with internal switched termination resistors, and a relatively small signal current is driven into the bus at either end.  Sort of an upside-down ECL or CML connection.  The low voltage means an even poorer noise margin in terms of raw voltage (~200mV), but the low impedance changes the gain from an EMI/RFI source.  Low and Full Speed modes are just your basic LVCMOS source-terminated connection, with the receiver behaving open-circuit, hence being likely more sensitive to E-field induction for example.)

One can still be clever about CM filtering: note that, since the voltage of each individual line is important, and it's not a strict differential pair, what is important is the voltage of each line with respect to common.  At minimum, a three-line choke is therefore required, preferably four so that VBUS and GND can be current-compensated.  These (of data line type) are rare or custom, so the next best option is to use a bunch of two-line chokes, with one winding wired in parallel (say to GND) and the other windings for data.  But data type CMCs saturate with little current (upper 10s to lower 100s mA) so it's still more complicated than this: you need to choke the power lines separately, then AC-couple the EMI difference into the data chokes to avoid saturating them.

But it's 1000% easier to just hard-ground (to PCB plane and/or enclosure) the USB shell and call it done, and perhaps use a cable with ferrite bead(s) if needed.  And if you need any more immunity, or isolation (including in the RF sense, as afforded by a CMC), might as well just use the digital isolator chip(s) and be done with it.

Tim
« Last Edit: July 02, 2024, 04:08:36 pm by T3sl4co1l »
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline Berni

  • Super Contributor
  • ***
  • Posts: 5008
  • Country: si
..., while protocols meant to go over a reasonable length of cable are designed with some sort of immunity to common mode noise...
I don't think you can fix a USB common mode problem with a protocol.   Or, maybe let me ask.  What do you think happens when you exceed the common mode voltage when using USB?   Do you think it just causes some errors in the data stream?

USB uses diff pairs to combat common mode noise problems. This already makes it more robust than just running a UART or SPI bus over a cable. Indeed every diff pair receiver has limits to the common mode voltage it can work with, but you can help it out with a common mode choke to filter out a lot of the high frequency noise that tends to be picked up by cables.(Low frequency tends to point towards too thin wires or someone forcefully feeding extra current into your grounds)

Is USB the most robust protocol? Not really, but it is designed for consumer electronics and for that it is more than good enough. It can handle the common ground loops just fine, things like 2 mains powered devices that are plugged into the same power strip.

There are cases where isolated USB is a good idea, especially around devices that handle high powers and voltages, like say a VFD drive. But in most cases it doesn't really improve the safety or reliability very much, so it is just extra cost and complexity, adding just another thing to potentially go wrong. I seen some cheap isolated DC/DC modules be so common mode noisy that they could jam out a strong FM radio station at close range.
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21974
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
USB uses diff pairs

It does not :)

(Possibly you were writing that while the above post came in, and didn't see it, it happens)
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline joeqsmith

  • Super Contributor
  • ***
  • Posts: 11997
  • Country: us
Again, don't laugh but I have seen some crazy custom made USB cables in an attempt to work around the shortcomings.       

Not really, but it is designed for consumer electronics and for that it is more than good enough. It can handle the common ground loops just fine, things like 2 mains powered devices that are plugged into the same power strip.
While I agree for 99% consumer electronics, its good enough.  Your next statement is where I disagree.   Not that it wouldn't handle this basic condition in pretty much all home-use-cases, but you need to consider that there are special cases where that statement falls apart.

Offline Nominal AnimalTopic starter

  • Super Contributor
  • ***
  • Posts: 6514
  • Country: fi
    • My home page and email address
To be clear -- for my part anyway, I've implied that hobbyists are frequently in the "inexperienced" camp, and that they might benefit some if they knew.  That basically sums it up as an answer.
That is what I thought, too, but seeing the many answers that imply that any use of digital isolators is a sign of a bad design has made me question myself.
That claim is mind-blowing.
In what sense?

#4: Because they are pushing RF currents around and can cause other problems. [...] All in all galvanic isolation causes more problems than it solves.
#12: Because [using digital isolators breaks] rule #1 of..., well, everything. KISS.
#16: No need and don't design by sprinkling in parts.
#24: [implies that only idiots use USB isolation using a "funny" meme]
#29: [USB isolation is not a solution, only a bandaid]
#30: It perhaps is a sign, that you could improve your electronics design techniques, a little bit.  By sorting out any issues, that not using an isolator, seems to be causing your circuits.  By tweaking the design, as necessary.

Have I misunderstood the abovementioned posts, making my understanding of them (or claim what they imply) so ridiculously wrong it is mind-blowing?

Warning about these type of capacitor based isolators, even though they say they can withstand 3kv isolation, their operating conditions are way down below 450vac.

If all you require is <1mb, but you want the robust isolation operating at >3kv, you will need to use 2 optocouplers, 1 for each direction.
For me, 340 V (240×√2) is more than enough.  It is the difference in ground potentials (0V reference) in many Linux-based appliances' power supplies the serial RX/TX isolation helps with.  Plus it also acts as a voltage level translator at the same time, all of my SBCs having a suitable logic-level voltage pin and a ground pin next to RX and TX pins.  It is very easy to essentially brick your SBC/router/appliance by damaging either pin due to e.g. overvoltage, as they are typically directly connected to the low-voltage domain of the SoC, with zero protection. 

While the default/initial baud rates used in terminal consoles vary, many can do up to 2Mbaud.  USB 1.1 Full Speed microcontrollers can do about 1 Mbyte/s payload over USB Serial, and many of my own SBCs can do 2 MBaud very reliably.  Teensy 4.0 can sustain 200+ Mbit/s payload data (25+ Mbytes/sec) in one direction indefinitely, over high-speed USB 2.0.  Using a TI ISOUSB211 (or ADuM3165/66/4165/66) isolator has zero effect on that.

Optoisolation is related, but a bit different use cases in my opinion.  I do like Toslink (digital data, typically S/PDIF audio, over plastic optical cables of up to 10m length), and it is my preferred audio transfer method.  (Good luck trying to sync ethernet-based audio to your host computer.  S/PDIF is synchronous, with the master DAC clock being a multiple (64×, some multiple of 64 of the S/PDIF bit clock.).  I've even experimented with using level-inverted high-baudrate UART over a pair of Toslink cables, about a decade ago or so.  My favourite microcontroller, Teensy 4.x, has both I²S and S/PDIF support, too.

I'm thinking of making a new slim-line one with WCH CH552G, as JLCPCB has both TI ISO6721 and CH552G in stock for assembly ($1.19 and $0.58, respectively; with AP2112K-3.3 for the 3.3V regulator at $0.08, plus some supply bypass capacitors, maybe a button and a resistor for boot mode/flashing).  I'll solder a cable directly to through holes, scavenging a cheap but known-okay USB A-B cable I no longer need.  It will be dirt cheap, and be much better than any ready-made USB-to-UART cable you can buy.
Then do it.
Though the only time I need an isolator is when I work with project with power+data 2 wire protocols.
Like 4-20mA, DCC, Wiegand interface. None of these have shared ground, so that's the reason to use it . It's very rare to actually need an isolator. Aren't you a bit paranoid? What's your actual use case?
I do shenanigans with Linux-based appliances, from TV boxes to routers to my own single-board computers.  In that domain, I'm only limited by my imagination and time; I'm not a hobbyist when it comes to Linux integration and software.

Routers' and TV boxes supplies are class I isolated wall warts, and because of the class Y capacitor between the output 0V and the mains, and the mains not being polarized here, the output 0V can differ between devices, especially if powered from different mains circuits.  Here in 230V 50Hz C, F land, we do not have "live" and "neutral"; we only have two AC lines, and optionally a protective ground.  Most appliances being double-insulated class I only use the two AC live pins (using CEE 7/16 Europlugs), and are not connected to the protective ground at all; they are referenced to some potential derived from the AC.

If I connect the ground of my computer to the ground of one of those appliances, I often get ground currents.  It is my understanding that this is the leakage current through the class Y capacitor, occurring because the outputs' 0V or ground references are not exactly at the same potential.  Do correct me if I'm wrong here.  While the potential difference could initially be a couple of hundred volts, the leakage current will rise until it balances out the potential difference, so it all depends on the power supplies used.

I can work around that either by using a laptop not connected to mains at all, in which case the entire system will have its 0V or ground reference derived from the appliances' power supply; or I can use an isolation barrier to leave those ground potentials be whatever they normally are, and only pass the information across.  Most common form of that information is bog-standard UART, although sometimes I do sample interesting digital data streams, just to figure out how the appliance does what it does, or what a specific chip on it might be all about.

In many cases these pins, including UART TX and RX pins, are directly connected to the SoC on the appliance with zero protection, and may have very low current capability, too.  For example, my Odroid HC-1 has 1.8V UART pins directly connected to the Samsung Exynos5422 SoC, which I believe can only source a maximum of 1.5mA on those pins.

I do not want to simply short the two grounds together, because of the ground current.  It is enough to upset things, and could break things; it has for others.  Me, I've avoided breaking things, by being an idiot and using an isolator here.

(The Odroid HC-1 is a bit special in that I can use my own supply (it wants regulated 5V at up to 6A if I use a spinny-rust SATA 3.5" drive with it), and I can choose to use e.g. Mean Well GSM60E05-P1 class-II low-leakage supply, the 0V output of which I know I can safely short to the ground of my host computer.  I do not yet have the skills with switchmode supplies and AC-DC supplies to tell if the same is true when I see the circuits.  In particular, I know they're not overprovisioned, so I worry that the leakage current will thermally or electrically stress the supply circuitry over its intended operational range.)



I do believe my own isolation needs boil down to two basic issues.  The first is working with devices that have their own AC/DC supplies I know very little about, and wanting to interface them to my own microcontroller projects, which in turn are connected via USB to my host computer.  While I do use a variety of microcontrollers, most of my ad hoc tools are based on Teensy 4, which as I've already mentioned can sustain over 200 Mbit/s to my host computer over USB, using plain USB Serial, and no extra code in the Arduino sketch.  (I do need to ensure I write in chunks of a few bytes, as writing individual bytes to the USB buffer limits the bandwidth to under 40 Mbit/s.)

The second is working with devices using steppers or many servos.  Their current draw is horribly noisy, and filtering it out from the logic supply and ground is not easy.  Just plunking down a few millifarads of bulk capacitance means either the logic supply rail will fall very slowly, or it will have a shunt resistor wasting power.   I see isolating the control signals –– enable, step, direction for steppers,  PWM or I²C bus with a PWM controller for servos –– a simple solution to protecting the logic from the motor noise and related issues.  It is also the only way (aside from an USB isolator, doing the same isolation at a different point) I know that allows one to connect the logic side to a host computer via say USB, while the motors are powered by a separate class I AC-DC supply, without risking leakage current between the host computer and the device due to disagreements on what 0V potential really is.  For the logic side, one can use a class II 5V supply, say a Mean Well IRM-05-5, with a pair of Schottky diodes (the other from USB 5V) to some filters and a low-noise 3.3V linear regulator, which not only simplifies things, but also allows the logic side could be powered either from the host USB (say, for programming), or from its own AC supply, regardless of whether the motor supply is enabled or not.
For me, this scenario opens up very interesting possibilities, for example speeding up prototyping by keeping most of the control logic on the host computer, and have the device microcontroller only handle timing sensitive stuff.  Exactly the kind of stuff an interested hobbyist might be doing.

I am not an expert on any kind of isolators, and I know it.  I also know that I've successfully used digital isolators according to the datasheets to successfully avoid the problems others complain about.  That is the reason why I wonder why other hobbyists are not using them to solve the same problems.

Even here at EEVblog, ground loops –– or, to be more precise, leakage currents through the class Y EMI suppression capacitors in class I AC-DC power supplies when devices don't precisely agree to what the 0V "ground" potential is –– have bitten people, HobGoblyn for example.  If their USB sound card had Toslink output, and their Eris speakers a Toslink input, the problem would not exist, because the plastic optical S/PDIF cable acts as an isolator.  Granted, their speakers seem to have an actual fault causing leakage current via the audio inputs, but still: these problems are not as rare for us hobbyists as you professionals believe.
 

Offline joeqsmith

  • Super Contributor
  • ***
  • Posts: 11997
  • Country: us
That claim is mind-blowing.
In what sense?

#4: Because they are pushing RF currents around and can cause other problems. [...] All in all galvanic isolation causes more problems than it solves.
#12: Because [using digital isolators breaks] rule #1 of..., well, everything. KISS.
#16: No need and don't design by sprinkling in parts.
#24: [implies that only idiots use USB isolation using a "funny" meme]
#29: [USB isolation is not a solution, only a bandaid]
#30: It perhaps is a sign, that you could improve your electronics design techniques, a little bit.  By sorting out any issues, that not using an isolator, seems to be causing your circuits.  By tweaking the design, as necessary.

Have I misunderstood the abovementioned posts, making my understanding of them (or claim what they imply) so ridiculously wrong it is mind-blowing?

Based on the horizontal axis and Goddard's definition,  I believe the proper term is moron, not idiot.   That said, yes I believe you are only reading into it what you want.  Again my goal wasn't to damage your sensitive ego.  You asked for feedback and I provided it.  I have stated in various ways that design choices are not cut and dry.   Parts exist for a reason.  If they were never designed into products, they would not survive.    Do I have a use for isolation with USB at home, no.  It's not what I consider a hostile environment.   For work under these conditions,  based on my previous experiences with USB, I would choose a different bus all together from the start.   Because my choices don't line up with yours, so what?  Do you really need me to validate your choices? 

As I stated, I typically start with the requirements and don't just randomly start pulling parts and sprinkling them into my designs.  I'm not sure why that upsets you.  Would it make you feel better if I told you that for home projects, I typically know what I want and just toss something together based on the parts I have on hand?   Of course at home, I am not held to the same standards.   
 
The following users thanked this post: MK14

Offline Nominal AnimalTopic starter

  • Super Contributor
  • ***
  • Posts: 6514
  • Country: fi
    • My home page and email address
You asked for feedback and I provided it.
Useful feedback is not general statements and memes.  What you posted was pure garbage, what with your "hostile environment" nonsense.  I do understand now that that is the best you can do, and are unable to go into any technical details, because you're all opinion and no practical use.  Truthiness at its most obvious form, really.
 
The following users thanked this post: T3sl4co1l

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14892
  • Country: fr
To be clear -- for my part anyway, I've implied that hobbyists are frequently in the "inexperienced" camp, and that they might benefit some if they knew.  That basically sums it up as an answer.
That is what I thought, too, but seeing the many answers that imply that any use of digital isolators is a sign of a bad design has made me question myself.
That claim is mind-blowing.
In what sense?

#4: Because they are pushing RF currents around and can cause other problems. [...] All in all galvanic isolation causes more problems than it solves.
#12: Because [using digital isolators breaks] rule #1 of..., well, everything. KISS.
#16: No need and don't design by sprinkling in parts.
#24: [implies that only idiots use USB isolation using a "funny" meme]
#29: [USB isolation is not a solution, only a bandaid]
#30: It perhaps is a sign, that you could improve your electronics design techniques, a little bit.  By sorting out any issues, that not using an isolator, seems to be causing your circuits.  By tweaking the design, as necessary.

Have I misunderstood the abovementioned posts, making my understanding of them (or claim what they imply) so ridiculously wrong it is mind-blowing?

No, that wasn't your misunderstanding that was mind-blowing, but many of the answers you mention. I think you got them right - apart (maybe) from just the "meme", that was (IMO) to make fun of people having closed opinions on either side, while hinting that reasonable people are those who'll use a given solution if they just fit the requirements. But the link with IQ (if we refer to the same meme) was pretty unfortunate, IMO.

Many of these statements that you listed and that were made in the thread don't make any sense, at least without context: and that's the whole problem, a very common one in online discussions. Many will just come up with their own experience (which per se is what you were after here), but each of these experiences is in a given context. Making them an absolute is cargo cult. They even miss, for the most part, the point of your topic, that was for *hobby* use. Even if any of the above was true in all contexts (which it's not), we're talking about hobby designs here (if I got it right), and quite frankly, for hobby work, as long as something works, fits requirements and is not dangerous, I don't even see how that could ever be a problem.

And it's a sign of "bad design" only if it actually is. Stating that in general doesn't make sense, it's again cargo cult engineering. (Which it would be as well if one were throwing isolators everywhere all the time, just in case.)

Regarding EMI (which in most likelihood, you don't usually care about for hobby stuff, unless it was completely horrific), it's probably way, way out of context. The only kind of digital isolators that I've seen EMI issues with are the ones who embed a small isolated power supply to power the "isolated" side. And even so, with some care you can deal with it. But that's only one specific type of isolators, and I don't know for sure, but don't think you even talked about these. Simple digital isolators, that just isolate digital signals, require a power supply on each side (without embedding any), basically cause absolutely zero EMI issue. I'd be curious to see a design where they did, I have never run into this problem.

Isolating from USB is done to isolate from the host your device is connected to. One common use case is when you don't want your device to share a common ground with the host. In that case, you don't have a choice. Note that when isolating in such contexts, you need to always keep in mind the whole setup: if you use PCs and lab equipment, that are usually all connected to Earth, they'll all share a common ground, whether you like it or not. So, if you isolate some device from USB, but connect an oscilloscope to your device, then you break isolation (unless said oscilloscope is itself isolated). You get the idea. So, that takes some care.

You mentioned USB-UART adapters, I frequently use isolated ones, which give the benefit of not only isolating (if needed), but also level shifting at the same time. Handy and relatively cheap. Note that these require a power supply from the isolated side (which is the whole point anyway for level shifting), so you have to connect a Vtarget pin to your digital supply.

Finally, I knew your thread could turn problematic with your mention of "hobby". "Hobby electronics" covers a very wide range, from total newbies that barely know how to connect wires together and just follow some videos on YT, to very experienced people that just design stuff outside of a professional setting, which qualifies as "hobby". So, the concept is too wide not to trigger a wide range of odd opinions, and also too wide to be able to make a clear opinion of what a "hobby design" is. IMHO.

As to the question of what's available on the market for hobby use, it's also a question that's hard to answer. Depends on where you look entirely. Depending on the perspective, with this approach, one may be tempted to think that all there is for hobby use in terms of MCU dev boards are Arduino stuff with an Atmega, 8-bit stuff with just a few KB of RAM. That's obviously not the case at all. Isolated USB-UART adapters are relatively easy to find, and priced adequately for hobby use, so you tell me if this doesn't qualify as hobby stuff. You have a 4-port version here: https://www.tindie.com/products/saimon/4-ports-isolated-usb-uart-converter-with-usb-c/ , but they do sell variants with just one port. Handy and cheap.
 
The following users thanked this post: joeqsmith, MK14

Offline joeqsmith

  • Super Contributor
  • ***
  • Posts: 11997
  • Country: us
You asked for feedback and I provided it.
Useful feedback is not general statements and memes.  What you posted was pure garbage, what with your "hostile environment" nonsense.  I do understand now that that is the best you can do, and are unable to go into any technical details, because you're all opinion and no practical use.  Truthiness at its most obvious form, really.

ROFLAMAO!!  I always try to give my best.   
 
The following users thanked this post: oPossum, MK14

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 27358
  • Country: nl
    • NCT Developments
Re: Why not use digital isolators?
« Reply #66 on: July 03, 2024, 08:34:00 am »
For I2C level translation, TI has a whole bunch of bi-direction I2C level translators which work really well.
You haven't used them in a situation where the other side logic level varies from lower than to higher than the microcontroller side?  Nor been bitten by the asymmetric low-level thresholds and limited pull-down abilities of them?

The most common one is PCA9306, I believe.  VREF2 > VREF1 is required, and bias current from VREF2 to VREF1 can play havoc with VCC1 side regulators.  So, to use it right, you need to use a VREF1 pulldown and a current-limiting resistor on VREF2.  If you don't know beforehand what logic level voltage the device uses –– for example, you want to use it for a couple of different modules you can switch between during experimentations –– good luck getting that right.
I don't know the pca9306. Never seen it, never heard of it  :) . I'm always using the TI TSX0102 (and related, >2 channel versions) which just works from higher to lower and from lower to higher levels. I don't rely in the internal pull-ups though for I2C. There are probably other chips which work equally well but I never had problems with TSX0102 (including in high volume products) for low-speed level conversion so never needed to look elsewhere.
« Last Edit: July 03, 2024, 08:40:13 am by nctnico »
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline tszaboo

  • Super Contributor
  • ***
  • Posts: 7583
  • Country: nl
  • Current job: ATEX product design
I do shenanigans with Linux-based appliances, from TV boxes to routers to my own single-board computers.  In that domain, I'm only limited by my imagination and time; I'm not a hobbyist when it comes to Linux integration and software.

Routers' and TV boxes supplies are class I isolated wall warts, and because of the class Y capacitor between the output 0V and the mains, and the mains not being polarized here, the output 0V can differ between devices, especially if powered from different mains circuits.
So why would people place these isolators in their designs? You are not going to place an Arduino or whatever inside the television. Nor do an average hobbyist do anything near the 230V, yet alone understanding X and Y capacitors. What you are searching for are USB isolators, and USB serial converters with different voltage levels.
So the bigger question is: Why don't you run your media box DUT from a lab power supply?
Why don't you just buy a bunch of USB isolators and different voltage USB UART converters to connect to your DUT?

All the EMC and other discussions are beyond the scope of this. DUTs not supposed to work properly and pass EMC tests while gutted and connected inside.
 
The following users thanked this post: MK14


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf