The embedded system can quickly calculate, analyze, and output various data information, that is, complete the processing of the data, but often the user needs to "tell" the system how to perform the next action. In this case, the user needs to use the input device to perform the user. The "indication" or "base" is passed to the embedded system.
Common human-computer interaction input devices include buttons, touch screens, microphones, and other types of sensors that can be controlled by users. With the development of technology, not only do our common interactive input devices have new forms, but also a lot of new interactive input methods. For example, the capacitive button and gravity sensing sensor and distance sensor in the mobile phone. Today's interactive devices are not only reflected in the complexity of hardware devices, but also have a large increase in the complexity of related data. For example, a microphone that can be used for voice input and a camera that can be used for face recognition, in order to complete these human-computer interaction inputs, in addition to the hardware input device for information collection, a large amount of data processing is required in the background to help the system "understand" the user. "Enter information".
Below we detail the most commonly used input devices: keyboard / button.
Figure 1 The most commonly used input device keyboard
keyboard
The keyboard is one of the common external devices for embedded applications. The keyboard is a switch matrix consisting of several buttons, which is the simplest digital input device. For the system, the different keys on the keyboard represent different meanings (generally, the meaning of the keys can be defined by software). The user can input simple data and commands by pressing the keys of the keyboard to realize simple human-computer interaction.
1, the basic circuit of the keyboard
The basic circuit of the keyboard is a contact switch, and the on and off states respectively indicate logic "0" and "1". As shown in Figure 2, when the switch is turned on, the processor detects that the corresponding pin is high, indicating logic "1"; when the switch is closed, the processor detects that the corresponding pin is low, indicating logic "0" ".
2, the classification of the keyboard
The key arrangement can be divided into a separate key keyboard and a matrix key keyboard; according to the method of reading the key value, it can be divided into a direct reading mode and a scanning mode; according to the encoding mode, it can be divided into a non-coding mode and Hardware coding mode; according to the microprocessor response mode can be divided into interrupt mode and query mode. The various ways described above combine to form a keyboard with different hardware structures and interfaces. The following two methods are more commonly used.
1 freestanding
The stand-alone key keyboard refers to directly connecting each independent key to the I/O input port of the microprocessor in a one-to-one manner, as shown in Figure 2. When reading a key value, the processor can detect the state of the corresponding I/O input port, determine the input level, and determine the logical value of the input. The buttons are independent of each other in hardware and reading mode, so it is customary to call such buttons as independent buttons. This method is simpler to implement on both hardware and software, but each button occupies an I/O port, which occupies more resources. Generally, it is used when the number of buttons is small and the microprocessor I/O resources are sufficient.
Figure 2 keyboard model and button jitter diagram
2 matrix
The matrix keyboard uses n I/O lines to form a row input port, and m I/O lines constitute a column output port, and a button is set at each intersection of the row and column lines. As shown in Fig. 3(b), it is a matrix keyboard of 4 rows and 4 columns. The matrix keyboard read key value generally adopts the progressive scan mode, that is, the output port rotates and outputs the low level according to the bit rotation, and then reads the information from the input port, and finally calculates the information read from the input port each time to obtain the key code. For example, configure row0~3 as the output mode, and col0~3 as the input mode; now row0 is output low, row1~3 is output high, read col0~3; if at this time, row 0 and column 0 When the button is pressed, col0 detects that the input is low and the other columns are high. This method occupies less I/O lines and is used more in applications with more buttons.
When designing a keyboard, applications that typically have less than 4 buttons can use a stand-alone interface. If you have more buttons, you can use a matrix keyboard to reduce the I/O port usage of the microprocessor.
Figure 3 independent keyboard and matrix keyboard
In addition, if the processor I/O is directly connected to the matrix keyboard interface, the detection mode of the above matrix keyboard requires the processor to continuously scan the interface. For faster processors, this type of detection is a huge waste of processor. Therefore, in practical applications, it is recommended to use a dedicated matrix keyboard driver chip or I/O expansion chip to implement detection of the matrix keyboard, such as ZLG7290, CAT9555 and other expansion chips. Using a driver or I/O expansion chip, the processor can be freed from simple but frequent keyboard scans. Figure 4 shows the basic circuit of the ZLG7290 matrix keyboard application. The chip supports 2 & TImes; 8 I / O extensions, I2C interface and processor connection, and supports interrupt output, maximum scalable 8 & TImes; 8 matrix keyboard.
Figure 4 ZLG7290 matrix keyboard circuit
Chinese Tier 1 brand Solar Panel (Longi, Jinko, Trina, Canadian, Ja etc.)
This type of product is mainly Tier 1 solar module product in China, include Longi solar panel. Jinko solar panel, Canadian Solar panel, ja solar panel etc.all of which are among the top 10 world-renowned brands. The original A grade product is mainly mono crystalline and half cut cell solar modules, with a power range of 400watts to a maximum of 700watts.quality warranty is 25 years.
A grade, this type of film is characterized by a neat and uniform appearance, printed electrode grid lines, no broken grid, no surface stains, no leakage, no aluminum package, no hidden cracks, no scratches, no black core, no reverse current, stable electrical performance, and high conversion efficiency
Using solar cell testing equipment to measure and screen, the conversion efficiency, filling factor, and appearance that meet certain standards are first level. Generally, the conversion efficiency, filling factor, and appearance of first level are better than those of level B
The level of solar panels can be divided into first level, second level, third level, and fourth level, and the first level components can be divided into first level+and first level - two levels. The second level is also the same, and the cost difference between different levels of solar panels is also very large.
Chinese tier 1 brand solar panel
TIER 1 brand include
Longi, Jinko, Trina, JA, Canadian, znshine, etc.
quality warranty
25 years
grade
original A grade (each solar panel can be checked on official website with barcode)
power range
400watt to max 700watt
Tier 1 Solar Panel,Mono Solar Panel N Type,Solar Panels Bifacial 555 Watt,Solar Panel Mono Topcon Cell
PLIER(Suzhou) Photovoltaic Technology Co., Ltd. , https://www.pliersolar.com