The general function requirement is to detect the number of revolutions of the runner. Compared with the set value, the current value is the same as the set value, that is, the relay is controlled to stop the motor. Taking into account the inertia of the wheel, add a 1602 to display the current value and the set value, intuitive and clear. Since the actual working conditions are not demanding, but also want to minimize the cost, then use only the most common in the school 51 bars (great gods do not spray, I have been to a medical device company, the temperature control unit is used in the 51 series, For this I can only say that there is a reasonable, do not bother to solder the minimum system board bought from the Internet. The number of turns I use is a very common Hall element, went to the hardware market to buy a magnet, fixed on the wheel to generate pulses. This place began to meet a small problem, the matrix keyboard is used with the number of 4*3, press a key to change the input position, began to want to achieve the effect of writing the script but the effect is unsatisfactory, then seek another method, new A TIme variable is used to record the number of keystrokes, which can also achieve the effect of loop input, and saves the trouble of reading 1602 SV value again (because SV and CV have to be compared), which can be described as two birds with one stone! This is nothing more to say, the relay is only a switch, it is best to pay attention to the power alone, I take the power from the microcontroller pin, not standardized. Programming logic and details are the basis, flexible thinking and good algorithms are very important. Special equipment for university physics laboratory Teaching Equipment,Optical Bench Kit,Optical Instruments In Physics,Electrooptical Modulator Experimental Instrument Yuheng Optics Co., Ltd.(Changchun) , https://www.yhencoder.com