When testing the voltage at the port of the single-chip computer with a universal meter, connect the red pen to the port pin of the single-chip computer, connect the black pen to the GND (ground), and then read the voltage displayed by the universal meter. It should be noted that the operating voltage range of different MCUs is different. For example, the normal operating voltage range of the STC89C52RC is 5.5V - 3.4V, and the most commonly used voltage in this range is 5V. If the ATmega single-chip processor was used, it was impossible to measure the resistance between the output high-level IO-to-GND or the output low-level IO-to-vcc-resistance due to the existence of the output static voltage. Read more exciting novels for free
The following methods can be used to measure voltage and current in the 51 single-chip computer: ** 1. Voltage-measuring ** 1. ** voltage adjustment ** - If the voltage to be measured exceeds the working voltage range of the ADC0809 (8-bit ADC), the voltage to be measured can be reduced to an appropriate range through a resistance voltage splitter circuit to avoid affecting the conversion accuracy. 2. ** Connection and Setting ** - He connected the divided voltage to the input pin of ADC0809 and set the reference voltage. 3. ** Samplings and Conversion ** - The input pin was then subjected to a sample and conversion operation, which resulted in a digital representation of the voltage. 4. ** Conversion of results ** - According to the reference voltage and measurement range of the ADC0809, a suitable formula was determined to convert the obtained digital value into an actual voltage value. ** 2. Current measurement ** 1. ** Current to voltage conversion ** - Using a resistance in series with the current to be measured, according to Ohm's law, the current value can be indirectly obtained by measuring the voltage signal generated at both ends of the resistance. 2. ** Connection and Setting ** - This voltage signal is connected to the input pin of ADC0809. 3. ** Samplings and Conversion ** - The digital representation was obtained by performing a sample and conversion operation. 4. ** Conversion of results ** - The numerical value is converted into an actual current value using a formula related to the measurement range and the reference voltage. During the entire measurement process, it was necessary to pay attention to setting the corresponding operating mode, reference voltage, clock frequency, and other parameters of the ADC0809, and to perform the correct data reading operation. At the same time, due to the limited resolution of the ADC0809, in order to ensure the accuracy and reliability of the measurement results, the stability and anti-interference ability of the circuit should also be paid attention to. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
This isn't related to online novels. If you want to recommend web novels related to this design, you have to give me the name, author, story content, character information, and book review of the web novel. Only then can I integrate and recommend it according to the requirements. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
There were some software that could be used to simulate the voltage of the single-chip computer, such as the Simuide, which could not only simulate the circuit but also simulate the AVR single-chip computer. The windows version had the built-in tuning software for the pid single-chip computer. Due to the GPL agreement, the debuggers for the linux-based version needed to be installed. It integrated the Arduino compilation and tuning environment, and the Arduino code could be written and run on it. There were a variety of electronic components in the software that could be freely used. Probes and voltage meters could be added anywhere in the circuit simulation circuit. An ammeter or an earpiece could be used to monitor the voltage and other changes. It could also monitor the memory and register of the single-chip computer. There was also the Proteus software, which was excellent in the simulation of single-chip processors. It supported the simulation of 8051, PAC, and AVR single-chip processors. It could carry out circuit design, circuit board layout and design, circuit simulation parameters analysis, and also support the analysis of various circuit parameters such as voltage. It could also visualize the simulation data through various charts and graphs. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
The design of an electric energy meter based on a single-chip computer has many meanings: 1. ** For the improvement of the designer's own ability **: Through thinking and hands-on practice, it can greatly train the designer's self-learning ability, and at the same time improve the knowledge level of the single-chip computer, laying a solid foundation for subsequent related applications. 2. ** Understanding of signal conversion and function realization **: It helps designers to have a clearer understanding of the signal conversion process and function realization. 3. ** Research on the performance of the electric energy meter: It can test the stability of the 89C51 single-chip computer in the application of the electric energy meter, and evaluate the function and superiority of the electric energy meter. 4. ** From the perspective of the development and practical value of the electric energy meter: With the rapid increase in power demand, the electric energy meter is the main tool for measuring electricity. It is extremely important to design an electric energy meter based on a single-chip processor with more functions and higher accuracy to save electricity. This kind of electric energy meter has high precision and accuracy, and has a very good practical development value. It converted the continuous digital data into a non-continuous, scattered digital form and displayed it, combining the results of electronic technology, computing technology, and automated technology with precision electrical measurement technology, breaking the pattern of traditional electronic measuring instruments. The display was clear and intuitive, and the reading was accurate. It adopted advanced digital display technology, which greatly reduced the measurement error caused by human factors. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
A single-phase digital voltage meter was an instrument that measured the voltage parameters of three-phase electricity. The unit of measurement was volts (V). There are many types of common single-phase digital voltage meters, such as XC-db140S76- U single-phase digital display voltage meter. It can be used with mutual inducers, voltage diverters, etc. It can display the voltage, current and other parameters in the power grid. It has the advantages of high accuracy, strong isolation, stable performance, and easy installation. It uses a large screen liquid crystal display, which can display voltage and current values and other power parameters at the same time. The user can easily switch the display content by pressing the button, and can also send out an alarm for abnormal situations. The instrument has a variety of communication protocol, and can be connected with computers, Plcs and other equipment to achieve remote monitoring and data acquisition. The Hongrun C100 single-phase electricity meter could also collect the AC voltage signals in the power grid and circuit, and display, control, remote transmission, communication, and other operations after processing. It has a 5-digit LED digital display, energy accumulation pulse output, energy accumulation reset, and other functions such as RS485/232 communication. It has strong anti-interference performance and can pass a variety of EMC-tests. There were also some single-phase digital voltage meters that could be used in specific scenarios, such as the digital voltage meter for electric vehicles ranging from 12 volts to 85 volts, which could be connected to the red and black wires of the meter to display the power. There were also LED liquid crystal dual-display voltage meters that could be used on batteries or batteries to display the voltage and remaining power. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
The higher the voltage, the smaller the value. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
The selection of a voltage meter required the integration of many factors. First of all, it was necessary to determine the nature of the voltage to be measured, whether it was direct current, alternating current, or alternating current. According to this, it could be divided into different types of voltage meters such as electromagnetic, electromagnetic, and electric. Then, he had to determine the measurement range. If he wanted to measure the voltage of the voltage level, he could use a volts meter. If he wanted to measure the voltage of the millivolts level, he could use a millivolts meter. In terms of range selection, the range of the detected voltage should be greater than the measured voltage value, and the indicator should be in the range of two-thirds of the full scale value to reduce the error. For example, in a common low-voltage AC power supply system, the three-phase 380V voltage was usually equipped with a 450V range voltage meter; the single-phase power supply voltage was usually 220V, and the 250V range was more suitable. If the voltage was not stable at around 230V, the 250V range voltage meter could still be used normally. For a voltage meter with a range of 0 - 250V, it can generally be used to monitor whether the incoming voltage of a single-phase circuit is normal. At the same time, in order to not affect the state of the circuit when measuring the voltage meter, the internal resistance of the voltage meter should be as large as possible. In other words, the internal resistance of the voltage meter should be much larger than the load resistance. The greater the internal resistance, the closer the measurement result is to the actual value. If it was to measure high voltage, a voltage transformer would be used. Its primary coil was connected to the circuit under test. The secondary coil had a rated voltage of 100 volts and was connected to a voltage meter with a range of 100 volts. The indicated value of the voltage meter multiplied by the voltage transformation ratio of the voltage transformer was the actual voltage measured. The voltage transformer must be strictly prevented from short-circuiting the secondary coil during operation. Usually, a fuse was set in the secondary coil as protection. However, the document did not mention the special selection requirements of the C1u single-phase voltage meter. The above is the general knowledge of voltage meter selection, which can be used as a reference. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
The following is a basic tutorial written on a single-chip computer: ##1. Initial preparations 1. ** Choose the model of the single-chip computer and the development board ** - According to your learning goals and interests, you can choose models suitable for beginners such as the 51 single-chip processor and STM32. Buy a development board that contains the model of the selected single-chip computer, and prepare the necessary accessories, such as USB to serial port module, LED lights, buzzers, etc. 2. ** Installs the Integrated Development environment ** - For example, 51 MCUs may use Keil, and STM32 may use STM32 CubeID. 3. ** Driver configuration ** - According to the requirements of the development board, the necessary drivers were installed. For example, the development board that uses ST-Link requires the ST-Link driver to be installed. The specific operation may include inserting the driver into the computer, opening the computer device manager to check if the installation was successful, and so on. ##2. Learning to program 1. ** Basic programming ** - Learn how to write and compile a single-chip computer program using the IDE. This included understanding programming languages. Single-chip processors usually used C or assembly language for programming. Beginners were advised to start with C. Familiarize yourself with the operation interface of the IDE, such as how to create a project, how to add source files, etc. 2. ** Simple experimental programming ** - He started writing programs from simple experiments, such as lighting up LED lights, controlling the sound of the buzz, and so on. These simple experiments helped to understand the basic operation of the single-chip computer. To light up the LED lights as an example, you need to understand the settings of the general input and output port (CPU) of the single-chip computer. You need to control the level state of the pins through programming to achieve the lighting or extinguishing of the LED. - When writing code, you must follow the programming specifications and grammar requirements of the selected single-chip computer. For example, in the C language, one had to correctly define variable types, functions, etc. 3. ** Advanced experimental programming ** - As his understanding of the single-chip computer deepened, he tried more complicated experimental programming, such as using ADC (Analogy to Digital Conversion) modules to read the simulated signal, using Pulse width Modulation (Pulse width Modulation) to control the motor speed, and so on. This required a deeper understanding of the other functional modules of the single-chip computer, such as the programming application of timers, interrupt systems, etc. ##3. Search for Tuors and Resources 1. ** Online tutorial ** - Find online tutorial and videos about MCUs on platforms such as Bilibili and CSPD blog. These courses and videos might include basic to advanced programming knowledge, real-life case studies, and so on. 2. ** Book Learning ** - Read classic books about single-chip processors, such as "51 Single-Chip Computer Development from Entry to Proficiency","STM32F10x Series Arm Cortex-M3 Microcontroller Development Guide", etc., to obtain more systematic and in-depth programming knowledge from the books. ##4. Practicing Program 1. ** Project Design ** - Try designing a small project, such as using a microchip to control a smart home device or making a simple robot. When designing a project, one had to plan the functional requirements, hardware selection, software architecture, and so on. 2. ** Project Realization ** - Translate the design into an actual product, write the corresponding program code to realize the project function, and test and debugged it. In this process, various problems may be encountered, such as hardware circuit connection problems, program logic errors, etc., which need to be solved by debugging tools and methods. For example, he could use the single-chip computer's interface to set breakpoints and view variable values in the IDE. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
The following are the general steps and key points of the development of the single-chip electronic scale: ** 1. Hardwares ** 1. ** Main control chip selection ** - He could choose a more common chip like the 8051 single-chip computer. It had 4KB of internal program memory (Scalable), 128-Byte internal data memory (Scalable), multiple bi-directional parallel input/output ports, and other resources to meet the basic control and data processing needs of the electronic scale. - It also has the advantages of low working voltage, low power consumption, strong driving ability, etc. For example, its I/O port is bi-directional and the output circuit is a complementary push-pull output circuit. The external circuit is simple in driving the digital tube display, and its A/D is 10 bits to meet certain precision requirements. 2. ** Sensing and signal processing ** - The sensor was used to obtain physical quantities such as weight. For example, using a pressure sensor to detect the weight of an object usually required a special signal processing chip, such as the HX711 for processing pressure signals (range 0 - 5kg, accuracy 0.1 g). 3. ** display module ** - The 1602 LCD module was used to display the date, time, weight and other information. It was necessary to connect the single-chip computer to the 1602 liquid crystal, including the connection of the data port and the control port. The software programming was also used to initiate and write data into the 1602 liquid crystal. 4. ** Clock module (option)** - If you need to record time-related information, you can use the DS1302 clock chip. It could provide accurate date and time information for the electronic scale. The microchip needed to communicate with it through the corresponding interface circuit to read and set the time. 5. ** Communication module (option)** - If you want to upload the data to the PC display, you can use the 232 serial communication. The single-chip computer had to set up the serial port, including the configuration of baudrate, data bit, stop bit, and other parameters to achieve stable data transmission with the PC. 6. ** Power Circuit ** - It provided a stable power source for the entire system. It was necessary to design a suitable power supply circuit according to the voltage requirements of the selected chip and other electronic components. For example, a voltage stabilizing chip was used to convert the input voltage to a stable 5V or 3.3V voltage to meet the power supply requirements of the single-chip computer, sensor, display module, etc. ** 2. Software ** 1. ** Selection of programming language ** - If you use the 8051 single-chip computer, you can generally use assembly language or C language for programming. For beginners, C language was relatively easier to understand and write complex program logic. - For the PIC-based single-chip computer, you can also use the C language or its specific programming language, but you should pay attention to the differences between the 8051 single-chip computer and the 8051 single-chip computer in terms of instruction set and register usage. 2. ** Program Function Realization ** - ** Initialize settings **: Initialize the ports, timers, and interrupt of the single-chip computer. For example, set the port connected to the sensor to the input mode and the port connected to the display module to the output mode; Initialize the timer to meet the timing requirements (if there is a timing function requirement); Configure the interrupt (if the interrupt is needed to process the sensor data collection or other events). - ** Data Collection **: Obtain weight and other data from the sensor through programming. If the HX711 was used to process the pressure signal, it was necessary to read the processed pressure data (weight data) from the HX711 according to the communication protocol of the HX711 and convert it into an actual weight value. - ** Data processing **: To process the collected data, such as filtering to reduce errors caused by sensor noise. Simple arithmetic average filtering or other filtering algorithms can be used. - ** Show Function **: Show the processed weight, date, time and other data on the 1602 LCD. This required writing the corresponding display function according to the display specifications of the 1602 liquid crystal, converting the data into a format suitable for display and sending it to the liquid crystal display module. - ** Communication function (option)**: If there is a serial communication function, write a serial communication program to send the data to the PC in the agreed format. This included the packaging and verification of the serial port data to ensure the accuracy of the data transmission. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
There may be the following reasons and solutions for the black screen after the computer is connected to the single-chip computer: 1. ** USB-to-serial driver problem **: If you use the USB-to-serial cable to connect the computer and the single-chip computer, the USB to serial driver may have a problem and cause a black screen. It is recommended to try changing the driver. The USB connection must be disconnected during operation. 2. ** Driver conflicts **: If you are using the Windows system, sometimes a new hardware driver may cause conflicts. You can go to the device manager to check if there are any devices with yellow exclamation marks and try to update the relevant drivers. 3. ** Too much current **: The temporary crash caused by the excessive current during the single-chip computer burning process may also cause the computer to turn black. Before downloading, check if the power supply is stable or try to reduce the download speed. 4. ** Connection unstable **: The USB to serial cable connection is unstable, or the driver is not installed properly. He tried to pull and plug the wire to make sure the contact was good. If the computer has multiple USB ports, try switching to another one. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>