The system hardware configuration is based on the AT89S51 microcontroller. The AT89S51 is a low-power, high-performance CMOS 8-bit microcontroller, which contains a 4Kb ISP (In-system programmable) Flash read-only program memory that can be repeatedly erased and written 1,000 times. The device is manufactured using ATMEL's high-density, non-volatile storage technology, is compatible with the standard MCS-51 instruction system and 80C51 pin structure, and has a built-in watchdog (WDT) circuit.
The powerful AT89S51 can provide cost-effective solutions for many embedded control application systems. The punch press controller designed with this single-chip microcomputer has the following features:
Figure 1 Hardware block diagram of the controller
● The controller adopts the PLC design concept, with high reliability and strong anti-interference ability.
● The 6-digit seven-segment LED display on the panel can be used to adjust parameters and display count values during operation.
● Modular design, compact size, easy to install.
● Taking advantage of the ISP function of AT89S51, programs can be downloaded on-site to realize the functions of a programmable controller.
Hardware Design
The hardware structure of the controller is shown in Figure 1. It mainly consists of keyboard display circuit, EEPROM circuit, power-off detection, program download interface, photoelectric isolation input and output modules. The power supply module is a switching power supply designed with TOP220Y with +24V and +5V output. When the system is powered off, the power-off detection circuit sends a signal to AT89S51, and the system immediately stores the parameters and count values in the EEPROM circuit.
The keyboard display circuit is shown in Figure 2. In order to save I/O port lines, the lower 3 bits of P0 port are reused here. The working principle of the circuit is introduced below: When displaying, first set P3.3 and P0.0~P0.5 to high level, and then output the code corresponding to the display content to the common cathode digital tube through the serial input and parallel output shift register 74HC164 in turn, and then set the bit selection to be displayed to low, delay 1ms, and then set the bit selection to be displayed to high. As long as the frequency of this dynamic scanning is high enough, this controller uses 80Hz, due to the visual persistence characteristics of the human eye, the display function can be realized without flickering. When scanning the keyboard, set P3.3 to low level, then the output of 74HC164 is all low level, which prevents interference with the display when scanning the keyboard. When no key is pressed, the read P0.0~P0.2 are all low level. When a keyboard is pressed, the corresponding input will be read as high level. Then, the delay de-jitter method can be used to determine which key is pressed, and then go to the function program of the corresponding key. The display scanning, keyboard scanning and key debounce of this controller are all completed in the timer interrupt.
Figure 2 Keyboard display circuit structure schematic diagram
The photoelectric isolation input circuit is shown in Figure 3. The input terminal and the COM terminal are connected with a voltage-free contact or an NPN open collector transistor. For reliability, the input current is 7mA, then the input is ON. When the input current is lower than 1.5mA, the input is OFF. The output circuit uses a photoelectrically isolated relay output to electrically isolate the internal circuit of the controller from the external circuit to prevent external interference.
Figure 3 Photoelectric isolation input and output circuit [page]
Specific applications
The punch press control wiring is shown in Figure 4. When working, the 6-digit digital tube on the panel displays the count value. When you need to set parameters, press the function key for 5 seconds to set the single action duration, the number of times lubrication is required, the lubrication duration and other parameters in turn.
Turn the selector switch to the single stroke position. When the slider is within the upper dead center range, press the left and right buttons at the same time, then the double valve is energized and the slider reciprocates once. When the cam turns to the braking position, the controller de-energizes the double valve and stops the slider at the upper dead center.
Figure 4 Punch control wiring diagram
When the selector switch is in the inching position, press the left and right buttons at the same time, the controller will energize the double valve and move the slider. Release the buttons and the controller will de-energize the double valve and the slider will stop immediately.
Summarize
The punch press controller designed with AT89S51 microcontroller described in this paper has been tested and run reliably and has strong anti-interference ability. It can effectively prevent the punch press from continuous punching and ensure the safety of the operator by coordinating with software algorithm design and photoelectric protection. In addition, AT89S51 microcontroller has unique advantages such as rich instruction system, compactness, low price, flexibility and easy expansion, which greatly improves the cost performance of the whole system in the designed punch press controller.
Previous article:Design of Signal Generator Based on DAC0832 and AT89S52
Next article:A wireless remote control analysis solution using AT89C51 as the control core
Recommended ReadingLatest update time:2024-11-16 16:33
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Optical modules and 5G bearer networks
- Analysis of the switch input circuit composed of four diodes
- PicoVGA (2) VGA/TV driver library for Pico
- ST BlueCoin Development Kit Playing Audio
- The power consumption evaluation data of a Bluetooth headset using Qualcomm CRS8635 is shared for discussion!
- Questions about TEC control chip ADN8834
- Amplifier input and output voltage range and rail-to-rail misunderstanding
- msp430f5529 simple uart source program (use the serial port assistant to send and receive replies)
- TMS320F28335_SVPWM complete program
- C2000 Byte Processing