loading

Optics Lens

Rotary encoder using process

by:HENGXIANG     2020-11-04
Rotary encoder pulse signal from rotating, the equipment for computing speed, Angle, displacement, distance, suitable for many fields, for the use of rotary encoder, here a few necessary rotary encoder using process, in order to facilitate everyone's operation. A, modify driver rotary encoder to precision instruments, in the use process need to be issued by the program instructions, can play a certain role, and according to the requirements of different environments, need to set a different driver, so decided to encoder use effect how, it is very important to modify the right driver. Normally as long as directly modifying reg file, registered a table file at the same time, by means of adding rewrite the dynamic linking, in determining the dynamic link have modified a good situation, need to add it to the kernel; Second, the hardware interface connection driver changes, the following is the hardware interface connection operation, in the connection, usually have A and B two collector output interface, in order to ensure line bridging, need to be in 3. On the resistance of the 3 v, insert A and B two interfaces to the CPU. After the hardware interface connection is successful, in case one thousand, must do a good job to check the voltage test output high and low voltage value is correct, after press the button, for example, if the P2 port output value is high level, describes the correct; Three, stream interface driver write stream interface driver program to write is to prepare for the interrupt service routine, the concrete step is to create a thread to write variable values for record, record in the case of lines at the same time, the port number is still high level; Four, terminal services terminal services write programming mainly encoder line protection effect, through the I/O interface of CPU initialization, on the basis of the write interrupt service routine. Shanghai electronic products is 27 years old, encoder manufacturers, specializing in the production of various types of rotary encoder, research and development of the magnetoelectric rotary encoder performance not easily affected by dust and condensation; Its simple and compact structure, non-contact, long life, high and low temperature resistance, resistance to vibration, fast response speed and low cost, can according to customer needs to customize the precision rotary encoder pulse, and cooperate with the size, original manufacture, trustworthy! Looking for a rotary encoder manufacturer is looking for electronic.
Custom message
Chat Online
Chat Online
Leave Your Message inputting...
Hello, this is Liz. If I am not online, please email me at heng@shhxgd.cn, or add my Whatsapp/ Wechat : +86 186-1688-3327, we will reply you as soon as possible~~