The following are some of the main points of the 5V relay circuit controlled by the single-chip computer: ** 1. In terms of hardware connection ** 1. ** Connection between the pins of the single-chip computer and the relay ** - The output pin of the microchip needed to be connected to the control end of the relay. For example, in a common 51-bit single-chip computer, if the STC89C52 single-chip computer is used, one of its output pins (such as a pin of the P1 port) can be connected to the control input pin of the relay module. Relays generally have two ends of the coil, one end connected to the output pin of the microchip, and the other end connected to the ground or power supply (according to the circuit design of the relay module). 2. ** Power supply ** - The 5V relay required a 5V power supply. You can use the same 5V power supply as the single-chip computer, but pay attention to whether the power of the power supply can meet the needs of both. If the power supply is insufficient, it may cause the relay to not work properly or the single-chip processor to operate unstably. - In order to prevent the relay from interfering with the power supply of the single-chip computer, it may be necessary to consider power isolation. For example, the use of optical isolation or relay driver chips could isolate the power supply of the single-chip processor and the relay to ensure the stability and reliability of the signal transmission. 3. ** Protective Circuit ** - In order to prevent current surges, a suitable current limiting resistance or induction could be added to the control end of the relay. Because the relay may produce a large current impact at the moment of switching, this may affect other components such as the power supply and the single-chip computer. By adding these components, the current can be smoothly controlled. - In order to reduce the electromagnetic interference generated by the relay at the moment of switching on and off, a suitable filter circuit could be added to the control end and power supply end of the relay to limit the transmission of electromagnetic noise. ** 2. Program Control ** 1. ** Initialize ** - In the program of the single-chip computer, the port connected to the control pin of the relay must first be initialized. If you use the C language programming of the 51 single-chip computer, you may need to set the corresponding register to set the control pin to the output mode. For example, when using a pin of the P1 port, the relevant register of the P1 port must be set. 2. ** Control logic ** - When the relay needs to be controlled, the high and low levels are output to the control pin through the single-chip computer program. For example, the output of a high level causes the relay to be pulled in (if the relay is triggered by a high level), and the output of a low level causes the relay to be disconnected. The specific logic needed to be written according to the type of relay (such as high level trigger or low level trigger) and the actual control requirements. Read more exciting novels for free
As for the single-chip coupled circuit, in some electrical control products, the input circuit part involved coupling-related content. For example, when the various control signals of traditional electrical equipment are converted into digital signals that match the input/output port of the single-chip computer, the control signals input by the user equipment to the single-chip computer (such as the switch output of the limit switch, the operation button, etc.) are converted through the input circuit, where the input circuit has a coupling-related function. There was also the circuit diagram of the optical coupler-driven relay in the circuit of the single-chip drive relay. The optical coupler-driven relay played a role in the circuit, but the specific circuit diagram needed to be consulted in special documents, such as the circuit diagram of the optical coupler-driven relay (optical coupler/UL2803/switch circuit) and other related information. In addition, the document on the design method of the commonly used drive and coupled circuit of the single-chip I/O for the characteristics of electrical control products may have more detailed design content about the single-chip coupled circuit, but it did not directly give a detailed circuit diagram. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
In the 51-bit single-chip computer, the crystal circuit was a crucial part of the peripheral circuit of the single-chip computer. From the perspective of pin connection, the 51 single-chip computer had two pins, XTAL1 and XTAL2, for connecting to the crystal oscillation (crystal resonant). These two pins were connected to an internal phase shifter of the MCUs to form a Pierce Oscillator with the external crystal oscillation. The working principle was that the Pierce Oscillator needed to meet the two conditions of 2k Pi loop phase shift and closed-loop gain of 1 in the ideal circuit form. The phase shifter provides a 180° phase shift for any frequency component and can be seen as a buffer. It is easy to obtain a loop gain of 1 by adjusting its output characteristics. However, this was not enough to start the vibration. The crystal itself was very important. Quartz crystals had a piezo electric effect. After processing, the Quartz Crystal Resonator (QCPR) could be represented by an ideal circuit model consisting of a L1 - C1 - R1 series resonant circuit plus a very small C0. The QPR was connected in parallel with the phase shifter to act as a frequency selection network. When it was powered on, it could be seen as a step signal being input into the output of the phase shifter. The QPR picked out the signal at the resonance point frequency. When the loop gain was 1, the circuit tended to be stable. In the crystal circuit, the common crystal frequencies were 4, 8, 11.0592, 12, etc. The crystal was used to provide a stable clock signal for the single-chip computer. All the instructions of the single-chip computer were based on this. The speed of the single-chip processor was related to the clock frequency provided by the crystal. The higher the clock frequency, the faster the single-chip processor would run. From the composition of the crystal circuit, it was composed of a Quartz crystal and a circuit. Together with the reset circuit, it ensured the stable operation of the single-chip system. The main function of the crystal circuit was to provide clock signals for the operation of various modules within the single-chip computer to ensure the correct execution of the program. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
The following are several examples of simulation circuits related to single-chip processors: - In the ESP32 and Arduino single-chip simulation (such as the website of the website, the simulation circuit that lights up the LED light needs to add an LED light and a current limiting resistance. The negative pole of the LED lamp was connected to the GND pin of the single-chip development board, the positive pole was connected in series with the current limiting resistance, and the other end of the current limiting resistance was connected to the No. 2 pin of the development board. - For the simulation circuit of the steering gear control, add the steering gear in the hardware circuit (the steering gear has three pins, namely, the voltage regulator, the voltage regulator, and the voltage regulator. The voltage regulator is connected to the negative pole of the power supply, and the voltage regulator is connected to the positive pole of the power supply). Then, connect the steering gear to the single-chip computer (if you use the Arduino single-chip computer, you can choose a pin with a "~" to output the voltage regulator signal. In this project, pin 3 is selected as the voltage regulator output pin). - If the simulation uses L298 to drive the direct current motor, the circuit includes the L298N chip (this is a dedicated driver integrated circuit, belonging to the H bridge integrated circuit), the display part uses the PG 160128A (the liquid crystal display dot matrix is 160X128), the input device is a 4X4 matrix keyboard, and it may also include measurement tools such as a virtual scope. The positive and negative rotation of the motor can be controlled by the P1.0 pin of the single-chip computer. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
This is just a term," single-chip dual controllable silicon circuit." There's no more information, such as its principle, function, application scenarios, etc. Can you give me some additional content? This way, I can make recommendations according to the requirements. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
There were two ways to download the STM32 program. One was based on JTAG (SWD). This method required an simulator (such as J-Link and U-Link) to efficiently and quickly debugged the STM32 single-chip system. The other was based on serial port. The entire STM32 series supported this method. This method could download the HEX file to the STM32 chip through a USB cable and the corresponding ISP download software. In order to download the circuit through the serial port, one must first understand the several boot modes of the STM32. If you want to download the code through the serial port, you need to set BOOT0 to 1 and BOOT1 to 0. If you want the STM32 to run the code as soon as it is reset, you need to set BOOT0 to 0 and BOOT1 to any value. A circuit could be designed to control the one-button download circuit through the serial port to USB chip CH340G's DTL #and RTS#pin signals, thereby indirectly controlling the STM32's RESET and BOOT0 pin signals, achieving the effect of one-button download and operation through the serial port. The serial port download software can choose MCUSP, which can automatically allocate the BOOT0 and RESET signals through the DTL and RTS signals of the serial port. The user does not need to manually switch the state. Open MCUIsp, click Search serial port, and it will automatically find the onboard serial port of the circuit board. Choose the baudrate of 460800 in the bit rate, select the low level reset of DTL in the lower left corner, and then load the burn file into BootLoader at RTS high level. Before the program was written, click to read the device information. If the relevant information appeared, it meant that the serial port connection of the circuit board was successful. Then click to start programming, and the program began to be written. After the program was successfully written, a message indicating that the program was successfully written would appear. The specific process was as follows: mcuisp controls the DTL output to be low, so DTL #output is high. Then RTS is set to high, so RTS#output is low, so Q3 is turned on and BOOT0 is pulled high. At the same time, Q2 will also be turned on, and the reset pin of STM32 will be pulled low to achieve a reset. Then, after a delay of 100ms, mcuisp controls DTL to be at high level, DTL #will output low level, RTS will remain at high level, RTS#will continue to be at low level. At this time, the reset pin of STM32 will become high level because Q2 is no longer connected. STM32 will end the reset, but BOOT0 will still remain at 1, thus entering the SP mode. Then mcuisp can start to connect to STM32 and download the code, thus realizing one-click download. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
The following is an example of a paper framework on smart power control: ** Title: Research on Smart Power Control Based on Single-Chip Computer ** ** abstract **: The purpose of this research is to realize intelligent power control with single-chip computer, and to explore its working principle, design ideas, advantages, and application prospects. ** I. Introduction ** This paper introduced the importance of intelligent power control in modern electronic equipment. With the development of technology, the demand for intelligent power management is increasing day by day, and the single-chip processor plays a key role in it. ** II. Principle of application of single-chip computer in intelligent power control ** (I) Single-chip computer summary This paper briefly introduced the basic structure and functional characteristics of the single-chip computer. For example, it was a micro-computer system that integrated the functions of the central processing unit (CPU), memory, input and output interface, and could realize the processing and control of various signals. (2) Basic requirements for smart power control For example, the voltage and current regulation of the power supply, charging management (including the charging characteristics of different battery types), power status monitoring (remaining power, power consumption, etc.), power input and output control logic, etc. (3) How does the single-chip computer meet the needs of smart power control? 1. hardware level - The I/O interface of the single-chip computer was used to connect the power-related circuit components, such as voltage detection circuit, current sensor, etc., to realize the collection of power parameters. - Through the internal timer and counter functions of the single-chip computer, it could control the switching frequency, charging time and other parameters of the power supply. 2. software level - Use a suitable programming language (such as C language) to write the control program and realize the power management algorithm. For example, a charging control algorithm could be written according to the charging curve of the battery to realize the switching between the constant current and constant voltage charging mode. - The software could monitor the power status in real time and perform corresponding control operations according to different states, such as sending an alarm signal when the battery was low or automatically switching to low-power mode. ** III. Design example of intelligent power control system based on single-chip computer ** (I) hardware design 1. Selection of Master Control Single-Chip Computer - According to the complexity of the power control, performance requirements and other factors, select the appropriate model of the single-chip computer, such as the Cynal C8051F020 single-chip computer, and introduce its characteristics (such as rich resources, good performance, etc.) for the application of intelligent power control. 2. Power supply circuit related components - The design of the battery charging circuit, including the selection of the charging chip (if used) or the charging circuit principle based on the single-chip processor (such as the charging current adjustment through the single-chip processor controlling the MOS tube). - The voltage and current detection circuit design uses suitable sensors (such as voltage dividing circuit, current transformer, etc.) to convert the voltage and current signals of the power supply into signals that can be recognized by the single-chip computer. - The electric energy state detection circuit, for example, uses a battery gauge chip or obtains the battery state through comprehensive calculation of parameters such as voltage, current, and time. - The power input and output control circuit, such as the use of a relay or a MOS tube to achieve the switch control of the power supply, was driven by the I/O port of the single-chip computer. - The display circuit design (option), such as using an LED or LCD display to display the relevant parameters of the power supply (voltage, current, power, etc.), through the display interface of the single-chip computer for data transmission. (II) Software Design 1. software framework - It adopted the idea of a module design, including an initialisation module (to initialise the various functional modules and I/O ports of the single-chip computer), a power supply parameters collection module (to regularly collect parameters such as voltage and current), a control algorithm module (to make power supply control decisions according to the collected parameters), and a display module (to display the power supply status information). 2. Main control algorithm - Charging control algorithm, such as the implementation process of the three-stage charging algorithm (pre-charging, constant current charging, constant voltage charging) based on the battery characteristics. - Power supply energy-saving control algorithm, such as dynamic adjustment of power supply output voltage and current according to load conditions, when the load is small, the power supply output is reduced to achieve energy-saving purposes. ** 4. Experiment results and analysis ** (I) hardware testing 1. Testing equipment and method - The test instruments used (such as an earpiece, a universal meter, etc.) were introduced, as well as the methods to test various parts of the hardware circuit, such as the accuracy of the voltage detection circuit and the charging efficiency of the charging circuit. 2. test result - The actual results of the various tests were given, such as the error range of the voltage detection, the stability of the charging current, and so on. (2) Software Testing 1. Testing environment and method - Description of the software testing environment (such as testing on the single-chip development board), the testing methods used (such as functional testing, boundary value testing, etc.). 2. test result - The test results of the software functions, such as whether the control algorithm can correctly realize the functions of charging management and energy-saving control, as well as the stability and reliability test results of the software. ** 5. The advantages and limitations of intelligent power control with a single-chip processor ** (I) Strengths 1. flexibility - It can be customized according to different power supply application requirements, and function expansion can be easily achieved by modifying software algorithms and adjusting hardware circuits. 2. cost-effective - Compared to some specialized smart power management chips, the single-chip computer had a certain cost advantage, especially in large-scale production, which could reduce the overall cost. 3. high integration - Multiple power management functions can be integrated into a single chip system, reducing the complexity of external circuits. (2) Limitations 1. development difficulty - The requirements for developers were high. They needed to master the hardware design and software programming knowledge of the single-chip computer, and the development cycle might be long. 2. performance limitations - In some situations where the power control accuracy was extremely high and the processing speed was very fast, the performance of the single-chip processor might not be able to meet the requirements, and a more advanced control chip or technology was needed. ** 6. conclusion and outlook ** (I) The conclusion This paper summarized the research results of the intelligent power control system, including the effectiveness of the system design, the expected goals achieved by the experimental test results, and so on. (II) Future This paper discussed the future development direction of the smart power control of the single-chip computer, such as the continuous development of single-chip technology (higher processing speed, lower power consumption, etc.), the potential application and further optimization direction in the field of new energy (such as electric vehicle battery management, solar battery control, etc.), smart home equipment power management, etc. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
For a 24V motor with a high current, it could generally be controlled by a MOS tube or an IGBT. Relatively speaking, an mos was a more economical and practical choice. You can use a single-chip computer to build an H-bridge drive circuit to drive a 24V brush motor. First, draw the H-bridge drive circuit. In the protues, you can use a high-voltage driver chip like the ICR2101 (24V is considered low voltage compared to the voltage it can drive) to build the circuit. At the same time, you need to consider the addition of some other circuit components, such as the addition of a circuit. Because there was an interelectrode capacity (between the G and S poles) inside the MOS tube, the resistance coming out of the G pole and the interelectrode capacity of the GS formed an RC-charge and discharge circuit. By adjusting this resistance, the rise time of the MOS output from the low level to the high level of the dimming pulse could be adjusted. A parallel connection of the G-pole resistance with a second voltage could make the discharge time of the dimming pulse from the high level to the low level faster, thus affecting the fall time. In addition, when it came to the single-chip processor receiving the signal from the 24V passive switch, the 24V high frequency needed to be reduced to the single-chip processor pin frequency. In the motor control, by controlling the operation of turning on and off the MOS tube in the H-bridge circuit, the motor was controlled and started. For example, through the electromagnetic coil of the contactors in the control circuit, the power supply of the main circuit of the motor was switched on and off to start the motor. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
The time relay could be used to control the washing machine to rotate forward and backward. The principle was to control the opening and closing of the circuit through the contact action of the time relay, thus realizing the cycle of the washing machine motor turning forward, stopping, and reversing. For example, in a circuit, after setting the timer to a certain timing time, the time relay was energized, its normally open contact was closed, and the normally closed contact was disconnected. A main circuit and a control pole trigger circuit in the bi-directional crystallizer were connected to the AC power supply and triggered to conduct. The phase-splitting reactor and the resistance were connected to the secondary winding. The motor rotated in a certain direction, and at the same time, the time relay began to delay. When the time delay reaches the set time, the normally closed time delay contact of the time relay is cut off, the time relay loses power and is released, and the normally open and normally closed contacts of the time relay are all reset. This bi-directional crystallizer is cut off due to the loss of the trigger signal, and the motor stops rotating; the main circuit of the other bi-directional crystallizer and the trigger pole control circuit are connected to the power supply and triggered to be conducted; the split-phase capacity and the resistance are connected to the main winding; the first bi-directional crystallizer is in the cut-off state, and the motor is rotated in the opposite direction. Then, the contact of the time relay began to close and delay again. When the delay reached the set time, the normally closed delay contact returned to its position. The contact closed and the time relay was pulled in. The motor changed its direction again, and so on until the timing ended. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
The button and contactors double interlocked forward and backward control circuit combined the structure of the contactors interlocked forward and backward control circuit and the button interlocked forward and backward control circuit. The contactors interlocked with the reverse rotation control circuit was safe and reliable. The auxiliary normally closed contacts of the contactors were interlocked to prevent the two contactors from being energized at the same time and causing a short circuit of the power supply. However, the operation was inconvenient. For example, when switching from forward rotation to reverse rotation, the stop button must be pressed first before the reverse button can be pressed. The button interlocked positive and negative rotation control circuit was easy to operate. It could directly switch between positive and negative rotation without pressing the stop button. However, there was a safety hazard, which was easy to cause a short-circuit between phases. For example, when the main contact of the contactors was fused or stuck by foreign objects, it might cause a short-circuit between phases. The button and contactors double interlocked positive and negative control circuit had the advantages of the above two circuits. It was convenient to operate, safe and reliable, and would not cause a short circuit between phases. However, its own circuit was more complicated, and the connection circuit was easy to make mistakes, resulting in circuit failure. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>