4067 views|15 replies

211

Posts

0

Resources
The OP
 

I still don't understand the problem of using PNP npn as a switch. 8050 is used as a switch and it keeps turning on and off. [Copy link]

 

Use the MCU IO output level (0-3.3) to control the on and off of 8050, thereby controlling the presence or absence of 12v and the power supply of the device. Now the problem is that it can't be turned off. I think the state of the transistor is not adjusted correctly (Rc resistance). Please give me some guidance.

This post is from Test/Measurement

Latest reply

When using transistors to make switch circuits, NPN transistors are easier to control than PNP transistors, and most products use NPN transistors. Because the input base of NPN is connected to the power supply voltage when the potential is high, and the B pole is directly disconnected and grounded when the potential is low, this method is very convenient for general industrial control.   Details Published on 2023-12-28 19:31
 
 

1w

Posts

25

Resources
2
 

The shutdown depends on the voltage. At 12V, VBE cannot reach the shutdown voltage regardless of whether PA12 is 0V or 3.3V.

This post is from Test/Measurement

Comments

Thanks!  Details Published on 2022-5-26 08:49
 
 
 

114

Posts

6

Resources
3
 

This requires adding an NPN to perform level shift from 0~3.3 to 0~12V for normal control.

N MOS can also be used to perform level shift to 12V.

But the control will be reversed.

This post is from Test/Measurement

Comments

Thanks for your reply. I also thought about the problem yesterday and needed to convert it. [attachimg]608600[/attachimg]  Details Published on 2022-5-26 08:45
 
 
 

2w

Posts

0

Resources
4
 

This 8550 has an emitter of 12V, and the base is connected to 3.3V via a 150k ohm resistor. The base current is more than 50uA. How can I shut it down?

This post is from Test/Measurement

Comments

Thanks to teacher maychang. I think no matter how to adjust the base current, it can't change the existence of Vbe conduction voltage difference, and the transistor is always in the on state.  Details Published on 2022-5-26 08:47
 
 
 

2w

Posts

0

Resources
5
 

"Remember that when VCC is 3.3V, control is possible."

Yes, if you raise the high level at PA12 to 12V, then you can control it when VCC is 12V.

This post is from Test/Measurement
 
 
 

211

Posts

0

Resources
6
 
vincentc543 posted on 2022-5-25 18:34 This requires adding an NPN to do a level shift from 0~3.3 to 0~12V for normal control. Using N MOS can also do a level shift to 12V. ...

Thanks for your reply. I also thought about the problem yesterday and needed to convert it.

This post is from Test/Measurement
 
 
 

211

Posts

0

Resources
7
 
maychang posted on 2022-5-25 18:53 This 8550, the emitter is 12V, the base is connected to 3.3V through a 150k ohm resistor, the base current is more than 50uA, how to shut it down?

Thanks to teacher maychang. I think no matter how to adjust the base current, it can't change the existence of Vbe conduction voltage difference, and the transistor is always in the on state.

This post is from Test/Measurement

Comments

If you change the potential change of the left end of R7 to 12V~8.7V, you can control the switch state of 8550. When the left end of R7 is 12V, it is equivalent to 0~3.3V controlling the 0V of the NPN tube, and 8550 is turned off. When the left end of R7 is 8.7V, it is equivalent to 0~3.3V controlling the 3.3V of the NPN tube, and 8550 is turned on.  Details Published on 2022-5-26 09:31
If you change the potential change of the left end of R7 to 12V~8.7V, you can control the switch state of 8550. When the left end of R7 is 12V, it is equivalent to 0~3.3V controlling the 0V of the NPN tube, and 8550 is turned off. When the left end of R7 is 8.7V, it is equivalent to 0~3.3V controlling the 3.3V of the NPN tube, and 8550 is turned on.  Details Published on 2022-5-26 09:29
If you change the potential change of the left end of R7 to 12V~8.7V, you can control the switch state of 8550. When the left end of R7 is 12V, it is equivalent to 0~3.3V controlling the 0V of the NPN tube, and 8550 is turned off. When the left end of R7 is 8.7V, it is equivalent to 0~3.3V controlling the 3.3V of the NPN tube, and 8550 is turned on.  Details Published on 2022-5-26 09:27
If you change the potential change of the left end of R7 to 12V~8.7V, you can control the switch state of 8550. When the left end of R7 is 12V, it is equivalent to 0~3.3V controlling the 0V of the NPN tube, and 8550 is turned off. When the left end of R7 is 8.7V, it is equivalent to 0~3.3V controlling the 3.3V of the NPN tube, and 8550 is turned on.  Details Published on 2022-5-26 09:23
 
 
 

211

Posts

0

Resources
8
 
dcexpert posted on 2022-5-25 17:52 Shutdown depends on voltage. At 12V, VBE cannot reach the shutdown voltage regardless of whether PA12 is 0 or 3.3V.

Thanks!

This post is from Test/Measurement
 
 
 

706

Posts

0

Resources
9
 

This type of control circuit is very common, R6 can be adjusted to a larger value, such as 10K or more.

This post is from Test/Measurement
 
 
 

2w

Posts

0

Resources
10
 
tongshaoqiang posted on 2022-5-26 08:47 Thanks to teacher maychang. I think no matter how the base current is adjusted, the existence of the Vbe conduction voltage difference cannot be changed, and the transistor is always in the on state. ...

If you change the potential of the left end of R7 to 12V~8.7V, you can control the switching state of 8550.

When the left end of R7 is 12V, it is equivalent to 0~3.3V controlling the 0V of the NPN tube. At this time, 8550 is turned off. When the left end of R7 is 8.7V, it is equivalent to 0~3.3V controlling the 3.3V of the NPN tube. At this time, 8550 is turned on.

This post is from Test/Measurement
 
 
 

2w

Posts

0

Resources
11
 
tongshaoqiang posted on 2022-5-26 08:47 Thanks to teacher maychang. I think no matter how the base current is adjusted, the existence of the Vbe conduction voltage difference cannot be changed, and the transistor is always in the on state. ...

NPN tubes and PNP tubes have opposite polarity. When used as switch tubes, in addition to swapping the positive and negative ends of the power supply, the input signal of the base also needs to be changed. The emitter of the PNP tube is connected to 12V, so it should be based on 12V. The zero point of the input signal is at 12V, so the previous reply said that the PNP tube is turned off at 12V. To turn on the PNP tube, the left end of R7 should be negative 3.3V, that is, 12V-3.3V=8.7V.

This post is from Test/Measurement
 
 
 

2w

Posts

0

Resources
12
 
tongshaoqiang posted on 2022-5-26 08:47 Thanks to teacher maychang. I think no matter how the base current is adjusted, the existence of the Vbe conduction voltage difference cannot be changed, and the transistor is always in the on state. ...

In the early circuits using PNP tubes, for convenience, the positive end of the power supply is often marked as 0, and the negative end of the power supply is marked as -12V or -6V, etc. Because the PNP tube works as a switch, the input of the base through the resistor is 0V~(-3.3V).

This post is from Test/Measurement
 
 
 

2w

Posts

0

Resources
13
 
tongshaoqiang posted on 2022-5-26 08:47 Thanks to teacher maychang. I think no matter how the base current is adjusted, the existence of the Vbe conduction voltage difference cannot be changed, and the transistor is always in the on state. ...

So the third poster is right: we need to add an NPN to perform a level shift from 0~3.3 to 0~12V for normal control.

The purpose of adding this NPN tube is not to amplify, but mainly to perform level conversion.

This post is from Test/Measurement

Comments

Thank you teacher for your guidance!  Details Published on 2022-5-26 09:49
 
 
 

211

Posts

0

Resources
14
 
maychang posted on 2022-5-26 09:31 So the 3rd floor is right: it is necessary to add an NPN to do level shift from 0~3.3 to 0~12V for normal control. The purpose of adding this NPN tube is not...

Thank you teacher for your guidance!

This post is from Test/Measurement
 
 
 

867

Posts

0

Resources
15
 

The above analysis is very correct. The 3.3V voltage is too low to be turned off. A transistor is needed to shift the level.

This post is from Test/Measurement
 
 
 

499

Posts

0

Resources
16
 

When using transistors to make switch circuits, NPN transistors are easier to control than PNP transistors, and most products use NPN transistors. Because the input base of NPN is connected to the power supply voltage when the potential is high, and the B pole is directly disconnected and grounded when the potential is low, this method is very convenient for general industrial control.

This post is from Test/Measurement
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
【McQueen Trial】Comparison of the accuracy of several ultrasonic sensor programs of McQueen

Purpose Compare the test accuracy of several ultrasonic sensors to provide a reference for everyone's use. Methods Write ...

[Project source code] [Modelsim FAQ] Definition of port reg and wire in TestBench

This article and design code were written by FPGA enthusiast Xiao Meige. Without the author's permission, this article i ...

[Bluesight AB32VG1 RISC-V board "meets" RTT] Run it first

I received the board yesterday. It is quite small and compact. The components are hand-soldered, the soldering is very g ...

【Development and application based on NUCLEO-F746ZG motor】6. Program framework

Starting today, I will officially start learning the program. ST's main programs are open source. I will first understan ...

Evaluation shortlist: Domestic FPGA Gaoyun GW1N series development board (2 new boards added)

Event details: >> Click here to view First of all, I would like to thank Gaoyun for adding 2 development boards to ...

35 "Ten Thousand Miles" Raspberry Pi Car——ROS Learning (Realizing Hello World)

The best way to learn ROS is to use it. The ROS official website has a Chinese version of the tutorial . After install ...

41 "Wanli" Raspberry Pi car - ROS learning (ROSBridge controls the little turtle)

This post was last edited by lb8820265 on 2022-11-3 22:29 Previously, we introduced how to control the turtle using t ...

How far is RISC-V from competing with Arm?

RISC-V is an open standard instruction set architecture for computer chips. It may take another 5-10 years to full ...

[Xingkong board Python programming learning main control board] Portable juice spectrometer based on Xingkong board

This post was last edited by HonestQiao on 2022-11-21 10:53 Table of contents: 1. Origin of the idea 2. Hardware Mater ...

Have you ever encountered the page prompt "Virtual MFA verification code error" when using the virtual MAF verification code to log in to the bastion host?

At first, I used the MFA WeChat applet to view the MFA verification code, and I could log in to the virtual machine norm ...

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list