Home

Sensors

The Overall Design Scheme of Intelligent Electronics for Single Chip Microcomputer

Blog

The Overall Design Scheme of Intelligent Electronics for Single Chip Microcomputer

  • 2023-08-07 15:32:49
The Overall Design Scheme of Intelligent Electronics for Single Chip Microcomputer

The designed intelligent electronic scale can adapt to various environments and carry out digitization. It shows that after being connected to the Internet, it can accurately weigh and realize the automation of the production process, thus. Improve the company's operating efficiency, as follows. Using 51 single-chip microcomputer. As the core control unit and using pressure sensors to collect data. Adopt 24-bit analog/digital (A/D) conversion chip HX711 for electronic scale

The analog quantity collected by the sensor is converted into A/D;  4-bit

The digital tube displays the data; when the measured weight exceeds the alarm threshold, the beeper. The alarm threshold can be set by pressing the button.In the overall scheme, the design of the buttons is as follows. The tare key is mainly for clearing calibration. Accuracy calibration + key, mainly used to increase the correction value, weighing display. Increase of the displayed value; Accuracy calibration - key, mainly to reduce the correction value. Decrease in weighing display value.

The smart electronic scale is designed using Altium Designer19, which can be combined with

Schematic design, printed circuit board (PCB) design, a variety of management and simulation technologies can well meet the design requirements. The smart electronic scale adopts

The STC89C52 MCU has the following standard components: 8KB Flash,

512B random access memory (RAM), 32-bit I/O lines, watchdog

Timer, built-in 4Kb EEPROM, Max810 reset circuit, 316-bit timer/counter, 4 external interrupts, a 7-vector in 4 stages break structure and full-duplex serial port. Alternatively, the STC89C52 can go down to 0Hz. Static logic operation supports two software-selectable power-saving modes. in idle

In mode, the CPU is stopped, allowing RAM, timer/counter, serial port, interruption continues to work. In power-down protection mode, RAM contents are preserved memory, the oscillator is frozen, and all work of the MCU stops until the next interrupt or hardware reset. CPU maximum operating frequency 35MHz, 6T/12T. Optional, its main features are 8KB program storage space, 512B data. Data storage space, with 4KB EEPROM storage space, can be used directly. Use the serial port to download.

The designed hardware mainly includes an STM32 development board, a

HX711 weighing module, a USB cable, Dupont cable, key switch. Ceramic capacitors and female headers, etc. The HX711 module of hardware design can be divided into 3. The three parts are pressure sensor, voltage amplifier and AD conversion core respectively piece. The pressure sensor is mainly used to sense the gravity of the object and convert it into. Voltage signal, the 0~5kg pressure sensor in this paper, the sensitive voltage is 1mV, that is 1kg of gravity produces a voltage of 1mV. Since the voltage generated by the pressure sensor is too small. The voltage amplifier needs to amplify the voltage signal, here use 128 times the voltage gain. The A/D conversion chip is 24 bits, it simulates the amplified voltage value. The signal is converted into an A/D value digital signal. Open the serial port debugging assistant, set. The baud rate is 115 200. After the system is running, the buzzer beeps once to indicate tare. Finished, at the same time the serial port debugging assistant will display the real-time weight detected by the sensor,

If the weight exceeds 2kg, the buzzer will alarm. When the KEY1key is pressed

, the stable weight of the item will be displayed on the serial debugging assistant.