introduction
In the process of film interpretation, it is often required to count the number of negatives and automatically locate the negatives at different positions to facilitate searching and magnification. This automatic film search system is a fully automatic interval retrieval device designed to achieve these functions; this design is mainly to solve the problem of low efficiency caused by the manual method when searching for negatives, and a practical system is designed to effectively improve production efficiency. Its functions are as follows: if the automatic key is pressed, the photo counting action just after power on will be performed, and the total number of negatives will be automatically counted; in this process, the motor will stop when the stop key is pressed, and the normal photo counting action will be restored when the automatic key is pressed again; if the storage key is pressed, the current number of photos will be stored; when the negative reaches the end of the film, the motor will automatically stop, and the total number of photos will be displayed at the same time. At this time, press the mode key to enter the setting of the desired number of photos and the required speed; there are three levels of speed, which can be adjusted by the increase and decrease keys; after adjusting to the number of photos you want to see by the increase and decrease keys, press the confirmation key to automatically adjust to the set number of photos. When the camera is stopped, pressing the storage key will enter the stored number state, and the storage increase key and storage decrease key can be used to adjust the number of sheets corresponding to the stored address unit; there are 30 storage address units for storing different numbers of sheets; pressing the storage review key will automatically adjust to the stored number of sheets. The system can easily find the desired negative film, so as to enlarge the negative film and other processing.
1 Composition and working principle of control system
This control system uses Atmega 16L control. Atmega 16L produced by Atmel is an ideal chip. It integrates a large capacity memory and rich and powerful hardware interface circuits. It has all the performance and characteristics of the MEGE series of AVR high-end single-chip microcomputers: it has rich on-chip resources, making the system simple and reliable; it has a fast computing speed and can reach a processing speed of 1MIPS, which is conducive to the realization of intelligent control algorithms; the mega series in the AVR single-chip microcomputer has super strong anti-interference ability, which enhances the safety and reliability of the product; it has an efficient and inexpensive high-level language development environment, which is convenient for the expansion and change of functions, greatly shortening the development cycle. There are 16 KB of FLASH memory and 1 KB of SRAM inside, which can be easily erased and modified repeatedly. Since there is no need to expand the program memory externally, the circuit design can be simplified, and it contains PWM signal output, which is very suitable for the development of this system. Since the in-system programming (ISP) function of the chip is used, there is no need to move the chip. When designing the software, it is designed that once the code file is re-edited, it will be automatically downloaded to the chip and automatically reset to run, which is a real "what you write is what you get".
The whole system includes: single chip power supply module, digital tube display module, forward and reverse control module, key module, control signal conversion module, detection board module. Its working principle is shown in Figure 1.
Figure 1 Main components of the system circuit diagram
The system uses photoelectric sensors to collect signals from the film interval. Photoelectric sensors are sensors that convert light signals into electrical signals based on the photoelectric effect. When the sensor detects a signal from the film interval that meets the conditions, it immediately stops generating PWM waves and allows the film to stop at a position that meets the conditions. The film that meets the conditions can then be processed. The AVR microcontroller can generate PWM waves, and the power component LMD18200 can achieve full digital drive of the motor, with an energy utilization rate of nearly 100%. In order to achieve precise control of the DC motor, the position of the film and the speed of the motor must be collected in real time. The control of the DC motor is achieved by counting the output pulses of the photoelectric device by the microcontroller to accurately obtain the position information.
2 Design of system modules
2.1 Motor drive circuit
In this system, the motor speed is controlled by PWM, and the driver uses a professional H-bridge component LMD18200. LMD18200 is a power integrated chip for motor drive produced by National Semiconductor (NS). It integrates 4 DMOS tubes to form an H-bridge, with complete logic control circuit and chip protection circuit; the working voltage is up to 55 V; the peak output current is up to 6 A, and the continuous output current is up to 3 A; the input is TTL/CMOS level compatible. The principle of the motor drive circuit is shown in Figure 1.
Small mechatronic products require that the DC motor driver has a small size and can provide large current and voltage output. The use of Darlington triodes to build an H-bridge to achieve PWM pulse width modulation control has poor speed regulation performance and cannot achieve high stability due to the different characteristics of each component of the discrete device. In comparison, the use of the LMD18200T bridge component dedicated to motion control launched by National Semiconductor has great advantages.
The LMD18200 functional block diagram is shown in Figure 2.
Figure 2 LMD18200 block diagram
In Figure 2, the H-bridge composed of four DMOS tubes and its control logic circuit are all included in an 11-pin T-220 package. The working principle of LMD18200 is as follows: Four DMOS tubes are integrated internally to form a standard H-type drive bridge. The gate control voltage is provided to the two switch tubes of the upper bridge arm through the charge pump circuit. The charge pump circuit has an operating frequency of about 300 kHz. A second charge pump circuit can be formed by connecting an external capacitor to pins 1 and 11. The larger the external capacitor, the faster the capacitor input to the gate of the switch tube is charged, the shorter the voltage rise time, and the higher the operating frequency can be. Pins 2 and 10 are connected to the armature of the DC motor. When rotating forward, the direction of the current should be from pin 2 to pin 10; when rotating reversely, the direction of the current should be from pin 10 to pin 2. The current detection output pin 8 can be connected to a resistor to ground, and the overcurrent condition is output through the resistor. The overcurrent threshold set by the internal protection circuit is 10 A. When this value is exceeded, the output will be automatically blocked and the output will be automatically restored periodically. If the overcurrent lasts for a long time, the overheat protection will shut down the entire output. The overheat signal can also be output through pin 9. When the junction temperature reaches 145℃, pin 9 will have an output signal.
2.2 Photoelectric detection circuit
Infrared photoelectric switch (photoelectric sensor) is the abbreviation of photoelectric proximity switch. It uses the shielding or reflection of infrared beam by the detected object, and detects the presence of the object through the synchronous circuit. The object is not limited to metal, and all objects that can reflect light can be detected. The product is widely used in various industrial and civil occasions such as power meters, electronic instruments, counters, speed measurement, position measurement, fax machines, shredders, etc.
This test system uses EVERCOLORS's ITR-8307 reflective photoelectric switch. The ITR-8307 photoelectric switch is a sensor that integrates a transmitter and a receiver. When an object to be detected passes by, a sufficient amount of light emitted by the photoelectric switch transmitter is reflected to the receiver, and the photoelectric switch generates a switch signal. When the surface of the object to be detected is bright or its reflectivity is extremely high, the reflective photoelectric switch is the preferred detection switch.
In this design, a DC voltage with a rated voltage of 24 V is used as the working voltage of the photoelectric switch. According to the principle of the selected photoelectric switch, the low level of the pulse signal output by the photoelectric switch is 0 V, and the high level is 24 V. The high level is divided by two resistors. Then, two transistors are input to the microcontroller pins. The transistor design circuit is shown in Figure 1, completing the conversion of low level 0 V and high level 5 V.
2.3 Human-machine interface circuit
The human-machine interface circuit includes a keyboard and a 4-digit LED digital tube display. The keyboard module adopts a 3×4 row-column matrix non-encoded keyboard. The keyboard is used to set parameters and select functions, including deletion, data transmission, query and other functions; the display module is mainly composed of a 4-digit LED digital tube and a 74LS595 chip; its circuit diagram is shown in Figure 3. The 74LS595 has three-state and latch functions. Pin 14 SER is the serial input terminal, pin 11 SRCLK is the shift register clock input, and pin 12 is the latch register clock input. It connects the microprocessor with a 4-digit 7-segment digital LED display. The digital tube is used to display the number of films being tested, speed, stored address and number of films and other data in real time.
Figure 3 Human-machine interface circuit
3 Overall design of control system software
Previous article:How to make a simple AVR emulator
Next article:Design of solar photovoltaic DC controller using AVR microcontroller control
Recommended ReadingLatest update time:2024-11-16 11:33
- Popular Resources
- Popular amplifiers
- Fundamentals of Analog Electronics Technology (Edited by Wu Tuo; Deputy Editors: Yi Yajun and Liu Sumei)
- 射频 微波电路导论 第2版 (雷振亚,王青,刘家州等编著)
- EDA Technology Practical Tutorial--Verilog HDL Edition (Sixth Edition) (Pan Song, Huang Jiye)
- Learn C language for AVR microcontrollers easily (with video tutorial) (Yan Yu, Li Jia, Qin Wenhai)
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
- MSP430 Ultra-Low Power MCUs – Design and Development
- IAR is crazy, has anyone encountered this?
- HuaDa HC32F460 series MCU internal FLASH made into USB flash drive
- PCB wiring and layout and circuit design 268 design specifications
- [ESK32-360 Review] + Construction of development environment
- Several circuit designs that must be understood by microcontrollers
- Share an article I read about PLL integer boundary spurs by IDT (Renesas)
- I can't read the TMP275 temperature sensor. I use the STM32 I/O to simulate IIC. Please help.
- Understanding GaN Device Thermal Analysis
- 5. Control objects in previous “Control” competitions