If you are driving an LED, then a resistor of about 1K will do. If you want a brighter brightness, the resistor can be reduced, but the minimum value should not be less than 200 ohms, otherwise the current will be too high; if you want a lower brightness, the resistor can be increased. How much should it be increased depends on the brightness. Generally speaking, when it exceeds 3K, the brightness is very weak. However, for ultra-high brightness LEDs, sometimes the brightness is acceptable when the resistor is 10K. Usually, a resistor of 1k is used.
For driving the optocoupler, if the high potential is valid, that is, the coupler input terminal is connected between the port and the ground, then the situation is the same as that of the LED; if the low potential is valid, that is, the coupler input terminal is connected between the port and VCC, then in addition to connecting a resistor between 1-4.7k in series, the resistance of the pull-up resistor can be particularly large, between 100k-500K, of course 10K is also possible, but considering the power saving issue, there is no need to use such a small one.
For the driving transistor, it is divided into two cases: PNP and NPN tubes: For NPN, there is no doubt that the NPN tube is high-level effective, so the resistance of the pull-up resistor can be between 2K and 20K, and the specific size depends on what load the collector of the transistor is connected to. For LED loads, since the light-emitting current is very small, the resistance of the pull-up resistor can be 20k, but when the collector of the tube is a relay load, due to the large collector current, the resistance of the pull-up resistor should not be greater than 4.7K, and sometimes even 2K is used. For PNP tubes, there is no doubt that the PNP tube is low-level effective, so the resistance of the pull-up resistor can be more than 100K, and the base of the tube must be connected in series with a 1-10K resistor. The size of the resistance depends on what the load of the collector of the tube is. For LED loads, since the light-emitting current is very small, the resistance of the resistor connected in series with the base can be 20k, but when the collector of the tube is a relay load, due to the large collector current, the resistance of the base resistor should not be greater than 4.7K.
For driving TTL integrated circuits, the pull-up resistor should be between 1 and 10K. Sometimes, if the resistor is too large, it cannot be pulled up, so a smaller resistance is used. However, for CMOS integrated circuits, the pull-up resistor can be very large, generally not less than 20K. I usually use 100K. In fact, for CMOS circuits, the pull-up resistor can be 1M, but it should be noted that when the pull-up resistor is too large, interference is likely to occur, especially when the lines on the circuit board are very long, this interference is more serious. In this case, the pull-up resistor should not be too large, generally less than 100K, and sometimes even less than 10K.
According to the above analysis, there are many considerations when selecting the resistance value of the pull-up resistor and it cannot be used indiscriminately.
Previous article:Automatic water supply system designed with 51 single chip microcomputer
Next article:51 single chip microcomputer clock and reset circuit
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- What is the use of connecting Schottky diodes in parallel at both ends of the MOS tube used as a switch at the power input?
- Friends in Xi'an, please get out of this pit as soon as possible.
- Xianyu low-cost wireless digital microphone disassembly (Jerry solution)
- [Perf-V Review] + Solidification of Hummingbird Soft Core
- Read the good book "Electronic Engineer Self-study Handbook" + my impression
- Three-port network
- RSL10 drives ink screen
- GoKit Case Study: Gizwits IoT Development Platform’s Pet House Transformed into an Air Quality Detector
- Embedded licensing: why not and why not?
- I found a 1963 "Electron Tube Handbook"