Field programmable gate arrays, or FPGAs, are further developed based on programmable devices such as EPLD, PAL, and GAL. As an semi-custom circuit in the field of professional integrated circuits, FPGAs not only solve the shortcomings of custom circuits, but also overcome the shortcomings of the original programmable devices due to the limited number of gates. The use of FPGAs is very flexible, and the same FPGA can achieve different circuit functions by using different programs. FPGAs are now widely used in communications, instrumentation, networking, data processing, industrial control, military, and aerospace. With the further reduction in cost and power consumption, FPGAs will be used in more fields. The design of the motor-based speed measurement system based on FPGA is based on the Quartus II design platform, using the hardware description language VHDL and modular design, and dynamically displaying the measurement results through the digital tube drive circuit. This design has the characteristics of less peripheral circuits, high integration, and high reliability, which can be used to measure the motor speed value.
Peripheral circuit designThe sensor converts the analog signal of the motor speed into a digital pulse signal and sends it to the FPGA module. At the same time, the accurate clock signal generated by the reference clock circuit and the reset signal generated by the reset circuit are sent to the FPGA module. The FPGA module generates a frequency dividing circuit, a decimal counter circuit, a data processing circuit, and a display decoding circuit. The reference clock signal sent by the frequency dividing circuit is divided to obtain a gate signal as an enable signal of the decimal counter. The function of the data processing circuit is to process the data obtained by the decimal counter and then send it to the display decoding circuit for conversion and decoding. The overall block diagram of the motor speed measurement system is shown in Figure 1. The peripheral circuits are divided into: a reference time base circuit, a reset circuit, a sensor measurement circuit, and a display circuit.
Figure 2 Active crystal oscillator circuit diagram
Reference time base circuit designThe reference time base circuit uses a 50 MHz active crystal oscillator. The 3.3 V power supply is connected to the VCC port of the active crystal through FB5, and the high frequency interference signal is filtered through C10 and C11. A 50 MHz clock signal is output from the OUT port. The crystal oscillator circuit is shown in Figure 2.
Reset button designButtons are commonly used as interfaces for human-computer interaction in embedded intelligent control systems. We usually input various information to the system through buttons, adjust various parameters or issue control commands. The processing of buttons is a very important function module. The interaction performance of the entire system also affects the stability of the system. In this design, the manual reset of the FPGA module is realized by pressing the button. The reset button is shown in Figure 3.
Figure 3 reset button circuit diagram
Display circuit designThe display circuit we used in this design is shown in Figure 4.
It can be known from the digital tube display circuit that this is a common anode digital tube. When the low level is input to the bit selection terminals SE1 to SE4, the triode is turned on, and D1 to D4 are connected to the high level. From the a to the DP end, enter the digital tube display code, you can get the number we need, and let the digital tube select the conduction by the bit selection end.
This design is based on the FPGA motor speed measurement system design, using the Quartus II software developed by Altera Corporation as the design platform, which can measure the pulse signal converted by the sensor on the FPGA development board, and calculate the motor speed value by calculation. In this design, some extensions can be made. An alarm circuit can be added to set an alarm value. When the measured speed value is greater than this alarm value, the buzzer alarm or the digital tube can be illuminated.
Fiber Optic Distribution Box,Fiber Optic Breakout Box,Fibre Optic Breakout Box,Fibre Break Out Box
Cixi Dani Plastic Products Co.,Ltd , https://www.dani-fiber-optic.com