As with information technology, stamping automation technology is still the same as information technology. At present, many factories still use the most primitive manual cleaning and chassis loading to remove stamping waste. Manual production lines need to be stopped for cleaning. Although automatic production lines do not stop, they are extremely unsafe during cleaning. At the same time, manual cleaning of waste and the current waste collection methods make the entire production site look messy. Waste is scattered all over the ground, the site is not clean, and manual waste removal will inevitably require shutdown operations, affecting production efficiency. In stamping operations, stamping machinery, molds, and operating methods have a great impact on safety. Realizing stamping mechanization and waste collection automation can greatly improve the utilization rate of stamping equipment and labor productivity, and ensure personal safety. However, the stamping operation has a high frequency of action, and most of them are thin plate processing, so it is technically difficult to ensure the reliability of stamping mechanization and waste collection automation. The collection of stamping waste often requires shutdown work, which not only affects production, but is also extremely unsafe. At present, the conveying devices studied at home and abroad are often only for one type of stamping product. When encountering problems such as different heights, spacing and positions of the die pads, interference with the die clamp, etc., it is very difficult to automatically remove waste from the die. This article involves the design of a stamping automatic discharge sorting controller, which has significant effects in practical applications.
1 System hardware composition
1.1 Pneumatic solenoid valve selection
Discharge sorting uses pneumatic technology to sort finished products and waste through compressed air in different directions. Pneumatic technology is an engineering technology that uses air compressors as power sources and compressed air as working media to transfer energy or signals. It is an automation technology that uses pneumatic components and mechanical, electrical, electronic and other parts or all of the integrated control circuit to make pneumatic components automatically act according to the set sequence or conditions according to the needs of the production process. Using pneumatic control technology to realize production process automation is an important technical means of industrial automation and a low-cost automation technology. This article uses Festo's pilot solenoid reversing valve for air pressure reversing. The pilot solenoid reversing valve is composed of a direct-acting solenoid valve and a large pneumatic reversing valve. The direct-acting solenoid valve part is also called the solenoid pilot valve. The pilot solenoid reversing valve uses the pilot air pressure output after the solenoid pilot valve coil is energized to drive the valve core of the large air-controlled reversing valve (main valve) to achieve reversing.
1.2 Photoelectric sensor selection
The position detection element uses an electrical travel switch or proximity switch. A proximity sensor is a device that has the ability to sense the proximity of an object. This article uses three diffuse reflection photoelectric sensors from Omron, which are installed at the relative positions of the cam. When a diffuse reflection photoelectric sensor detects an object, the transmitter can emit a modulated invisible infrared light. When the object passes through the light beam, the light is reflected back to the receiver by the surface of the object, and the sensor outputs a signal.
1.3 STM32 Overview
This article uses ST's STM32F103C8T6 as the core controller. The STM32 series is based on the ARM Cortex-M3 core designed specifically for embedded applications that require high performance, low cost, and low power consumption. First-class peripherals include 1 μs dual 12-bit ADC, 4Mb/s UART, 18Mb/s SPI, and 18MHz I/O flip speed. Low power consumption: 36mA at 72MHz (all peripherals are in working state), and drops to 2 μA in standby mode. The maximum integration includes reset circuit, low voltage detection, voltage regulator, accurate RC oscillator, etc. Standard STM32 peripherals (including a PWM timer) and high-performance 32-bit ARM Cortex-M3 CPU enable developers to integrate multiple functions such as motor control, user interface control and device interconnection functions on devices (such as home appliances, buildings or industrial automation). Other target applications include systems that require networking, data logging or USB peripheral expansion functions.
1.4 System main circuit design
[page]
1.5 Solenoid valve drive circuit design
1.6 Sensor input signal conditioning circuit
2 Software System Design
This system embeds the μC/OS-III operating system on the microcontroller.
2.1 Introduction to μC/OS-III μC
/OS-III is a portable, ROM-implantable, customizable, preemptive, real-time multi-tasking operating system kernel. It is the third-generation RTOS launched by Micrium and provides features that other RTOS do not have. For example, it supports unlimited tasks, can test the performance of tasks while they are running, and directly send semaphores or messages to tasks. The
software development environment of this article is IAR Embedded Workbench for ARM 6.21.
2.2 System Transplantation
μC/OS-III can be transplanted to many processors, and the code related to the processor is implemented using a mixture of assembly and C programming. As long as the processor meets the following conditions.
·The processor must have an ANSI C compiler and reentrant code
·The processor must support interrupts
·Interrupts can be enabled or disabled
·The processor must have a hardware stack
·The processor has enough RAM for the μC/OS-Ⅲ system and tasks to store variables and data structures
·The compiler must support 32-bit data types, and some compilers should support 64-bit data types
·The processor has relevant instructions to save the stack pointer and processor-related registers
This article uses the stm32f103c8t6 chip to meet the above requirements.
According to the μC/OS-Ⅲ structure, only four files related to the processor need to be modified: os_cpu.h, os_cpu_a.asm, os_cpu_a.inc and os_cpu_c.co.
2.3 Application layer program architecture design
The software system is divided into four tasks, one task is one thread, and a semaphore is built in each task. Tasks and interrupts can communicate through semaphores. Through semaphores, each task can be packaged into a simple and clean API based on semaphores.
[page]
App_TaskStart task: This task is responsible for initialization, key detection processing, task establishment, and semaphore establishment.Sensor trigger event task: This task waits for the sensor input signal and then controls the solenoid valve to work.
3 Conclusion
The punch press automatic sorting controller designed according to this solution has a high cost-effectiveness, can generate great economic benefits in the sealing ring industry, and has a high market application value.
Previous article:Wireless endoscopy system solution using ARM and CPLD
Next article:STM32 Study Notes—SysTick Timer
Recommended ReadingLatest update time:2024-11-16 22:20
- 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
- Please advise, when will the new list be released?
- I would like to ask how much energy is consumed for each byte sent by a device that uses a 3.6V battery.
- What kind of professional title can be awarded to software engineering graduates in 2013 to be considered professionally matched?
- Learn Wi-Fi 6 in one article
- Wireless battery charger design is too complicated? Try the emotional approach
- Software Design of CPU Card
- [HC32F460 Development Board Review] 04 Independent Button Control LED
- The difference between transistor and BUCK voltage reduction and their application scenarios
- Nearly 500 million people in China don’t use the Internet?
- Shoot-n-Loot: A game written in Ada