AVR-based closed-loop control system for experimental loading

Publisher:SereneSerenityLatest update time:2014-10-27 Source: 21icKeywords:AVR Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

  Separate hydraulic jacks are widely used in various engineering structure loading operations such as production construction, scientific experiments, etc.

  The equipment is generally composed of an electric high-pressure oil pump + a compression (tension) jack. The specifications of the loading system discussed in this article are shown in Table 1.

b.JPG

  The oil pump motor directly drives the pump shaft to rotate, the plunger to reciprocate, the oil inlet valve/oil outlet valve to work, and the hydraulic oil enters the jack through the high-pressure oil pipe. The user can manually turn the unloading valve in the pump to different positions through the handle on the pump station to achieve the system's loading/unloading, thrust/pull, loading rate and pressure stabilization operations.

  In scientific research and experimental loading situations where high precision is required for force and displacement values ​​or stabilization time, it is obvious that this manual operation method is not competent. Adding a computer measurement and control system to the equipment has become a technological innovation that keeps pace with the times and is also the best solution to improve the cost-effectiveness of such equipment.

  1 Lower computer

  The lower computer control core is composed of ATmega128 (see Figure 1), which mainly performs A/D conversion on the working signals transmitted by each channel amplifier module and drives the stepper motor according to the instructions of the upper computer to achieve the working purpose of the control execution system.

c.JPG

  1.1 Data Collection

  The test of force and displacement signals is completed by a bridge sensor composed of resistance strain gauges , and the signal amplifier uses an AMP1 amplifier module. The proper matching between the two is crucial to whether the single-chip microcomputer can successfully perform data acquisition. The key technology is to regulate the balance of the bridge. After the signal enters the single-chip microcomputer, if there is a small amount of offset voltage, it can be compensated by software. If the offset is too large, this channel will not work. Therefore, it is necessary to use to adjust the analog signal with a large offset. The zero adjustment circuit is shown in Figure 2.

d.JPG

  1.2 Equipment Control

  The key to equipment control is to use electric power to replace manual power in the rotation of the oil pump handle. Fix the handle plate on the shaft, arrange several position electrode points on the plate, and use a stepper motor plus gear transmission to solve the problem of sensing and moving the handle position, as shown in Figure 3.

e.JPG

  The PWM, clock and forward and reverse signals of the single-chip microcomputer Mega128 enter L297 through the optical coupler to generate a phase sequence signal, which is driven by the full bridge of L298N, so that the stepper motor drives the gears to rotate together according to the control of the single-chip microcomputer. The circuit diagram of driving the stepper motor is shown in Figure 4.

f.JPG

  1.3 A/D and serial communication

  In the serial port 0 initialization programming, ICCAVR uses the code UCSROB=(1<g.JPG

  2 Host computer programming

  The host computer is programmed with VB, which mainly includes window layout, data communication and processing, voltage stabilization function, etc.

  2.1 Form Layout

  Considering the needs of practical applications, when designing the host computer, the system window interface layout is as simple, intuitive and clear as possible. In programming, the parameter calibration process and the seamless link between test data and large application software are particularly highlighted. As shown in Figure 5. [page]

a.JPG

  2.2 Data Communication and Processing

  Settings for the communication control MSComm:

h.JPG

  Since InByte() is a dynamic array, InByte(0)=1 and InByte(3)=2 are defined as the force and displacement data numbers. To prevent the upper and lower computer data from being out of sync, the data sent to the receiving buffer by the lower computer must be reconfirmed:

i.JPG

  These 6 bytes are two sets of data:

l.JPG

  For monitoring data, if it is equal to or greater than the upper limit, the handle returns to position 3# (stop/stable pressure). To prevent the sensor data from hovering near the critical point, causing data instability, you should consider jumping out of stickiness when programming.

  The computer system clock is used to realize the voltage stabilization and delay function.

k.JPGl.JPG

  3 Conclusion

  The built-in 10-bit ADC function of the AVR microcontroller makes the design and debugging of the A/D conversion circuit of the lower computer simple and easy. The AMP1 amplifier module has a wider adjustment range after adding the bridge zeroing circuit. In actual use, due to the differences in the internal structure and manufacturing process of the hydraulic system of each manufacturer, when the positioning control of the fully automatic handle plate is not good, the solid-state relay can be directly controlled by the microcontroller I/O port , and then the oil pump motor can be controlled. It can also obtain better working results.

Keywords:AVR Reference address:AVR-based closed-loop control system for experimental loading

Previous article:Using low-cost MCU's UART to drive smart cards
Next article:Design of intelligent tester for leakage protection device based on ATmega32

Recommended ReadingLatest update time:2024-11-15 13:25

AVR microcontroller controls the servo
What is a servo? The servo is shown below:      There are three wires, generally ground, power (about 5V), signal (signal amplitude = 3.3V). If you are not sure about each foot, you can turn on the servo and measure it. 2. Its working principle is: The control signal enters the signal modulation chip thro
[Microcontroller]
AVR microcontroller controls the servo
Precautions for using I/O ports in AVR microcontroller design
    1. Correctly set the DDRx direction register before performing read and write operations on the I/O port.     2. The initial state of the I/O port after reset is all input working mode, the internal pull-up resistor is invalid, and the external pin is in a three-state high-impedance input state.     3. When the I/
[Microcontroller]
Design of CAN Bus Analyzer Based on AVR Microcontroller
introduction   There are more and more engineering applications based on CAN bus in China, but there is a lack of effective on-site monitoring and troubleshooting methods in the early and late stages of CAN fieldbus product development, which prolongs the development cycle and increases development costs. At the s
[Microcontroller]
Design of CAN Bus Analyzer Based on AVR Microcontroller
nRF24L01p+AVR MCU ATmage88 RF transceiver program
The microcontroller source program is as follows: #define _nRF24L01_C_ #include "nRF24L01.h" INT8U CE_Status = 0; /* ================================================================================ Function : L01_GetCEStatus( ) Description : Get the status of the CE PIN Input : NONE Output: 1:CE=1, 0:CE=0 =========
[Microcontroller]
AD digital-to-analog conversion-CVAVR program code
#include   #include    // Alphanumeric LCD Module functions #asm    .equ __lcd_port=0x18 ;PORTB #endasm #include  int shi,ge,qian,bai,m;  int adc_v; // Timer 0 output compare interrupt service routine interrupt   void timer0_comp_isr(void) { // Place your code here   m++; }   #include    #define ADC_VREF_TYPE 0x00   /
[Microcontroller]
AVR microcontroller drives 12864 LCD program
/*LCD12864 display subroutine*, #include util/delay.h #define uchar unsigned char #define uint unsigned int #define SETLCD12864RS PORTA|=(1 PA4) #define SETLCD12864RW PORTA|=(1 PA5) #define SETLCD12864EN PORTA|=(1 PA6) #define CLLCD12864RS PORTA&=~(1 PA4) #define CLLCD12864RW PORTA&=~(1 PA5) #define CLTLCD12864EN
[Microcontroller]
Analysis of lighting and CO2 control system based on AVR chip
1. Project Overview 1.1 Introduction A greenhouse is a place that can change the growth environment of plants, create optimal conditions for plant growth, and avoid the influence of seasonal changes and bad climate on them. It uses light-collecting covering materials as all or part of the structural materials, and can
[Microcontroller]
Analysis of lighting and CO2 control system based on AVR chip
High-precision position control of linear switched reluctance motor based on AVR microcontroller
1. Project Overview 1.1 Introduction The motor is an indispensable power equipment for industrial production. There are many types of motors and their functions are quite extensive. The linear switched reluctance motor is a new type of traction motor. It has the following main advantages: simple structure and low
[Microcontroller]
High-precision position control of linear switched reluctance motor based on AVR microcontroller
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号