How does the coded switch achieve signal conversion?
来源:Dongguan Yanghan Industrial Co., Ltd.  时间:2023-06-07
A coded switch is a common switching device, which is mainly used to convert mechanical signals to digital signals to achieve digital and automatic control functions. So, how does a coded switch achieve signal conversion?
The principle of a coded switch is to use the rotation of the mechanical structure to change the position of the center point of the switch to produce a different signal output. There are two main coding methods, binary coding and Gray coding. Binary encoding converts each switch position into a different binary digit output, while Gray encoding converts each switch position into a different binary digit with a code distance of 1 between adjacent positions. this allows the output code to change when only one switch position is changed during the conversion.
Also, the coded switch has some important characteristics, such as bounce time, insertion force and lifetime. Among them, bounce time is the time after the switch is pressed that the level with the signal changes; insertion force is the force required to install or uninstall the switch; life time is the life of the switch in operation and is a major factor of concern for the user.
In addition, coded switches are available in different structural forms and sizes for adapting to different occasions and practical needs. For example, rotary coded switches are suitable for rotary control and position control, etc.; push down coded switches are suitable for input devices such as counters, timers and computers. Therefore, when choosing a coded switch, you need to select the right type and brand according to the actual needs and usage environment.
To sum up, the coding switch is used to change the position of the center point of the switch by rotating the mechanical structure to realize the conversion of mechanical signals to digital signals. It is also necessary to consider the characteristics of the switch and the choice of type to meet the actual needs and the differences in the use environment.