News

News

2021.11.09

Is it difficult to understand the DIP switch circuit?

 

Although we don't usually pay attention to the DIP switch, it is widely used in data processing, communication, remote control and anti-theft automatic alarm system, air shower room and other products that require manual programming. Although some people may not know what a DIP switch is, it is certain that most people have seen a DIP switch because it is so ubiquitous. Although we have seen it, we should also understand the circuit of the DIP switch. When we encounter a problem, we can find the source to solve the problem.

In layman's terms, it is a miniature switch that can be toggled by hand, so there are also many DIP switches. There are many models of DIP switches. According to the pin position, they are divided into in-line (DIP) and patch (SMD). According to the way of dialing, they are divided into flat dial and side dial. According to the foot spacing, there is 2.54 The distance between mm and 1.27mm feet is divided into black, red, and blue according to the color. According to the state, there are two states and three states. According to the number of digits, it is usually 11 digits such as 1-10 digits and 12 digits. In fact, there are many more subdivided.

 

The dial switch circuit has two pins on the upper and lower backs corresponding to each key. When dialed to the ON side, the lower two pins are connected; otherwise, they are disconnected. These four keys are independent and not related to each other. Such components are mostly used for binary encoding. It can be set as 1 for on and 0 for off, then there are 0000, 0001, 0010...1110, 1111, one is 16 kinds of codes.

Generally, the dial switch uses the BCD code. C is the common terminal, and there are four terminals 1, 2, 4, and 8. When the DIP switch is pressed to 1, the C terminal is connected to the 1 terminal, when the DIP switch is pressed to 2, the C terminal is connected to the 2 terminal, when the DIP switch is pressed to 3, the C terminal is connected to the 1, 2 terminal ( 1+2=3), when the DIP switch is pressed to 4, terminal C is connected to terminal 4, when the DIP switch is pressed to 5, terminal C is connected to terminal 1, 4 (1+4=5), dial code When the switch is pressed to 6, terminal C is connected to terminal 2, 4 (2+4=6), when the switch is pressed to 7, terminal C is connected to terminal 1, 2, 4 (1+2+4=7 ), when the DIP switch is pressed to 8, terminal C and 8 are connected, when the DIP switch is pressed to 9, terminal C is connected to 1, 8 (1+8=9), when the DIP switch is pressed to 0 , The C terminal is not connected to any terminal.

We all think that the circuit is difficult to understand, but if we break it down and understand it, we can still grasp the principle and operation of the DIP switch circuit. When we encounter problems, we can find it based on our understanding of the DIP switch circuit diagram. Find the source and the method, find out the problem and solve the problem in the shortest time, so that we save time and solve the problem with our own efforts. This is the wealth that knowledge brings us. Isn’t this a great feeling?

 

TOP