Author Topic: schematic review_Switching MOSFETs.  (Read 1281 times)

0 Members and 1 Guest are viewing this topic.

Offline clockstickingTopic starter

  • Newbie
  • Posts: 7
  • Country: kr
schematic review_Switching MOSFETs.
« on: June 05, 2024, 07:19:45 am »
Hi. I'm trying to build a circuit that switches contacts with relays and I want to indicate each contact with LEDs.

I wonder if this circuit will work as I intended.

considering C2_CC_CTRL = GPIO

i wonder when GPIO signal is "high" other chips work as, Q14 MOSFET = "ON", D29 LED = "ON", SW12 Relay = "LOW", Q13 MOSFET = "OFF", D27 LED "OFF".

let me know if I've missed any information to present.
" alt="" class="bbc_img" />
 

Offline aliarifat794

  • Regular Contributor
  • *
  • !
  • Posts: 138
  • Country: bd
Re: schematic review_Switching MOSFETs.
« Reply #1 on: June 05, 2024, 08:28:58 am »
I think it is better to give a try first. Maybe in a breadboard. Or you can simulate in proteus or something like that.
 
The following users thanked this post: clocksticking

Offline Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 3818
  • Country: nl
Re: schematic review_Switching MOSFETs.
« Reply #2 on: June 05, 2024, 11:53:53 am »
I agree with building things like this on a breadboard.

It does not really matter whether this circuit work or does not work unmodified. The goal of building it on a breadboard is to measure all voltages (& currents) and understand why it does (or does not) work.

Some hints: R52 and R54 are not reall needed for FET's. But they can save the circuit controlling the FET if the FET gets damaged somehow. Putting a resistor on a breadboard is also just as easy as puttnig a wire on a breadboard.
When Q14 is off, D29 and R53 pull the gate of Q13 upwards, but the threshold voltage of D29 may prevent Q13 from fully turning on. (Ugs is o1 to 2V5, and some leakage though the LED probably pulls the FET gate to above 3V5, but it's not a great design.

What sort of input signal do you have for Q14?

Circuits area easier to analyze and understand if you keep with common conventions: Voltages go from top to bottom, and signals go from left to right.
 
The following users thanked this post: tooki, clocksticking

Offline calzap

  • Frequent Contributor
  • **
  • Posts: 487
  • Country: us
Re: schematic review_Switching MOSFETs.
« Reply #3 on: June 05, 2024, 02:56:29 pm »
Curious as to why the relay contacts are being used in parallel.  Redundancy for reliability?  If it’s for doubling the current capacity, that often doesn’t end well.  Some other reason?

Mike
 
The following users thanked this post: clocksticking

Offline Kim Christensen

  • Super Contributor
  • ***
  • Posts: 1680
  • Country: ca
Re: schematic review_Switching MOSFETs.
« Reply #4 on: June 05, 2024, 03:37:46 pm »
When Q14 is off, D29 and R53 pull the gate of Q13 upwards, but the threshold voltage of D29 may prevent Q13 from fully turning on. (Ugs is o1 to 2V5, and some leakage though the LED probably pulls the FET gate to above 3V5, but it's not a great design.

I agree. There should be a pullup resistor to +5V on the drain of Q14 to ensure the gate voltage on Q13 reaches 5V when Q14 is off.
« Last Edit: June 05, 2024, 03:44:20 pm by Kim Christensen »
 
The following users thanked this post: clocksticking

Offline clockstickingTopic starter

  • Newbie
  • Posts: 7
  • Country: kr
Re: schematic review_Switching MOSFETs.
« Reply #5 on: June 06, 2024, 11:07:11 pm »
thank you for your advise.

I also agree that it is better to try it on a breadboard or simulator. I'll find a way to do it.

R52 and R54 is there for current limit protection as you've guessed.

the signal is GPIO from STM32F407VGT6, 3.3V.

the threshold voltage of Q13&14 is 1V so I thought it won't be a problem(since the Id needed is just about 40mA for Q13 and 5mA for Q14).

but I'll try it with the pull-up resistance to fully ensure enough Vgs.

your advise really helped me, thanks!
 

Online temperance

  • Frequent Contributor
  • **
  • Posts: 592
  • Country: 00
Re: schematic review_Switching MOSFETs.
« Reply #6 on: June 06, 2024, 11:17:53 pm »
Quote
I agree. There should be a pullup resistor to +5V on the drain of Q14 to ensure the gate voltage on Q13 reaches 5V when Q14 is off.

Why the signal inversion? Is the relays supposed to be on when Q14 is not driven?
 
The following users thanked this post: clocksticking

Offline clockstickingTopic starter

  • Newbie
  • Posts: 7
  • Country: kr
Re: schematic review_Switching MOSFETs.
« Reply #7 on: June 06, 2024, 11:23:53 pm »
Quote
I agree. There should be a pullup resistor to +5V on the drain of Q14 to ensure the gate voltage on Q13 reaches 5V when Q14 is off.

Why the signal inversion? Is the relays supposed to be on when Q14 is not driven?

the relay's datasheet says pin 2 & 7 is for the off and 4 & 5 for the on :)

2285247-0
 

Online temperance

  • Frequent Contributor
  • **
  • Posts: 592
  • Country: 00
Re: schematic review_Switching MOSFETs.
« Reply #8 on: June 07, 2024, 03:58:07 pm »
Quote
the relay's datasheet says pin 2 & 7 is for the off and 4 & 5 for the on

I get that. But if you remove one inverter and swap C2_CC1 and C2_CC2 you will have the same circuit where High is CC2 and Low is CC1 like in the original circuit.
 
The following users thanked this post: clocksticking

Offline clockstickingTopic starter

  • Newbie
  • Posts: 7
  • Country: kr
Re: schematic review_Switching MOSFETs.
« Reply #9 on: June 09, 2024, 11:10:15 pm »
Quote
the relay's datasheet says pin 2 & 7 is for the off and 4 & 5 for the on

I get that. But if you remove one inverter and swap C2_CC1 and C2_CC2 you will have the same circuit where High is CC2 and Low is CC1 like in the original circuit.

that was original circuit but I've put one more inverter to indicate the connection with LED. Do you have any better idea to switch 2 LED with one signal?
 

Offline Kim Christensen

  • Super Contributor
  • ***
  • Posts: 1680
  • Country: ca
Re: schematic review_Switching MOSFETs.
« Reply #10 on: June 10, 2024, 02:49:41 am »
Here's one way to drive 2 LEDs with a logic gate
 
The following users thanked this post: clocksticking

Offline xvr

  • Frequent Contributor
  • **
  • Posts: 410
  • Country: ie
    • LinkedIn
Re: schematic review_Switching MOSFETs.
« Reply #11 on: June 10, 2024, 09:51:17 am »
Quote
Do you have any better idea to switch 2 LED with one signal?
Yes, use 1 pair of relay contacts (unless you really need them to be paralleled, for example for increase current capacity)
 

Offline clockstickingTopic starter

  • Newbie
  • Posts: 7
  • Country: kr
Re: schematic review_Switching MOSFETs.
« Reply #12 on: June 10, 2024, 11:14:14 pm »
Here's one way to drive 2 LEDs with a logic gate

I don't get this diagram. Can you describe more details how this is showing the way to switch between 2 LEDs with a single signal?
 

Offline Kim Christensen

  • Super Contributor
  • ***
  • Posts: 1680
  • Country: ca
Re: schematic review_Switching MOSFETs.
« Reply #13 on: June 11, 2024, 02:10:42 am »
Quote
considering C2_CC_CTRL = GPIO

Like this:
 
The following users thanked this post: clocksticking

Offline clockstickingTopic starter

  • Newbie
  • Posts: 7
  • Country: kr
Re: schematic review_Switching MOSFETs.
« Reply #14 on: June 11, 2024, 06:24:19 am »
Quote
considering C2_CC_CTRL = GPIO

Like this:

Thanks for your additional explanation. I've never thought of the way you've suggested. I'll examine if this circuit can be applied to mine.

How ever, I'll still have to work on the value of resistors, it looks a bit tricky to control Vgs under the Vth since the Vth is just 1V for the fet I'm using.

I'm thinking I have to increase the value of resistor for D1 to limit Vgs when the signal is low, I'm not sure if there's a value to keep fet off and D1 to lit up. :)

But again, great thanks for your advise.
 

Offline ArdWar

  • Frequent Contributor
  • **
  • Posts: 673
  • Country: sc
Re: schematic review_Switching MOSFETs.
« Reply #15 on: June 11, 2024, 06:34:41 am »
Why would you even need to worry about that? STM32F GPIO is guaranteed to be 0.4V or less when sinking 6mA, implying about to 60 ohm impedance, and in practice it's much lower than that. You're unlikely to draw much more than a couple mA for an indicator LED.

Or do you intend to drive some serious current into the LEDs here?
 
The following users thanked this post: clocksticking

Offline clockstickingTopic starter

  • Newbie
  • Posts: 7
  • Country: kr
Re: schematic review_Switching MOSFETs.
« Reply #16 on: June 11, 2024, 07:29:51 am »
Why would you even need to worry about that? STM32F GPIO is guaranteed to be 0.4V or less when sinking 6mA, implying about to 60 ohm impedance, and in practice it's much lower than that. You're unlikely to draw much more than a couple mA for an indicator LED.

Or do you intend to drive some serious current into the LEDs here?

I'm not so worried about the LEDs current. I'm worried that when the signal is LOW, the gate voltage will be over Vth.
Which will result in activating the relay even when the signal is LOW.
 

Offline Kim Christensen

  • Super Contributor
  • ***
  • Posts: 1680
  • Country: ca
Re: schematic review_Switching MOSFETs.
« Reply #17 on: June 11, 2024, 03:29:56 pm »
Well, as you can see from the 2N2007K's datasheet, the worst case for Vth is 1.0V. As long as the MCU's GPIO pin can sink the required current, and go lower than 1V while doing so, then this won't be an issue. The STM32F407VGT6's datasheet (VOL on page 116) shows that if an IO pin is sinking 8mA, then the voltage on it will be no higher than 0.4V as mentioned by ArdWar. (except for PC13, PC14 and PC15 which are only good for 3mA)
With modern LEDs even 1-2mA of current will be plenty bright enough for an indicator light. 8mA would be annoyingly bright.
« Last Edit: June 11, 2024, 03:33:54 pm by Kim Christensen »
 
The following users thanked this post: clocksticking

Offline kevin.gibbs

  • Regular Contributor
  • *
  • Posts: 54
  • Country: us
    • Teardown it!
Re: schematic review_Switching MOSFETs.
« Reply #18 on: Today at 01:17:13 pm »
First, a question: why did you decide to supply the same LEDs with different currents (using different resistors at the same voltage)?

Secondly, a remark: Q13 opens through the LED, which drops about 2.1V. So, only 2.9V will reach the transistor. In your case, everything should work, but if you want to change something in the circuit, keep it in mind.
Teardown, research, create!
 

Offline PGPG

  • Regular Contributor
  • *
  • Posts: 198
  • Country: pl
Re: schematic review_Switching MOSFETs.
« Reply #19 on: Today at 02:04:39 pm »
....

Do you think this 4 months old relay circuit is still under designing?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf