#1855

  Рет қаралды 6,607

IMSAI Guy

IMSAI Guy

Ай бұрын

Episode 1855 chip of the day
don't use 2N7002 or BS170 for level translation
Be a Patron: / imsaiguy

Пікірлер: 58
@tedivester4947
@tedivester4947 Ай бұрын
I'm confused - but that's good. Makes me do some head scratching. One thing though. In High School and the Air Force all of my instructors used electron flow! When back in college, some of the professors would use electron flow and the majority would use current flow. It was the same way with the text books. I graduated with PTSD- or something. There was hole flow but I don't want to get into that. To many memories. Well that's maybe why I'm confused. Thanks for the time spent on a great presentation!
@chilly058
@chilly058 Ай бұрын
Thanks for the clear explanation. I would like to mention the TXS0104E device that I have been using. The TXS0104E contains 4 level translators similar to what you showed. Additionally it has internal 10k pull-up resistors, and edge detection on the input signal from either side. When a transition from low to high is detected, the internal circuitry actively pulls up the input to speed up the transition. After the transition the active pull up is again released. Very handy for long distance one-wire and two-wire applications.
@kisssys5414
@kisssys5414 Ай бұрын
I was just going to post the same thing. I've had nothing but trouble with a board from Sparkfun with the described design.
@danielmantione
@danielmantione Ай бұрын
The 74CBT16211 bus switch is my favourite device for 5V3.3V logic level conversion. It has 24 lines, so you can level convert an entire chip at once, and the fact that it doesn't use pull-up resistors makes that it works at much higher speeds than a MOSFET solution. You should make a video about it!, Using the 16211 for logic level conversion ain't too obvious from the data sheet, so a video would be helpful for people.
@TheEmbeddedHobbyist
@TheEmbeddedHobbyist Ай бұрын
You have to remember that a lot of logic fets, were designed when logic levels were 5v and not today's lower levels
@criznach
@criznach Ай бұрын
This is timely and awesome! I've been using the classic BSS138 circuit for several products for the last 5 years. I just adapted the same circuit as a cutoff switch for an i2c bus that was conflicting with our AVR programmer. Both sides are at 3v3, but the gate is tied to the programmer's separate 3v3 bus.
@Manf-ft6zk
@Manf-ft6zk Ай бұрын
"That means you have 4 level converters on one board - That's what I have over here" - getting in on the high side and coming out at the low side." With five of them for a buck and a half I was sure to see the same signal converted from high to low and back 10 times in a row. But thank you for the perfect explanation. 😄
@TYGAMatt
@TYGAMatt Ай бұрын
I've used a 2N7000 to level shift 5V to 3.3V and it worked fine. Also used an A2SHB smt mosfet. The max threshold for the A2SHB is a Mere 0.85V
@bachvaroff
@bachvaroff Ай бұрын
The NXB0101 chip (from Nexperia) is yet another dual supply transceiver, better suited for bus translation up to ~100MHz (3.3V↔5V, and it can also go high-Z). NXS0101 is the open drain cousin, though it's much slower.
@olivierconet7995
@olivierconet7995 Ай бұрын
This is always a strange transistor arrangement. Nicely explained, as usual !
@RexxSchneider
@RexxSchneider Ай бұрын
A few points: there is a 2N7002 which is like the 2N7000 but with tightened spec (threshold voltage = 2.5V max) in an SOT-23 package. However the BSS138 is cheaper, so good catch. The body diode in these small signal MOSFETs isn't going to be dropping as much as 0.7V in conduction, more like 0.6V when loaded with 10K from a 3.3V rail, so Vgs is at least 2.7V. At 9:00 when the MOSFET starts conducting as the diode is turning on, the channel resistance becomes so low that the source is effectively dragged down to 0V. You now have 3.3V Vgs, not 2.6V. At 8:20 we really don't want the MOSFET to turn on "hard", just "hard enough", otherwise the increased gate charge reduces switching speed. Better not to in level-shifting applications.
@originalmianos
@originalmianos Ай бұрын
Keeping in mind these are only good for low speed like serial ports and slow spi etc. There is way too much capacitance in the junction to use for, say 10Mhz, and you have to resort to the proper chips with more stuff inside them. It can be easily seen on the oscilloscope at higher frequencies and can be confusing on the logic analyser.
@pol.kraine7890
@pol.kraine7890 Ай бұрын
How fast can you get with two NPN BJT's connected together in reverse orientation (emitter to collector)? With the two bases pulled up to the respective voltages you want translated as well as pullups on the emitter/collectors. example: 1K |------/\/\/\------| 5V | 1K | |------/\/\/\------| 5V | ___|___ 1K | * |/ \ |------/\/\/\-----| 3.3V | __/ \__ | A o__|__| |__|__o B | __ __| \ /| *2N3904 _\___/_ | 1K |------/\/\/\-----| 3.3V
@originalmianos
@originalmianos Ай бұрын
@@pol.kraine7890 You would have to draw it up in spice. It would be faster as FETs have much more capacitance then ye olde BJTs. Then again, the dedicated translation devices have Schmidt triggers, giving them even less limitations at high bandwidth.
@Mr.Leeroy
@Mr.Leeroy Ай бұрын
4-ch PCBs from CN are Sparkfun module from 2013 clones btw. A lot of those exist thanks to Adafruit, Sparkfun and the like OSHW contributions cloned and mass-produced often using CN analog chips (which are statistically quite good) if such exists, with genuine brand parts too, but generally CN modules almost always work.
@qzorn4440
@qzorn4440 Ай бұрын
Excellent information. 🥳 Thank you.
@k.chriscaldwell4141
@k.chriscaldwell4141 Ай бұрын
Superb! Thanks.
@robinbrowne5419
@robinbrowne5419 Ай бұрын
It's wizardry I tell you. Wizardry. 🧙‍♂️👍
@edgeeffect
@edgeeffect Ай бұрын
Anyone who likes to play with microcontrollers is probably all to familiar with this schematic.... but what we were lacking was a really good description of what's actually going on.... until now that is.
@andymouse
@andymouse Ай бұрын
Awesome....cheers.
@AnalogDude_
@AnalogDude_ Ай бұрын
interesting, You also got TXS0101 (single), TXB0108 (8 fold), but require 2 100nF capacitors on both supply sides. But the Sizklai also works pefectly, but requires 1 more transistor than your circuit, but not bi directional.
@iblesbosuok
@iblesbosuok Ай бұрын
Basically, it is a common-gate topology. The source & drain of the FET are generally interchangeable. Moreover, there is a unique EM mosfet which has a body diode.
@PeetHobby
@PeetHobby Ай бұрын
There are indeed much better MOSFETs available nowadays than the BS170, and they are also much cheaper. The only advantage it has is that it cab be brought in through-hole package, making it easy to use on breadboards and experimental PCB's and so.
@saeedkizzy
@saeedkizzy Ай бұрын
Nice very useful, for better results TXS(0104) series from Texas Instruments for open drain applications like I2C or MDIO buses and TXD(0104) series for push-pull CMOS logic like data line of SRAM are also available.
@hanelyp1
@hanelyp1 Ай бұрын
I've seen bipolar transistors used in the same topology. The only change needed is a base resistor. As with a mosfet the transistor will work backwards.
@perseverance8
@perseverance8 Ай бұрын
I use 74LVC245 for level shifting. The 74LVC245 is great for higher speed signals vs discrete FET based level shifters & have 8 lines. Additionally TXB0108 is a great level shifter too though I have quite a few SN74LVC245AN’s around.
@stevenbliss989
@stevenbliss989 Ай бұрын
A great low gate voltage mosfet is the Si2302, ultra cheap!
@misterhat5823
@misterhat5823 Ай бұрын
There's several ICs available that work the same way. One is the SGM4553.
@uwezimmermann5427
@uwezimmermann5427 Ай бұрын
nice introduction of this nice MOSFET and the use in level shifters. However, the real resistance is of minor importance for a level shifter. Even for I2C lines it only has to be significantly below the pull-up resistors' values, but 10s or even 100s of Ω should not matter much, unless you have long lines with high parasitic capacitance and high frequency signals.
@larrybud
@larrybud Ай бұрын
Thanks. Do you have a link to that digikey doc, or the "basics" series they have?
@IMSAIGuy
@IMSAIGuy Ай бұрын
www.digikey.com/en/blog/logic-level-shifting-basics
@rivaoliveira1256
@rivaoliveira1256 Ай бұрын
How high in frequency can those little FET level translators boards go? Thanks.
@jspencerg
@jspencerg Ай бұрын
You create a wide variety of topical videos. The number of views sometimes vary wildly. Do you bother to look for correlations to number of views? Your database for analysis increases daily. :-)
@IMSAIGuy
@IMSAIGuy Ай бұрын
yes, I look at the statistics. If I only wanted views/subscribers, it would make my channel stupid. I just do what I want.
@chriswalford4161
@chriswalford4161 Ай бұрын
@@IMSAIGuy……….and thanks !
@ElangovanPalaniappan
@ElangovanPalaniappan Ай бұрын
Thanks. The datasheet shows maximum Vgs(th) is 1.5V. It means if the gate is 3.3V and 0V at source in the circuit, then this MOSFET will get damaged. So it cannot be used for 3.3V to 5V level shifting. Please correct me if i am wrong....
@tfrerich
@tfrerich Ай бұрын
The parameter you are listing is the threshold voltage, not a maximum voltage. There must be a voltage difference between the gate and the source for the MOSFET to turn on. That value in the datasheet is saying that for some devices that difference may be as low as 0.8 volts, for most it will be 1.3 volts, and for some the difference must be at least 1.5 volts before the device will turn on. The value you probably were thinking of is Vgss, which my datasheet lists as + or - 20V for the BSS138.
@ElangovanPalaniappan
@ElangovanPalaniappan Ай бұрын
@@tfrerich Heartly thanks for your clarification... Yes i got confused with Vgss & Vg(th)... Thank you...
@mansourmashaei2838
@mansourmashaei2838 Ай бұрын
Hello Mr engineer I want to help me how to find circuit schematic all of the electronics appliance for repairing like this power switching & main board of the other circuits Thank you Mr Engineer
@IMSAIGuy
@IMSAIGuy Ай бұрын
kzfaq.info/get/bejne/f89dYMSFsNXHhHU.htmlsi=jtoMnPQBzQoGZu8K
@TheShawna1
@TheShawna1 Ай бұрын
I'd like to convert TTL to 24 volts 60mA for FSK Radio teletype of Old.Bidirectional so i can get my 1950s Modem to think the computer is a Teletypewriter?
@IMSAIGuy
@IMSAIGuy Ай бұрын
forum.vcfed.org/index.php?threads/mek6800d1-output-interface-for-60ma-teletype-current-loop.47518/
@captainboing
@captainboing Ай бұрын
why do so many FET symbols show the body diode as a zener?
@petermoore5203
@petermoore5203 Ай бұрын
I believe it’s a Schottky diode. If so the forward drop would be about 0.3V not 0.7V.
@luhanxmonat
@luhanxmonat Ай бұрын
Great explanation, love the detailed analysis. But 0.7 volts is (kinda) valid for 3.3 volt devices. Also given the light loading, the diode will (probably) be less than 0.7 volts. "Engineering is the art of what you can get away with".
@jspencerg
@jspencerg Ай бұрын
I doubt bridge building engineers embrace that saying.
@luhanxmonat
@luhanxmonat Ай бұрын
@@jspencerg One would hope, but I'm afraid some do.
@AttilaAsztalos
@AttilaAsztalos Ай бұрын
@@jspencerg Except yeah they do. There's a reason for the saying "Any idiot can build a bridge that stands, but it takes an engineer to build a bridge that barely stands."
@jspencerg
@jspencerg Ай бұрын
@@AttilaAsztalos "...with the correct safety factor thrown in" Some engineering fields permit or even encourage wanton cost saving, planned obsolescence or life till the end of warranty. Bridge building in the USA is not one of those. Neither are the probe building wizards at NASA.
@gorak9000
@gorak9000 Ай бұрын
The 0.7V is only there before the fet turns on - once it's on, you get the 5 ohm (or less) path through the fet, and the diode is essentially out of the circuit. The diode just bootstraps the fet into the on condition, and then the fet takes over, and only in the direction of a low on the right driving the left side low. It's actually extremely clever how it works!
@joseppuig925
@joseppuig925 Ай бұрын
BSS214N is a little better in some aspects: 1.2V max threshold voltage and 0.25 ohm at 2.5V Vgs.
@tnamen1307
@tnamen1307 Ай бұрын
Hi Sir please reply... this question is very very confusing... I have 2 identical 12V DC 7.5Ah batteries say X and Y. One side of a normal bulb is connected to postive terminal of X battery, and another side of the bulb is connected to the negative terminal of the Y battery. The negative terminal of X battery and the positive terminal of Y battery are not connected to anything. So, in this case, I want to know whether there will be a current flow to the bulb, and whether the bulb will glow??? Give reasons if bulb will glow, and reasons why bulb will not glow. Thanks in advance.
@IMSAIGuy
@IMSAIGuy Ай бұрын
sounds like a homework problem
@aduedc
@aduedc Ай бұрын
Thanks, I did not know about this topology for level shifting. @5:11 remember the source and drain of the normal MOSFET transistors are interchangeable. So when the output is low the source and drain are exchanged. Here the body diode does not get engaged until much higher currents( that is when I x Ron > 0.7 V) The advantage of this topology is its speed and it is bi-directional, the disadvantage is use of constant static current. Normally level shifters are made of cross coupled pmos transistors on top of nmos transistors. The disadvantage is that it slower than this topology. Also, if you have MOSFET transistor that you could connect to its body, it is better to connect the body to the lowest voltage( ie. in this case 0 V)
@hanelyp1
@hanelyp1 Ай бұрын
The static current situation isn't as bad if you're already using a protocol, like I2C, that is designed to use open collector outputs, pullup resistors, and logic high idle state.
Topic 39: Multi-Stage Amplifier Analysis
27:33
Electronics for Guitarists
Рет қаралды 2,3 М.
#1861 Scattering S-Parameters S11 S21 S-Matrix
28:02
IMSAI Guy
Рет қаралды 4,3 М.
Increíble final 😱
00:37
Juan De Dios Pantoja 2
Рет қаралды 83 МЛН
#744 Measuring Capacitor Leakage (easy and cheap)
47:04
IMSAI Guy
Рет қаралды 50 М.
Horrific LED tester that can literally kill you - (with scary schematic)
15:48
#1818 Current Source from HP34401 Explained
18:48
IMSAI Guy
Рет қаралды 23 М.
Installing Linux Like It's 1992
17:47
Old Computers Sucked
Рет қаралды 73 М.
Let's fix this 𝗗𝗘𝗔𝗗 ATX power supply!
26:40
Tony359 | Tony's Tinkering Shop
Рет қаралды 49 М.
#1752 1N34 Germanium  vs Schottky Diodes
8:36
IMSAI Guy
Рет қаралды 11 М.
#1749 Fake LM358 De-cap
5:26
IMSAI Guy
Рет қаралды 23 М.
World's worst video card? The exciting conclusion
24:23
Ben Eater
Рет қаралды 2,9 МЛН
The Rarest IBM PC Clone in the World!
43:10
Usagi Electric
Рет қаралды 94 М.
#1776 Darlington and Sziklai Transistors
5:57
IMSAI Guy
Рет қаралды 27 М.
Телефон в воде 🤯
0:28
FATA MORGANA
Рет қаралды 383 М.
How charged your battery?
0:14
V.A. show / Магика
Рет қаралды 6 МЛН
Will the battery emit smoke if it rotates rapidly?
0:11
Meaningful Cartoons 183
Рет қаралды 21 МЛН