Optics Lens

The encoder switch principle and method of use

by:HENGXIANG     2020-11-07
Recently some friends in the design of electronic products, need to use the rotary encoder switch, is also the electronic production of rotary encoder, the name is different, the same function. The rotary encoder can satisfy turn left, turn right, press the functionality you need. In order to convenient for the encoder switch friends to learn more about its programming, encoder switch under the electronic introduction the principle and method of use: principle of rotary encoder switch: turn left and right discriminant is difficulty, pay attention to this kind of switch turn left and right two output foot when there is a phase difference. Thus, if the OUT1 for high electricity at ordinary times, a high level in OUT2, then switch is to clockwise; When the OUT1 for low electricity at ordinary times, OUT2 a high level, then it must be a counterclockwise. So, in the MCU programming only need to determine when the OUT1 for high or low electricity at ordinary times, OUT2 state can determine is that rotate right or left. Shanghai electronic production of encoder switch Rotary encoder EC11, three legs: 123 feet is typically between 2 feet grounded, after 1, 3 feet pull resistance, when turn left, turn right, at 1, 3 feet have the pulse signal output. When two feet to push switch, press the conduction, disconnect when reply. The microcontroller programming, turn left and right discriminant is difficult, using the oscilloscope to observe the left and right foot two output signal has a phase difference, thus it can be seen, if the output 1 as the high electricity at ordinary times, a high level in output 2, then switch is to clockwise; As the high level, while the output 1 output 2 in a low level, and it must be a counterclockwise. So, when the microcontroller programming only need to decide when high output 1 for electricity at ordinary times, the output state can determine at that time is 2 left rotation or right rotation.
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~~