3488 views|23 replies

768

Posts

0

Resources
The OP
 

Can this be done at the input end of the optocoupler? [Copy link]

 

Figure 1 is the circuit in use, but because the external input terminal is in high impedance state when there is no input, it is sometimes unstable. I want to connect a 50K resistor directly between pins 1 and 2 to make it like Figure 2 to increase stability. I wonder if this is possible. Thank you.

This post is from PCB Design

Latest reply

Regardless of the previous stage circuit, stability has nothing to do with parallel resistance, and the effort must be put in the right place.   Details Published on 2021-9-28 20:20
 

2w

Posts

341

Resources
2
 

What is the external input here?

It is the IO port driver of the MCU

Adding a resistor here doesn't make much sense, but it can still help

You still need to check why it is unstable, control program, IO port settings, etc.

Or add a freewheeling diode at the input end.

This post is from PCB Design

Comments

The external input is usually an N-channel MOS tube. Would adding a pull-up resistor help stabilize it? The reason for instability may be that the external line is too long. Should a freewheeling diode be added here? ? I don't quite understand. What role does it play?  Details Published on 2021-9-27 09:10
 
 

1w

Posts

25

Resources
3
 

There is no problem with the high impedance state itself, but see if there are other factors affecting the input end.

This post is from PCB Design

Comments

The line is too long, so a resistor is added to stabilize it. I am curious about how to calculate the power consumption of the 6.8K resistor above when it is turned on?  Details Published on 2021-9-27 09:11
 
 
 

27

Posts

1

Resources
4
 

The most correct use of optocouplers is isolation. Logically, the 24V power supply on the board should not be used, and the positive and negative terminals should be input externally at the same time.

This post is from PCB Design
 
 
 

768

Posts

0

Resources
5
 
qwqwqw2088 posted on 2021-9-27 07:49 What is the external input here? It is the IO port driver of the MCU. Adding a resistor here is not very meaningful, but it works a little bit. You still need to check it...

The external input is usually an N-channel MOS tube. Would adding a pull-up resistor help stabilize it? The reason for instability may be that the external line is too long. Should a freewheeling diode be added here? ? I don't quite understand. What role does it play?

This post is from PCB Design

Comments

The screenshot on the first floor is small, and the screenshot of an optocoupler is half-cut. I thought the external connection was controlled by the MCU. I guessed wrong. I don’t need a diode. I know that the external input end is an N-channel MOS tube switch.  Details Published on 2021-9-27 09:55
 
 
 

768

Posts

0

Resources
6
 
dcexpert posted on 2021-9-27 08:42 There is no problem with the high impedance state itself. Check whether there are other factors affecting the input end.

The line is too long, so a resistor is added to stabilize it. I am curious about how to calculate the power consumption of the 6.8K resistor above when it is turned on?

This post is from PCB Design

Comments

Adding a resistor will not help much and will reduce the power of the LED. The power consumption can be calculated by the voltage drop across the LED and the power of R2.  Details Published on 2021-9-27 11:17
 
 
 

6069

Posts

4

Resources
7
 

If the IO port needs a pull-up resistor, the pull-up resistor directly pulls the IO port to the power supply.

This post is from PCB Design

Comments

This is a finished circuit board. I just drew a simple schematic diagram. I can't pull the power supply. Because the distance between pin 1 and pin 2 is just right for a resistor, I plan to connect a resistor directly between pin 1 and pin 2.  Details Published on 2021-9-27 10:23
 
 
 

2w

Posts

341

Resources
8
 
sky999 posted on 2021-9-27 09:10 External input is generally an N-channel MOS tube. Adding a pull-up resistor will have a stabilizing effect, right? The reason for instability may be that the external line is too long. Add a freewheeling diode here...

The screenshot on the first floor is small, and the optocoupler is cut halfway. I thought the external connection was controlled by MCU. I guessed wrong, no diode is needed.

Got it, the external input is an N-channel MOS switch

This post is from PCB Design

Comments

This is a finished circuit board. I just simply drew the principle.  Details Published on 2021-9-27 10:23
 
 
 

768

Posts

0

Resources
9
 
damiaa posted on 2021-9-27 09:13 If the IO port needs to be pulled up by a pull-up resistor, the pull-up resistor is directly pulled from the IO port to the power supply.

This is a finished circuit board. I just drew a simple schematic diagram. I can't pull the power supply. Because the distance between pin 1 and pin 2 is just right for a resistor, I plan to connect a resistor directly between pin 1 and pin 2.

This post is from PCB Design

Comments

This also has a pull-up effect. You can try it.  Details Published on 2021-9-27 15:13
 
 
 

768

Posts

0

Resources
10
 
qwqwqw2088 posted on 2021-9-27 09:55 The screenshot on the first floor is small, and the screenshot of an optocoupler is cut in half. I thought the external access was controlled by the MCU. I guessed wrong. I don’t need a diode. The external input...

This is a finished circuit board. I just simply drew the principle.

This post is from PCB Design
 
 
 

6040

Posts

204

Resources
11
 

You can try this, no problem.

This post is from PCB Design
 
 
 

1w

Posts

25

Resources
12
 
sky999 posted on 2021-9-27 09:11 The line is too long, add a resistor to stabilize it. I am curious about how to calculate the power consumption of the 6.8K resistor above when it is turned on?

Adding a resistor will not help much and will reduce the power of the LED. The power consumption can be calculated by the voltage drop across the LED and the power of R2.

This post is from PCB Design

Comments

What I mean is, when they are on, R2 and R3 are in series, part of the power of R2 itself is given to the LED, and the other part is consumed by R3. How do we calculate the total power consumption of R2?  Details Published on 2021-9-27 11:42
 
 
 

768

Posts

0

Resources
13
 
dcexpert posted on 2021-9-27 11:17 Adding a resistor will not help much and will also reduce the power of the LED. The power consumption can be calculated by the voltage drop across the LED to calculate the power of R2.

What I mean is, when they are on, R2 and R3 are in series, part of the power of R2 itself is given to the LED, and the other part is consumed by R3. How do we calculate the total power consumption of R2?

This post is from PCB Design

Comments

Within a certain range, the voltage drop of the LED is basically constant, so the voltage across R2 can be calculated, and thus the power on R2 can be calculated.  Details Published on 2021-9-27 16:25
 
 
 

122

Posts

2

Resources
14
 

R3 is used to shunt the current of the interference signal, which will have a certain effect when the interference is small, so it will not affect normal use. If the input signal response speed is not required, capacitors can also be considered for filtering.

This post is from PCB Design

Comments

OK, thanks  Details Published on 2021-9-27 23:43
 
 
 

6069

Posts

4

Resources
15
 
sky999 posted on 2021-9-27 10:23 This is a formed circuit board. I just drew the schematic diagram. I can't pull the power supply because the distance between pin 1 and pin 2 is just enough to put a resistor...

This also has a pull-up effect. You can try it.

This post is from PCB Design

Comments

OK, thanks!  Details Published on 2021-9-27 23:43
 
 
 

1w

Posts

142

Resources
16
 

The method of parallel resistors is meaningless. Diodes and LEDs are current-type devices. As long as the front stage is guaranteed to be in a high-impedance state in the non-driven state, the LED will never malfunction. The malfunction must be a design problem of the front stage driver. The original poster should provide the specific circuit of the front stage.

This post is from PCB Design

Comments

Thank you, the pre-stage input is not fixed, there may be many different circuits  Details Published on 2021-9-27 23:44
Personal signature上传了一些书籍资料,也许有你想要的:https://download.eeworld.com.cn/user/chunyang
 
 
 

1w

Posts

25

Resources
17
 
sky999 Published on 2021-9-27 11:42 What I mean is that conduction means that R2 and R3 are connected in series. Part of the power of R2 is given to the LED, and the other part is consumed by R3. Then R2...

Within a certain range, the voltage drop of the LED is basically constant, so the voltage across R2 can be calculated, and thus the power on R2 can be calculated.

This post is from PCB Design

Comments

The voltage drop of LED is 1.2V, and the voltage is 24V, so the power is (24-1.2)/6800≈3.3mA*24V≈0.08W. At this time, R2 and R3 are connected in parallel. Do we need to calculate the power of 24V divided by 56.8K (R2+R3)?  Details Published on 2021-9-27 23:49
 
 
 

768

Posts

0

Resources
18
 
baopodao posted on 2021-9-27 13:57 By using R3 to shunt the current of the interference signal, it will have a certain effect when the interference is small, which will not affect normal use. If the input signal...

OK, thanks

This post is from PCB Design
 
 
 

768

Posts

0

Resources
19
 
damiaa posted on 2021-9-27 15:13 This also has a pull-up effect. You can try it.

OK, thanks!

This post is from PCB Design
 
 
 

768

Posts

0

Resources
20
 
chunyang posted on 2021-9-27 16:20 The method of parallel resistors is meaningless. Diodes and LEDs are current-type devices. As long as the front stage is guaranteed to be in a high-impedance state in the non-driven state, the LED will never malfunction...

Thank you, the pre-stage input is not fixed, there may be many different circuits

This post is from PCB Design

Comments

Regardless of the previous stage circuit, stability has nothing to do with parallel resistance, and the effort must be put in the right place.  Details Published on 2021-9-28 20:20
 
 
 

Guess Your Favourite
Find a datasheet?

EEWorld Datasheet Technical Support

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