As a precision photoelectric position sensor, PSD has the characteristics of high sensitivity, short response time, high position resolution, and large spectral response range. Therefore, it is widely used in modern photoelectric detection technology, especially in high-precision and high-speed data acquisition technology. How to realize the acquisition of multiple data in a very short response time has become the key to collecting PSD output data. Based on single-chip microcomputer technology, this paper designs and builds a set of high-speed PSD output data acquisition and control circuits . By collecting PSD output data under laboratory conditions, it lays a theoretical foundation for subsequent PSD positioning accuracy and anti-interference research.
1 How PSD works
Photoelectric position sensitive device ( PSD ) is a semiconductor position detection device based on the lateral photoelectric effect and continuous distribution. It can quickly and accurately give the position of the incident light spot on the photosensitive surface, that is, the signal output by the PSD is related to the position of the light spot on the photosensitive surface. As shown in Figure 1, the surface P+ layer is the photosensitive surface, and there is a signal output electrode on each side. The middle is the I layer, and the common electrode on the bottom layer is used to apply reverse bias. When light is incident on the photosensitive surface, due to the lateral electric field parallel to the junction surface, the photogenerated carriers form currents X1 and X2 that flow to the electrodes at both ends, and the total current X0 = X1 + X2.
When the distance between the incident light spot and the two electrodes changes, the output current of the two electrodes also changes accordingly, thereby realizing the position measurement function.
As shown in Figure 2, if the surface resistance of the PSD is uniform and the resistances R1 and R2 are much larger than the load resistance RL, then the values of R1 and R2 depend only on the position of the light spot, that is:
Where: L is the distance from the midpoint of PSD to the signal electrode; x is the distance from the incident light point to the midpoint of PSD.
Substituting X0 = X1 + X2 into equation (1), we can get the coordinates of the light spot:
Obviously, the above formula has nothing to do with the incident light intensity X0. This is the positioning principle of one-dimensional PSD. The basic principle of two-dimensional PSD is the same as that of one-dimensional PSD, but the calculation formula is different. 2 Selection of PSD
This article selects the SPC01 photoelectric position sensor produced by Swedish SiTek. It is a two-dimensional two-sided shunt type PSD, manufactured using PSD thick film technology, integrating the PSD sensor and the processing circuit. The processing circuit only has a preamplifier, adder and subtractor. The processing circuit block diagram is shown in Figure 3.
The relationship between the output voltages Diff X, Diff Y and Sum X, Sum Y and the two-dimensional position is:
Therefore, the collection objects are the four output quantities of Diff X, DiffY, Sum X, and Sum Y. By collecting the four output quantities, the principle operation can be used to realize the position data of PSD in two-dimensional coordinates.
3 Data acquisition and control circuit
The PSD data acquisition and control circuit based on single-chip microcomputer is composed of Atmega16 single-chip microcomputer, AD1674 analog/digital conversion chip, AD7501 multiplexer, MAX232 serial communication chip, etc. Its circuit block diagram is shown in Figure 4.
3.1 Multiplexer
AD7501 is an 8-channel multiplexer switch whose function is to select a valid input through three binary address lines [5]. Its specific connection relationship is shown in Figure 5.
In Figure 5, the enable terminal EN (3) is connected to +5 V to keep it in working state all the time; the signal input terminals S1~S4 (13, 11, 10, 9) are respectively connected to the PSD output signals Diff X, Diff Y, Sum X, Sum Y; the input signal selection terminals A0 and A1 (16, 1) are respectively controlled by the I/O ports PC3 (25) and PC4 (26) of the Mgea16 microcontroller, and A2 (4) is connected to GND, which selects the 4 input voltage signals in sequence and sends them to the voltage follower shown in Figure 6 and then enters the AD1674 for analog/digital conversion.
3.2 Analog/digital conversion circuit
AD1674 is a 12-bit successive approximation analog/digital conversion chip with a parallel microcomputer interface launched by AD Corporation of the United States. The basic features and main parameters are as follows:
Full 12-bit successive approximation register (SAR) analog-to-digital converter with internal sample-and-hold; sampling frequency is 100 kHz; conversion time is 10 μs; data can be output in parallel, using an 8/12-bit selectable microprocessor bus interface; dual power supply: ±12 V or ±15 V for the analog part and +5 V for the digital part.
As shown in Figure 7, the data output ports DB4~DB11 (20~27) of AD1674 are connected to the PB ports (1~8) of the microcontroller; the working state of AD1674 is controlled by the logic port (2~6), and its true value is shown in Table 1.
The microcontroller controls CE to be high, CS, R/C, and A0 to be low, and starts the 12-bit data conversion. The conversion status output port STS (28) is connected to the PD2 (16) of the microcontroller. When STS is high, AD1674 is in the analog/digital conversion state, and when STS is low, the analog/digital conversion is completed and the conversion data can be read. Since only 8 input ports are used to read data, the converted 12-bit data needs to be read out twice: first set the R/C and A0 ports (5, 4) levels high, read the lower 4 bits of data to the microcontroller, and then set the A0 port level low, read the upper 8 bits of data to the microcontroller.
3.3 Single chip microcomputer control circuit
The single-chip microcomputer is the core component of the whole circuit system. Its function is to control the experimental process and the conversion, storage and transmission of data. This experiment uses the Atmega16 single-chip microcomputer of ATMEL Company , and its pins and functions are shown in Figure 8.
The PC1 port (23) of the single-chip microcomputer is connected to the 7407 in-phase buffer, and the signal is driven by current to modulate the laser to emit light.
3.3.2 Data storage and serial transmission
(1) Data storage
As shown in Figure 4, the PB port (1~8) of the microcontroller is connected to the data output terminal (20~27) of AD1674, which is the digital voltage input port after A/D conversion, and transmits 8 bits of data each time. As can be seen from Section 3.2, the voltage signal is a 12-bit digital signal after A/D conversion, which needs to be divided into 2 transmissions, and the microcontroller also needs 2 bytes to store 1 data. That is, the 4 data of Diff X, DiffY, Sum X, Sum Y output by the PSD need 8 bytes to store.
(2) Data transmission
Since the collected data is stored continuously in the microcontroller , when the data is transmitted to the computer via RS 232 serial transmission, the collected data needs to be grouped and labeled to avoid errors when the data is combined.
Table 2 gives the rules for encoding the four 12-bit binary data Diff X, Diff Y, Sum X, and Sum Y.
That is, in a set of collected data, the first 2 bits of each byte are identification bits, the last 6 bits are data bits, and only the identification bits of the first 4 bytes are encoded.
The serial communication ports RXD (14) and TXD (15) of the Mega16 microcontroller are connected to the RXD (11) and TXD (12) of the MAX232 serial communication chip [8] respectively, and communication with the computer is achieved through the serial port. The serial port debugging tool Comtools software can be used in the computer to read the data. Finally, after mathematical processing, the digital voltage value representing the x, y position information is obtained.
3.4 Actual Circuit
Figure 9 is a physical diagram of the single-chip microcomputer circuit for data acquisition, signal transmission and process control.
4 Conclusion
This paper first introduces the working principle of the high-precision photoelectric position sensor PSD , and based on the structure and output characteristics of the SPC01 PSD produced by SiTek, a design scheme for PSD output signal data acquisition circuit based on single-chip microcomputer technology is proposed. The circuit in this design scheme has the advantages of simple structure, low cost, and small size on the basis of ensuring effective and rapid data acquisition. It is suitable for experimental operation under laboratory conditions and lays the foundation for subsequent research on PSD positioning accuracy, output characteristics, and anti-interference measures.
Previous article:Introduction to the intelligent debugging principle and process of cavity filter and the intelligent debugging platform
Next article:Make a good MCU 89C51 programmer according to the crooked circuit diagram
Recommended ReadingLatest update time:2024-11-16 17:58
- Popular Resources
- Popular amplifiers
- Wireless Sensor Network Technology and Applications (Edited by Mou Si, Yin Hong, and Su Xing)
- Modern Electronic Technology Training Course (Edited by Yao Youfeng)
- Modern arc welding power supply and its control
- Small AC Servo Motor Control Circuit Design (by Masaru Ishijima; translated by Xue Liang and Zhu Jianjun, by Masaru Ishijima, Xue Liang, and Zhu Jianjun)
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
- 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
- Division circuit
- Android smart wearable device development from entry to mastery pdf download
- Why can't we develop industry software like Matlab?
- Android control LED-2-JNI basis of SinlinxA33 development board
- Free application: Canaan AI new product K510 development kit, RISC-V dual-core CPU @ 800MHZ (with training video)
- Watchdog for C2000-8027 series
- Some questions about magnetic field
- EEWORLD University Hall----Live Replay: Melexis consumer-grade ultra-low power position sensor simplifies design and reduces costs
- EEWORLD University - Multiphase Buck Regulator Design: Case Study
- I need help from the experts on writing MAX7219 dot matrix in microPython