Phone

    00852-6915 1330
IC Chips

How to design an Automated Paint Mixer?

The goal of this project is to design and build an automated paint mixer that can accurately and efficiently mix various types of paint to a consistent and predetermined color and consistency. This machine will be able to handle a wide range of paint types, including water-based, oil-based, and specialty paints, and will be able to mix small and large quantities of paint with precise control. Mixing paint by hand can be a time-consuming and labor-intensive process and achieving a consistent color and consistency can be difficult and require significant trial and error. In addition, the manual process is prone to errors and inconsistencies, which can lead to wasted materials and costly rework. An automated paint mixer is a machine that is used to mix different types of paint in a precise and consistent manner. The main components of an automated paint mixer include a linear screw actuator, a mixer, a controller (such as an Arduino, PLC, or other type of controller), a DC gear motor, a DC pump, a flow sensor, a relay module, an impeller, and a webcam (ESP-CAM).   Materials1Controller (Arduino, PLC, ARM controller, Raspberry Pi)2DC Gear Motor3Photoelectric IR Sensor4DC Pump5Flow Sensor6Esp Cam7Linear Screw Actuator8Mixer Actuator (Impeller)9Conveyor Belt The linear screw actuator is a type of mechanical device that converts rotary motion into linear motion. It consists of a screw that is turned by a motor, which drives a nut along the length of the screw. In an automated paint mixer, the linear screw actuator is used to move the mixer up and down, allowing it to mix the paint thoroughly. The mixer is the component that actually mixes the paint. It can be a simple paddle mixer, or it may be a more complex device with multiple blades or other mixing elements. The mixer is typically powered by the DC gear motor, which is a type of electric motor that is commonly used in automated paint mixers because of its high torque and low speed. The controller is the "brain" of the automated paint mixer. It receives input from the various sensors on the machine (such as the flow sensor) and uses this information to control the various components of the mixer (such as the DC pump and the linear screw actuator). The controller can be an Arduino, a PLC, or any other type of device that can receive input and controlling output. The DC pump is used to move the paint from one location to another within the mixer. It is typically powered by the DC gear motor and is controlled by the controller. The flow sensor is a device that measures the flow rate of the paint as it is being pumped. This information is used by the controller to ensure that the correct amount of paint is being mixed.  The relay module is a device that is used to control the flow of electricity to the various components of the automated paint mixer. It is activated by the controller and allows the controller to turn different components on and off as needed. The impeller is a component that is used to mix the paint more thoroughly. It is a type of rotor with blades that is placed inside the mixer and is rotated by the DC gear motor. The impeller helps to break up any clumps or lumps in the paint, ensuring that it is fully mixed. Finally, the ESP-CAM (or webcam) is a camera that is used to monitor the mixing process. It is connected to the controller and can be used to view the mixer remotely, allowing for easy monitoring of the mixing process. Overall, an automated paint mixer is a complex and sophisticated machine that is designed to mix different types of paint in a precise and consistent manner. Its various components work together to ensure that the paint is mixed properly and that the final product is of the highest quality.
Kynix On 2023-01-11 
LED

LCD Interface Types Explained with Details

Introduction There are many kinds of LCD interfaces, with wide range of applications. The classification criteria mainly depends on the driving mode and control mode of the LCD. At present, there are generally several connection modes for color LCDs on mobile phones: MCU mode, RGB mode, SPI mode, VSYNC mode, MDDI mode, DSI mode, etc. and only the TFT module has RGB interface. Basics of LCD Interfacing Catalog Introduction Ⅰ LCD Interface Modes 1.1 MCU Mode 1.2 VSYNC Mode 1.3 M6800 Mode 1.4 Intel 8080 Mode 1.5 RGB Mode 1.6 SPI (Serial Peripheral Interface) Mode 1.7 MDDI (Mobile Display Digital Interface) Mode 1.8 DSI (Display Serial Interface) Mode Ⅱ MCU Mode vs RGB Mode Ⅲ TFT-LCD Interface Explained 3.1 TTL Interface 3.2 LVDS 3.3 EDP (Embedded Display Port) 3.4 MIPI Interface Ⅳ FAQ Ⅰ LCD Interface Modes The following is a detailed explanation of the different interface modes: 1.1 MCU Mode It is mainly used in the field of single-chip microcomputers. Later, it is widely used in low-end mobile phones, and its main feature is that it is cheap. The standard term for the MCU-LCD interface is the 8080 bus standard proposed by Intel. Figure 1. Intel 8080 Therefore, 8080 is used to refer to the MCU-LCD screen in many documents. It can be mainly divided into 8080 mode and 6800 mode, and the difference between the two is mainly the timing. There are 8 bits, 9 bits, 16 bits, 18 bits, and 24 bits for data bit transfer. Connections are divided into: CS/, RS (register selection), RD/, WR/, and data lines. The advantages are: the control is simple and convenient, no clock and synchronization signals are required. The disadvantage is: it consumes GRAM, so it is difficult to achieve a large screen (above 3.8). For LCM with MCU interface, the internal chip is called LCD driver. The main function is to transform the data/command sent by the host into the RGB data of each pixel, so that it can be displayed on the screen. This process does not require point, line, frame clocks.The LCD Driver IC of the MCU interface is equipped with GRAM. As a co-processor of the MCU, it accepts the Command/Data sent by the MCU and can work relatively independently. Pay attention to, the internal chip of LCD Module (LCM) is called the LCD driver. The main function is to transform the data/commands sent by the host computer into the RGB data of each pixel, so that it can be displayed on the screen. This process also does not require point, line, frame clocks. 1.2 VSYNC Mode In fact, this mode is to add a VSYNC signal to the MCU mode and applied to the update of the moving picture, which is very different from the above interface. This mode supports the function of direct animation display. It provides a solution for animation display with minimal changes to the MCU interface. In this mode, the internal display operation is synchronized with the external VSYNC signal. Animation display at a higher rate than internal operations can be achieved. However, due to the difference in its operation mode, this mode has a limit on the speed, that is, the write speed to the internal SRAM must be greater than the speed of the display read internal SRAM. 1.3 M6800 Mode The M6800 mode supports selectable bus widths of 8/9/16/18-bit (the default is 8 bits). The actual design idea is the same as that of Intel 8080. The main difference is the bus control read and write signals in this mode. Combined on one pin (with a latch signal (E) data bit transmission has 8, 9, 16 and 18 bits). Figure 2. M6800 Mode 1.4 Intel 8080 Mode Intel 8080 LCD interface is divided into: CS/, RS (register selection), RD/, WR/, and the data line. Advantage: Simple and convenient control, no clock and synchronization signals are required. Disadvantage: It consumes GRAM, so it is difficult to achieve a large screen (above QVGA). Figure 3. Intel 8080 Mode 1.5 RGB Mode The large screen adopts more modes, and the data bit transmission also has the 6-, 16- and 18-, 24-bit. The connections are generally: VSYNC, HSYNC, DOTCLK, CS, RESET, some also need RS, and the rest is the data line. Its advantages and disadvantages are just the opposite of MCU mode. The main difference between the MCU-LCD screen and the RGB-LCD screen is the location of the video memory. The video memory of RGB-LCD is acted by system memory, so its size is only limited by the size of system memory. Where RGB-LCD can be made larger, such as 4.3" can only be regarded as entry-level, and 7" in MID, 10" screens have begun to be widely used. At the beginning of the design of MCU-LCD, it was only necessary to consider that the memory of the single-chip microcomputer was small, so the video memory was built into the LCD module, and then the software updated the video memory through special display commands with small MCU screen. At the same time, the display update speed is slower than RGB-LCD. The display data transmission mode is also different. RGB screen only needs to organize the data in the video memory. After starting the display, the LCD-DMA will automatically transfer the data in the video memory through the RGB interface to the LCM, while the MCU screen needs to send a drawing command to modify the internal RAM of the MCU (that is, the RAM of the MCU screen cannot be directly written).Therefore, the RGB display speed is significantly faster than that of the MCU, and the MCU-LCD is also slower in terms of video playback. For the LCM of the RGB interface, the host directly outputs the RGB data of each pixel without conversion (except for GAMMA correction, etc.). For this interface, an LCD controller is required in the host part to generate RGB data and sync signals. Figure 4. RGB Mode Here gives a note. The color TFT LCD screen mainly has 2 kinds of interfaces: TTL interface (RGB color interface), and LVDS interface (differential signal transmission). The TTL interface is mainly used for small-sized TFT screens below 12.1 inches, and the LVDS interface is mainly used for large-sized TFT screens above 8 inches. The TTL interface has many lines and the transmission distance is short, while the LVDS interface has a long transmission distance and a small number of lines. The large screen adopts more modes, the control pins are VSYNC, HSYNC, VDEN, VCLK, S3C2440 supports up to 24 data pins, and the data pin is VD[23-0].The image data sent by the CPU or graphics card is a TTL signal (0-5V, 0-3.3V, 0-2.5V, or 0-1.8V), and the LCD itself also receives a TTL signal, which is transmitted at a high rate over long distances. However, its performance is poor, and the anti-interference ability is relatively poor. With the time goes by, a variety of transmission modes were proposed, such as LVDS, TDMS, GVIF, P&D, DVI and DFP. They actually just encode the TTL signal sent by the CPU or graphics card into various signals for transmission, and decode the received signal on the LCD side to obtain the TTL signal. No matter what transmission mode is used, the essential TTL signal is the same. Note: TTL/LVDS are two signal transmission modes: TTL is a mode in which high level means 1, and low level means 0; LVDS is the difference of a positive and negative corresponding waveform used to indicate the 1 or 0. 1.6 SPI (Serial Peripheral Interface) Mode It is less used. There are 3-wire and 4-wire, the connection is CS/, SLK, SDI, and SDO, and the software control is more complicated. 1.7 MDDI (Mobile Display Digital Interface) Mode  Qualcomm's MDDI, which can improve the reliability of mobile phones and reduce power consumption by reducing wiring. It will replace SPI mode as a high-speed serial interface in the mobile field. The main connection is host_data, host_strobe, client_data, client_strobe, power, and GND. 1.8 DSI (Display Serial Interface) Mode This mode is a serial bidirectional high-speed command transmission mode, with D0P, D0N, D1P, D1N, CLKP, CLKN connected.   Ⅱ MCU Mode vs RGB Mode Among them, there are more applications in MCU mode and RGB mode. The differences are as follows:1) MCU interface: it will decode commands, generate timing signals by timing generator, and drive COM and SEG.RGB interface: When writing LCD register setting, it is no different from MCU interface. The difference is only in how the image is written.2) When using the MCU mode, since the data can be stored in the IC's internal GRAM first and then written to the screen, the LCD in this mode can be directly connected to the memory bus. It is different when using RGB mode, and has no internal RAM, HSYNC, VSYNC, ENABLE, CS, RESET, RS can be directly connected to the GPIO port of memory, and use the GPIO port to simulate waveforms.3) MCU Interface vs RGB InterfaceThe main differences between the MCU interface and the RGB interface are:MCU interface mode: display data is written into DDRAM, often used for still picture display.RGB interface mode: The display data is not written into DDRAM, but directly written to the screen, which is fast and often used to display video or animation.   Ⅲ TFT-LCD Interface Explained The commonly used interfaces of TFT-LCD, including TTL (RGB), LVDS, EDP, and MIPI. Here roughly talk about the basic principles of the signal composition of these interfaces. Figure 5. TTL (Transistor-Transistor Logic) Schematic 3.1 TTL Interface 🔺Interface OverviewTTL is transistor-transistor logic, and TTL level signals are generated by TTL devices. TTL devices are a large category of digital integrated circuits. They are manufactured by bipolar technology and have the characteristics of high speed, low power consumption and many varieties.The TTL interface is an interface for transmitting data in parallel. When using it, it is not necessary to use a dedicated interface circuit at the driver board end and the LCD panel end of the liquid crystal display, but the TTL data signal output by the main control chip of the driver board is transmitted through the cable. It is directly transmitted to the input interface of the LCD panel. Due to the high signal voltage, many connections and long transmission cables of the TTL interface, the anti-interference ability of the circuit is relatively poor, and it is easy to generate electromagnetic interference (EMI). In practical applications, TTL interface circuits are mostly used to drive small-size (below 15in) or low-resolution LCD panels. The highest pixel clock of TTL is only 28MHz.TTL is the only signal that TFT-LCD can recognize. Early digital processing chips are all TTL, that is, RGB is directly output to TFT-LCD.🔺Signal TypesThe TTL output interface of the driver board generally includes three types of signals: RGB data signal, clock signal and control signal. As shown below:(1) RGB Data-Signala. Single Channel6-BitAs for it, there are 18 RGB data lines in total, including 6 R0~R5 red primary color data lines, 6 G0~G5 green primary color data lines, 6 B0~B5 blue primary color data lines, a total of 18 strips. Since the primary color RGB data is 18bit, it is also called 18-bitTTL interface.8-BitFor it, there are a total of 24 RGB data lines, including 8 R0~R7 red primary color data lines, 8 B0~B7 green primary color data lines, 8 BO~B7 blue primary color data lines, a total of 24 strips. Since the primary color RGB data is 24-bit, it is also called 24-bit TTL interface.b. Dual ChannelDual channels, that is, two sets of RGB data, which are divided into odd channels and even channels. Some clocks are also divided into OCLK/ECLK, and some share one. The following figure has two, as shown below:6-BitIt has 36 RGB data lines in total, including 18 odd RGB data lines, 18 even RGB data lines. Since the primary color ROB data is 36-bit, it is also called 36-bitTTL interface.8-BitIt has 48 RGB data lines, including 24 odd RGB data lines and 24 even RGB data lines. Since the primary color RGB data is 48bit, it is also called 48-bit TTL interface.(2) Clock SignalIt refers to the pixel clock signal, which is the benchmark for transmitting data and reading the data signal. When using odd/even pixel dual way to transmit RGB data, different output interfaces use different methods of pixel clock. Some output interface odd/even pixel dual data share a pixel clock signal, and the others set odd pixel data clock and even pixel two clock signals to meet the needs of different LCD panels.(3) Control SignalThe control signals include a data enable signal (or an effective display data strobe signal) DE, a horizontal sync signal HS, and a vertical sync signal VS. 3.2 LVDS 🔺Overview of LVDS InterfaceLVDS is a low-voltage differential signaling technology interface. A digital video signal transmission method developed to overcome the shortcomings of large power consumption and large EMI electromagnetic interference when transmitting broadband high bit rate data in TTL level mode. The LVDS output interface uses a very low voltage swing (about 350mV) to transmit data differentially on two PCB traces or a pair of balanced cables, that is, low-voltage differential signaling. Using the LVDS output interface, the signal can be transmitted at a rate of several hundred Mbit/s on the differential PCB line or balanced cable. Due to the low-voltage and low-current driving method, low noise and low power consumption are achieved.🔺Composition of LVDS Interface CircuitIn a liquid crystal display, the LVDS interface circuit includes two parts, the LVDS output interface circuit (LVDS transmitter) on the motherboard side and the LVDS input interface circuit (LVDS receiver) on the LCD panel side. The LVDS emitter converts the TTL signal into an LVDS signal, and then transmits the signal to the LVDS decoding IC on the receiving end through the flexible cable (line) between the driver board and the LCD panel, and the LVDS receiver then serializes the serial signal which is converted into a parallel signal of TTL level, and sent to the LCD screen timing control and row and column drive circuit. In other words, TFT only recognizes TTL (RGB) signals.🔺Signal type of LVDS interfaceLVDS signals are composed of data differential and clock differential signals. As shown below:(1) Single Channel6-Bit DataThere are 4 sets of differential lines, 3 sets of signal lines, and one set of clock lines, including Y0M, Y0P, Y1M, Y1P, Y2M, Y2P, CLKOUT_M, CLKOUT_P.8-Bit DataThere are 5 groups of differential lines, 4 groups of signal lines, and a group of clock lines. They are Y0M, Y0P, Y1M, Y1P, Y2M, Y2P, CLKOUT_M, CLKOUT_P.(2) Dual ChannelWhen LVDS transmits data with higher resolution, the anti-interference ability is relatively strong. But when the resolution is higher than 1920×1080, the single channel is overwhelmed, so there is a dual interface. Its purpose is very simple, speed up and enhance anti-interference ability.6-Bit DataIt is exactly twice as long as the single channel, and the clock is also two channels. The red part: the two sets of signals: Y3M, Y3P, Y3M1, and Y3M1 are not connected.8-Bit DataSimilar to the previous comparison. 3.3 EDP (Embedded Display Port) EDP is a communication interface of the computer display screen. The resolution of the computer using the EDP display interface will be higher than that of the LVDS interface. Generally, high-definition screens use this communication interface. It is a fully digital interface based on the DisplayPort architecture and protocol. It can transmit high-resolution signals with simpler connectors and fewer pins, and can achieve simultaneous transmission of multiple data, so the transmission rate is much higher than LVDS. 3.4 MIPI Interface Compared with the LVDS interface, the MIPI interface is rare, but in fact, it has many advantages. The MIPI interface module has the advantages of high speed, large amount of data transmission, low power consumption, and good anti-interference when compared with the parallel port. It is more and more favored by customers and is growing rapidly. For example, an 8M module with both MIPI and parallel port transmission requires at least 11 transmission lines and an output clock of up to 96M to achieve a full pixel output of 12FPS when using an 8-bit parallel port. Channel 6 transmission lines can achieve a frame rate of 12FPS at full pixels, and the current consumption will be about 20MA lower than that of parallel port transmission. Since MIPI uses differential signal transmission, the design needs to be strictly designed according to the general rules of differential design. The key is to achieve differential impedance matching. The MIPI protocol stipulates that the differential impedance of the transmission line is 80-125 ohms.   Ⅳ FAQ 1. What is LCD interface?16x2 LCD means that there are two rows in which 16 characters can be displayed per line, and each character takes 5X7 matrix space on LCD. ... In this tutorial we are going to connect 16X2 LCD module to the 8051 microcontroller (AT89S52). 2. What is LCD parallel interface?LCD Displays that use a parallel interface include Character, Graphic and TFT. ... The initial step is to energize the LCD. Reads and Writes are sent via 8 data lines and 3 control lines. These control lines are Read/Write (R/W), Enable (E) and Register Select (RS). 3. What is TFT interface?A TFT LCD display module consists of a TFT LCD panel, one or more COG (chip-on-glass) or COB (chip-on-board) driver ICs, a backlight, and an interface. Several TFT display interface technologies exist today. Picking the right interface depends on specific end-product concerns. 4. What are the different types of LCDs?Different Types of LCD PanelsTwisted Nematic (TN) Twisted Nematic LCDs are the most commonly manufactured and used types of monitors across a wide range of industries. ...IPS Panel TechnologyVA PanelAdvanced Fringe Field Switching 5. What is MCU interface?The MCU interface has two standard types, the Intel-8080 and Motorolla-6800 series. These interfaces communicate through read, write and chip-select signals to address registers or display RAM. The slight difference between the two pertains to the direction and separation of the write and read signals. 6. What is MCU interface LCD?These interfaces communicate through read, write and chip-select signals to address registers or display RAM. Depending on color depth (8, 9, 16 or 18-bit), MCU sends RGB signals directly to LCM's display memory. 7. Is TFT an LCD?TFT is a kind of LCD. The TFT(Thin Film Field-effect Transistor) is a video in which every single pixel in the liquid crystal display is actuated by a Thin Film Transistor embedded in the rear. Thus can achieve high speed, high brightness, high contrast display screen information.
kynix On 2022-01-18 
General electronic semiconductor

Three-state Buffer Basic and Verilog HDL Simulation

Introduction In the computer field, a buffer refers to a buffer register, which is divided into two types: input buffer and output buffer. The function of the former is to temporarily store the data sent by the peripheral so that the processor can take it away; the latter is to temporarily store the data sent by the processor to the peripheral. With the numerical control buffer, the high-speed CPU and the slow-speed peripherals can coordinate and buffer to realize the synchronization of data transmission. Since the buffer is connected to the data bus, it must have a three-state output function. Catalog Introduction Ⅰ Three-State Buffer Meaning Ⅱ Buffers in the Java Language 2.1 Buffer 2.2 Data Transmission 2.3 Mark and Reset 2.4 Invariants 2.5 Clear Reverse Rewind 2.6 Read-Only Buffer 2.7 Thread Safety 2.8 Call Chain Ⅲ EDA Code Ⅳ Verilog HDL Model and Simulation of Tri-state Buffer 4.1 Tri-state Buffer IC 4.2 Application Example of 74LS541 as Input Port 4.3 Multiplexer (MUX) Ⅴ FAQ Ⅰ Three-State Buffer Meaning Three-state buffer (tri-state buffer), also known as three-state driver, its three-state output is controlled by the enable output terminal. When the enable output is valid, the device realizes normal logic state output (logic 0, logic 1); when the enable input is invalid, the output is in a high-impedance state, which is equivalent to disconnecting from the connected circuit. Figure 1. Tristate Buffers A buffer is one of the digital components, it does not perform any operation on the input value, and its output value is the same as the input value. It plays an important role in the design of the computer. There are two types of buffers. In addition to tri-state buffers, there are also conventional buffers (regular buffers).Conventional buffers always output the value directly, which is used to output current to higher-level circuitry. The tri-state buffer has an optional card input, denoted by E, in addition to the functions of a conventional buffer. E=0 and E=1 have different output values. Figure 2. Tristate Buffer Symbols When E=1, it is gated, and its input is directly sent to the output.If E=0, the buffer is blocked. No matter what value is input, the output is always high impedance. The high-impedance state can drop the current low enough that the buffer-like output is not connected to anything.In the design of the CPU, the DC load capacity of the general output line can drive a TTL load, and in the connection, an address line or data line of the CPU may be connected to multiple memory chips, but the memory chips are all MOS circuits. It is a capacitive load, and the DC load is much smaller than the TTL load. Therefore, in a small system, the CPU can be directly connected to the memory, but a buffer needs to be added in a large system.In order to reduce the number of information transmission lines, the information transmission lines in most computers are in the form of buses, that is, all the same type of information to be transmitted goes through the same group of transmission lines, and the information is transmitted in time-sharing. There are generally three groups of buses in the computer, namely the data bus, the address bus and the control bus. In order to prevent information from interfering with each other, it is required that any register or memory hung on the bus, etc., its transmission end can not only show two information states of 0 and 1, but also should be able to show a third state-high impedance state. That is, it seems that their outputs are disconnected at this time, which has no effect on the bus state, and the bus can be occupied by other devices at this time. The above functions can be realized. In addition to the input and output terminals, it also has a control terminal, please see the figure below. Figure 3. Three-state Output Buffer Register When E=1, the output=input, the bus is driven by the device at this time, and the data on the bus is determined by the input data.When E=0, the output terminal is in a high-impedance state, and the device has no effect on the bus. When the output terminal of the register is connected to the three-state gate, and then the output terminal of the three-state gate is connected with the bus, the stage-rush register of the three-state output is formed. Since the one-way tri-state gate is used here, the data can only be output from the register to the data bus. If you want to achieve bidirectional transmission, you will use a bidirectional tri-state gate. Figure 4. Three-state Gate Ⅱ Buffers in the Java Language 2.1 Buffer Directly known subclasses of java.nio.Buffer: ByteBuffer, CharBuffer, DoubleBuffer, FloatBuffer, IntBuffer, LongBuffer, ShortBuffer public abstract classBufferextendsObject. A container for data of a specific basic type.A buffer is a linear finite sequence of elements of a particular primitive type. In addition to content, the basic properties of a buffer include capacity, limitation, and location.1) The capacity of a buffer is the number of elements it contains. The capacity of the buffer cannot be negative and cannot be changed.2) The limit of the buffer is the index of the first element that should not be read or written. A buffer's limit cannot be negative and cannot be larger than its capacity.3) The position of the buffer is the index of the next element to be read or written. The buffer's position cannot be negative and cannot be larger than its limit. This class has a subclass for each non-boolean primitive type. 2.2 Data Transmission Each subclass of this class defines two get and put operations:A relative operation reads or writes one or more elements, starting at the current position and incrementing the position by the number of elements transferred. If the requested transfer exceeds the limit, a relative get operation will throw a BufferUnderflowException, and a relative put operation will throw a BufferOverflowException. In both cases, no data is transferred.Absolute operations take explicit element indices, which do not affect position. Absolute get and put operations will throw IndexOutOfBoundsException if the index parameter exceeds the limit. Of course, I/O operations through the appropriate channel (usually related to the current position) can also transfer data to and from the buffer. 2.3 Mark and Reset The mark is an index to which the buffer's position is reset when the reset method is called. It is not always necessary to define a marker, but when defining a marker, you cannot define it as a negative number, and you cannot make it larger than the position. If a marker is defined, it will be discarded when the position or limit is adjusted to a value less than the marker. Calling the reset method will cause an InvalidMarkException to be thrown if the mark is not defined. 2.4 Invariants Mark, position, limit, and capacity values obey the following invariants:0<=mark<=position<=limit<=capacity, newly created buffers always have a 0 position and an undefined mark. The initial limit can be 0 or some other value, depending on the buffer type and how it is built. In general, the initial contents of the buffer are undefined. 2.5 Clear Reverse Rewind In addition to methods for accessing position, limitation, capacity values, and methods for marking and resetting, this class defines the following operations that can be performed on buffers.clear() prepares the buffer for a series of new channel reads or relative put operations. It sets the limit to the capacity size and the position to 0.flip() prepares the buffer for a series of new channel write or relative get operations. It sets the limit to the current position, then the position to 0.rewind() prepares the buffer for rereading already contained data. It leaves the limit unchanged, setting the position to 0. 2.6 Read-Only Buffer Every buffer is readable, but not every buffer is writable. The mutate method of each buffer class is designated as an optional operation and will throw a ReadOnlyBufferException when called on a read-only buffer. A read-only buffer does not allow changes to its contents, but its tag, position, and limit values are mutable. Its isReadOnly method can be called to determine whether the buffer is read-only. 2.7 Thread Safety It is not safe for multiple current threads to use the buffer. If it is used by more than one thread, access to that buffer should be controlled through appropriate synchronization. 2.8 Call Chain Specifies that methods in this class return the buffer on which they were called (otherwise they would return no value). This operation allows method calls to be formed into a chain, like a sequence of statementsb.flip(); b.position(23); b.limit(42); can be replaced by the following short statement b.flip().position(23).limit(42);   Ⅲ EDA Code library ieee;use IEEE.STD_LOGIC_1164.all;ENTITY BUF3S ISPORT (INPUT:IN STD_LOGIC;ENABLE:IN STD_LOGIC;OUTPUT:OUT STD_LOGIC);END BUF3S;ARCHITECTURE BHV OF BUF3S ISBEGINPROCESS(ENABLE,INPUT)BEGINIF ENABLE='1'THEN OUTPUT<=INPUT;ELSE OUTPUT<='Z';END IF;END PROCESS;END BHV;   Ⅳ Verilog HDL Model and Simulation of Tri-state Buffer Figure 5. Verilog HDL Model and Simulation of Tristate Buffer 4.1 Tri-state Buffer IC Tristate buffers are often used for multiple data sources to share a (group) common line (bus). Figure 6. For Multiple Data Sources When all enable terminals of the decoder are valid, the combination of SS2~SS0 makes only one of /SELP~/SELW valid at the same time, so that one of the 8 data sources P~W drives SDATA. When the enable terminal is invalid, then none of the three-state gates are enabled, and the outputs are all high impedance.The MSI device 74LS541 contains 8 independent tri-state gates and shares two enable inputs. The logic diagram and logic symbols are as follows: Figure 7. 74LS541 Logic Diagram and Logic Symbol 4.2 Application Example of 74LS541 as Input Port Figure 8. Application Example of 74LS541 as Input Port The MSI device 74LS245 is an 8-bit tri-state bus transceiver with an enable output G and a direction selection input DIR to determine the transmission direction: when DIR=1, data is transmitted from A to B; when DIR=0, data is transmitted from B passed to A. The logic diagram and logic symbols are as follows: Figure 9. 74LS245 Logic Diagram and Logic Symbol   Figure 10. Bus   Figure 11. Verilog HDL Model of 8-bit Tri-state Bus Transceiver 4.3 Multiplexer (MUX) Multiplexers are also called data selectors, and are often abbreviated as MUX. It is a combinational logic circuit with multiple inputs and single outputs, denoted as n/1 or n-1.Logic function: Since the enable terminal EN is valid., when selecting the control variable, select one of the multiple input data to the output terminal. Figure 12. MUX Each value group of the n selection control variables corresponds to select one of the m=2n input data and then send it to the output terminal.Design of Commonly Used Multiplexers🔺8 to 1 Multiplexer Figure 13. 8 to 1 Multiplexer Function Description   Figure 14. 8 to 1 Logic Circuit Diagram Circuit package, Logic symbol Figure 15. Circuit Package   Figure 16. Logic Symbol 1 Out of 8 Verilog HDL Models Figure 17. 1 Out of 8 Verilog HDL Model   Figure 18. 8 Out of 1 Functional Simulation 🔺8 Out of 1 Multiplexer with Tri--state Output Figure 19. Function Description   Figure 20. 8 to 1 Logic Circuit Diagramof Three-state Output Circuit Package, Logical Symbol Figure 21. 74LS251 Circuit Package and Logical Symbol 1 Out of 8 Verilog HDL Model for Tri-state Output Figure 22. Verilog HDL Model Ⅴ FAQ 1. What is a buffer software?A reserved segment of memory within a program that is used to hold the data being processed. Buffers are set up in every program to hold data coming in and going out. In a video streaming application, the program uses buffers to store an advance supply of video data to compensate for momentary delays. 2. Is buffer safe to use?Buffer is a reliable, fast way to manage multiple social media accounts, from a user-friendly dashboard. 3. Why do we need buffering in OS?Computers have many different devices that operate at varying speeds, and a buffer is needed to act as a temporary placeholder for everything interacting. This is done to keep everything running efficiently and without issues between all the devices, programs, and processes running at that time. 4. Is a buffer hardware or software?A buffer is a data area shared by hardware devices or program processes that operate at different speeds or with different sets of priorities. The buffer allows each device or process to operate without being held up by the other. This term is used both in programming and in hardware. 5. What is tri-state buffer?A tri-state buffer is a logic inverter or a non-inverting buffer with a tri-state output stage. ... When the enable line is not activated the buffer output stage has a high output impedance (i.e., the Z state, as described above in section 10.15) and transmission of data is prevented. 6. What is the difference between buffer and tri-state buffer?A tri-state buffer is similar to a buffer, but it adds an additional "enable" input that controls whether the primary input is passed to its output or not. If the "enable" inputs signal is true, the tri-state buffer behaves like a normal buffer. 7. What is meant by tri-state buffer how it helps in reading and writing data from a register?Definition: A three-state bus buffer is an integrated circuit that connects multiple data sources to a single bus. The open drivers can be selected to be either a logical high, a logical low, or high impedance which allows other buffers to drive the bus. 8. What is tri-state TTL?Tri-state gates have additional circuitry via which the gate outputs can be enabled or disabled. This is very useful in digital systems where devices communicate via common wires called busses. Only one device can talk at a time; the others are disabled. 9. Which of the following is also known as tri-state?Explanation: The progression in the parallel ports provides a third register or an individual control bit which can make the pin in a high impedance state. An output port which can do this is also known as tri-state, that is, logic high, logic low and a high impedance state. 10. What is tri-state in microprocessor?Tristate means three states viz. Logic 0, Logic 1 and high impedance states. In high impedance state, the pin neither connected to supply nor to ground. Hence impedance at this pin is very high with respect to suppy as well as ground. Some pins of 8085 have three states. 11. How many buffer may active at any given time?At any one time, one buffer is actively being displayed by the monitor, while the other, background buffer is being drawn. 12. What is tri-state circuit?Tristate means a digital circuit output that can have 3 states: 0, 1 and High-Z or high impedance which is the circuit equivalent of “disconnected”. There are times when you want to have multiple digital circuits connected on a bus but not interfering with each other.
kynix On 2022-01-13 
Optoelectronics

What Is Optocoupler and Its Application with Examples

Ⅰ IntroductionThis article focuses on the electronic component known as the Optocoupler. (For the fiber-optic networking component, please refer to Optical Isolators). This guide covers the fundamentals of optocouplers, their working principles, specifications, and practical examples of how to implement them in your circuits.Optocoupler Related VideoVideo: How an Optocoupler Works and Example CircuitⅡ Photocouplers, Opto-couplers & Opto-isolatorsThese devices are known by a variety of names, including optoisolator, photocoupler, and optocoupler.An optocoupler is a semiconductor device that transmits an electrical signal between two isolated circuits using light. This process ensures there is no direct electrical connection between the input (source) and the output (load), effectively protecting sensitive low-voltage components.While often used interchangeably, there is a technical distinction in the industry:Optocoupler: Typically refers to devices used to transfer analog or digital information between circuits with voltage differentials below 5,000 Volts.Optoisolator: Often refers to devices specifically designed to withstand very high voltage differentials (5,000V to 50,000V+) for safety isolation in power systems.Optocouplers are typically housed in small packages ranging from standard DIP (Dual Inline Package) to tiny SMD (Surface Mount Device) packages. Despite their small size, they play a massive role in linking data, optical encoding, and detecting position transitions on encoder wheels.They are also the core technology inside Solid-State Relays (SSR), allowing low-power logic signals to switch high-power AC or DC loads without any mechanical parts.Figure 1: Typical Photocouplers in DIP packagingⅢ Photocoupler / Optocoupler BasicsAn optocoupler consists of two main internal elements encased in a light-tight body:The Emitter: Usually a Near-Infrared LED (Light Emitting Diode) that converts the electrical input signal into light.The Detector: A photosensitive device (such as a phototransistor, photodiode, or TRIAC) that detects the light and generates an electrical output.These two components are separated by a transparent dielectric barrier (glass, plastic, or air gap). Because the connection is made via light photons rather than electrons, the input and output sides are electrically isolated. This isolation prevents high voltages or rapidly changing voltage spikes on one side from damaging components on the other.Ⅳ Optocoupler SymbolIn circuit diagrams, the optocoupler symbol illustrates its internal functionality. The left side typically shows the LED (Emitter), and the right side shows the receiver (Detector).Figure 2: Optocoupler circuit symbol (Phototransistor output)Common Variations:Phototransistor: The most common type for DC signal switching (shown above).Photo-Darlington: Uses a Darlington pair transistor for much higher gain (sensitivity) but slower switching speed.Photo-TRIAC / Photo-SCR: Used for controlling AC power mains.Figure 3: Photo-TRIAC circuit symbol (used for AC control)Ⅴ Optocoupler Specifications to WatchWhen selecting a component, consult the datasheet for these critical parameters:1. Current Transfer Ratio (CTR)This is the equivalent of "gain" (Beta) in a standard transistor. It is the ratio of the output collector current ($I_C$) to the input LED forward current ($I_F$), expressed as a percentage.Standard Phototransistor: CTR ranges from 10% to 100%.Photodarlington: CTR can range from 500% to 5000% (high sensitivity).Design Note - CTR Degradation: The efficiency of the internal LED decreases over time (aging). A good engineering practice is to design your circuit assuming the CTR will drop by 50% over the product's lifespan.2. Bandwidth and SpeedThis determines the maximum data rate.Phototransistors: Generally limited to about 250 kHz.Photodarlingtons: Slower, often limited to < 20 kHz due to long turn-off times.High-Speed Optocouplers: Devices like the 6N137 use a photodiode + logic amplifier architecture and can handle 10 MHz or more.3. Input Current ($I_F$)This is the current required to light up the internal LED. You must calculate a series resistor to limit this current, typically between 5mA and 20mA for standard devices.4. Isolation Voltage ($V_{iso}$)The maximum voltage difference the component can withstand between the input and output pins without electricity jumping the gap. Common ratings are 2500V to 5000V RMS.Ⅵ How It WorksThe operation is straightforward:Current is applied to the input side, flowing through the internal infrared LED.The LED emits infrared light inside the package. The intensity of this light is proportional to the input current.The light strikes the photosensitive base of the output transistor (or Triac).The photosensitive device "turns on" and conducts current.Figure 4: The internal light pathWhy is the Base pin unconnected?In many 6-pin optocouplers (like the 4N25), the base of the transistor is broken out to a pin (Pin 6). However, in most applications, this pin is left floating (unconnected) because the light serves as the base current. Connecting a resistor from the base to the ground can reduce sensitivity but increase switching speed.Figure 5: Effective isolation between Input and OutputⅦ Benefits and TypesPrimary Benefits:Ground Loop Elimination: Breaking the ground path between two circuits prevents hum and noise (critical in audio and instrumentation).Safety: Protects low-voltage microcontrollers (3.3V/5V) from high-voltage spikes (110V/220V).Level Shifting: Allows a 3.3V signal to switch a 24V or 48V circuit effortlessly.Common Types:Photo-Transistor: General-purpose DC switching.Photo-Darlington: High gain for very low input currents.Photo-SCR / Photo-TRIAC: Designed for interfacing with AC power mains.Logic Gate Output: (e.g., 6N137, H11L1) Includes internal logic buffers for high-speed digital communications.Figure 6: Common output configurationsⅧ Typical ApplicationsMicroprocessor I/O: Protecting GPIO pins on Arduinos or PLCs.Switch Mode Power Supplies (SMPS): Used in the feedback loop to maintain voltage regulation while keeping the mains side isolated from the low-voltage side.Motor Driving: Isolating the control logic from the noisy high-current motor drivers.Example: Triac Optocoupler for AC LoadsBy using a device like the MOC3020, a 5V digital signal can trigger a large external Triac, which in turn controls an AC motor or lamp. Many Triac optocouplers feature Zero-Crossing Detection, which ensures the device only switches when the AC voltage is at zero, significantly reducing Electromagnetic Interference (EMI).Figure 7: A basic DC switching configurationⅨ Differences Between Optocouplers and Solid State Relays (SSR)While they operate on the same principle, the distinction lies in power capability and integration.Figure 8: Solid State Relays (SSRs)Optocouplers: Low power. Used for signal transmission. Usually requires external components (external Power Triacs or MOSFETs) to switch heavy loads.Solid State Relays: High power. They contain an optocoupler plus the high-power switching components and protection circuitry inside a single, larger block. They can switch tens of Amps directly.Ⅹ How to Use an Optocoupler with ArduinoConnecting a load directly to an Arduino is risky. If the load is a motor or a solenoid, "flyback" voltage spikes can destroy the microcontroller. Using an optocoupler like the 4N25 or PC817 resolves this.The Circuit Concept:The Arduino drives the internal LED of the optocoupler. The optocoupler's output transistor acts as a switch for the secondary circuit.Figure 9: 4N25 OptocouplerWiring Guide (4N25 to Arduino):1. Input Side: Connect Arduino Pin -> 220Ω Resistor -> Optocoupler Pin 1 (Anode). Connect Pin 2 (Cathode) to Arduino GND.2. Output Side: Connect the device you want to control. Important: If you are using the optocoupler to send a signal into another digital pin, you must use a Pull-up Resistor on the collector (Pin 5) because the phototransistor can only pull voltage down to ground; it cannot "source" voltage effectively.Figure 11: Basic wiring diagram for isolating a signalⅪ FAQ1. What are the disadvantages of an optocoupler?The main disadvantages are speed and power handling. Standard optocouplers have a relatively slow frequency response compared to digital isolators. Also, the output phototransistor cannot handle high currents directly; it usually requires an external transistor or relay to switch heavy loads.2. Is an optocoupler the same as a relay?Not exactly. While both isolate circuits, a mechanical relay uses a physical electromagnet and moving contacts (clicking sound). An optocoupler uses light and has no moving parts. Optocouplers are faster and last longer but handle much less current than relays.3. How do you use an optocoupler for analog signals?While mostly used for digital switching, linear optocouplers exist. To send audio or analog data, you set up a specific bias current (standing current) through the LED and modulate that current with your signal. Specialized "Linear Optocouplers" use feedback photodiodes to linearize the output.4. How do I ensure the optocoupler switches fully (Saturation)?To use an optocoupler as a solid switch, you must drive it into "saturation." This means ensuring the input current ($I_F$) is sufficient and the output collector load resistor is high enough so that the phototransistor turns completely on. Always check the CTR curve in the datasheet.5. Are optocouplers analog or digital?They are fundamentally analog devices (light intensity varies with current), but they are most commonly used in digital applications (On/Off switching). Specialized high-speed digital optocouplers (logic-output) are available specifically for data transmission. ul { margin-bottom: 20px; } li { margin-bottom: 10px; } .caption { text-align: center; font-size: 14px; color: #7f8c8d; margin-top: -15px; margin-bottom: 25px; font-style: italic; } .note-box { background-color: #e8f6f3; border-left: 5px solid #1abc9c; padding: 15px; margin: 20px 0; font-size: 16px; } .warning-box { background-color: #fff3cd; border-left: 5px solid #ffc107; padding: 15px; margin: 20px 0; } strong { color: #d35400; } .faq-item { margin-bottom: 20px; background: #fff; padding: 15px; border: 1px solid #eee; border-radius: 5px; } .faq-question { font-weight: bold; color: #e67e23; font-size: 18px; display: block; margin-bottom: 10px; }
Kynix On 2022-01-12 
Connectors

Automotive Connectors Basic and Performance Standards Overview

Introduction Automotive connectors are a component that very common for electronic engineering technicians. Its function is very simple: it sets up a bridge of communication between the blocked or isolated circuits in the circuit, so that the current flows and the circuit realizes the predetermined function. The form and structure of automotive connectors are ever-changing. They are mainly composed of four basic structural components, namely: contacts, shells (depending on the types), insulators, and accessories. Common Automotive Electrical Connections Catalog Introduction Ⅰ Automotive Connectors Ⅱ Basic Structure Ⅲ Design Criteria Ⅳ Automotive Connector Development Trends Ⅴ Connector Selection Ⅵ Performance Standard for Automotive Electrical Connectors Ⅶ FAQ Ⅰ Automotive Connectors There are nearly 100 types of connectors used in general automobiles, and there are hundreds of connectors used in a single model. As people have higher and higher requirements for safety, environmental protection, comfort, and intelligence in automobiles, the application of automotive electronic products is increasing, which make the number of automotive connector applications increase. Figure 1. Automotive Connector Type Ⅱ Basic Structure The four basic structural components of automotive connectors, it is these four basic structural components that enable automotive connectors to act as a bridge to make cars run stably.First, the contact piece is the core part of the automobile connector to complete the electrical connection function. Generally, a contact pair is composed of a male contact piece and a female contact piece, because the electrical connection is completed by the insertion of two parts.The male contact is a rigid part, and its shape is cylindrical (round pin), square column (square pin) or flat (insert). The male contacts are generally made of brass and phosphor bronze. The female contact piece is the jack, which is the key part of the contact pair. It relies on the elastic structure to elastically deform when it is inserted into the pin to generate elastic force to form close contact with the male contact piece to complete the connection. There are many types of jack structures, including cylindrical type (split slot, necking), tuning fork type, cantilever beam type (longitudinal slotting), folding type (longitudinal slotting), box type (square jack) and hyperboloid wire spring jacks, etc.Second, the shell, is the outer cover of the automotive connector. It provides mechanical protection for the built-in insulating mounting plate and pins, and provides alignment when the plug and socket are inserted, thereby fixing the connector to the device.Third, insulators, are also often referred to as automobile connector bases or inserts. Its function is to arrange the contacts according to the required position and spacing, and to ensure the insulation performance with the shell. Good insulation resistance, withstand voltage performance and ease of processing are the basic requirements for selecting insulating materials to be processed into insulators.Fourth, accessories, are divided into the structural part and the installation part. Structural accessories such as retaining rings, positioning keys, positioning pins, guide pins, coupling rings, cable clamps, sealing rings, gaskets, etc. Mounting accessories such as screws, nuts, spring rings, etc. Most of the accessories have standard parts and general parts.   Ⅲ Design Criteria With the rapid development of the automobile industry, various functional parts and various components on the automobile are constantly developing in the direction of intelligence, refinement and reliability. The structural design, appearance design and material of automobile connectors are also proposed. higher requirement. Automotive connectors must meet the USCAR-20 standard, which is the performance standard of automotive electrical connector systems. It is necessary to stipulate that the electrical connector contact surface of automotive connectors should always be reliable throughout the service cycle, including the following factors:1) The material of the connector contacts is stable and reliable.2) Positive force stability.3) The voltage and current of the circuit are stable.4) The temperature requirements are within the specified range, including the surrounding temperature and its own temperature rise.5) Better robustness.6) It must be the same as the connector used for high-speed and long-distance communication computers, and the automotive connector must be able to work reliably under harsh conditions.7) Connector insertion force: below 20.5kg8) Connector retention force: 2.5kg or more9) Heat resistance: -40~120℃ Figure 2. Automotive Connectors Ⅳ Automotive Connector Development Trends The "Miniaturization", "High Speed" and "Intelligence" of connector products are the trends of future development. The future technological innovation of the industry is mainly concentrated in the following directions:1) Miniaturization DevelopmentThis technology is mainly developed for the miniaturization trend of connectors, and can be applied to micro-miniature connectors below 0.3mm, which belongs to the new varieties of MINI USB series products. It can be used for multi-contact expansion card slot connectors, which can meet and exceed the strict requirements of multi-contact surface mount technology butt joint coplanarity, with high accuracy and low cost.2) Wireless TransmissionThe high-frequency and high-speed wireless transmission of connector technology is mainly aimed at a variety of wireless device communication applications and has a wide range of applications.3) Simulation Application TechnologyIt is based on a variety of disciplines and theories, using computer and its corresponding software such as AutoCAD, Pro/E program stress analysis software as tools, through the establishment of product models and corresponding boundary conditions, to its mechanical, electrical, high-frequency simulation analysis and confirmation of other performances, thereby reducing the cost of product development failure caused by factors such as material selection and unreasonable structure, improving the development success rate, and helping to provide support for the realization of complex system applications for products.4) Connector Intelligence TechnologyThis technology is currently mainly used in DC series power connector products. Intelligent signal detection can be performed before power transmission to ensure that the positive and negative poles are turned on and the power is turned on after the plug is inserted in place. In the future, enterprises will need to develop similar intelligent technologies for other products because of the adverse consequences of arc damage and burn-in caused by conductive contact.5) Precision connector technologyPrecision connectors involve many aspects such as product design, process technology and quality control technology. The main technologies include the following aspects:a. Precision mold processing technology: Adopt CAD, CAM and other technologies, introduce high-precision processing equipment in the industry, and use personnel production experience and advanced equipment and technical means to achieve high-precision high-quality mold products.b. Precision stamping and injection molding technology: realize precise, efficient and stable all-round control and perfect surface quality of various stamping parts and injection molding parts to ensure product quality.c. Automated assembly technology: Through the application of precision control technology, semi-automatic testing machine technology, etc., the problem of manual operation of precision products is overcome and the core competitiveness is improved.6) Manufacturing Process ResearchThe competitiveness of products depends to a certain extent on the level of manufacturing technology. Continuously developing new manufacturing processes and improving existing production and processing technologies can greatly improve the manufacturing efficiency and quality assurance capabilities of products.a. Fine manufacturing process: This process is mainly aimed at technologies such as small spacing and thin thickness. Some companies have carried out research on the process of connectors with a spacing of less than 0.4mm. This type of technology can ensure that the company reaches the advanced level of the international industry in the field of ultra-fine manufacturing.b. Integrate development technology of light source signal and electromechanical structure. It can be applied to audio connectors placed in electronic components. By adding IC, LED and other electronic components to the audio connectors, which can also transmit analog signals and the function of digital signal. It breaks through the current design of audio connector conduction transmission in the form of mechanical contact.c. Low temperature and low pressure molding process technology. The sealing and physical and chemical properties of the hot-melt material are used to achieve the functions of insulation and temperature resistance. After packaging, the wire protects the welding point from being pulled by external forces, and the packaging of the DC connector body and the wire has a insulation, temperature resistance, impact resistance and other functions ensure product quality and reliability, and will continue to be developed and applied in different products in the future. Figure 3. Automotive Connectors Ⅴ Connector Selection 1) Electrical FactorCurrent requirements: high current, low current, signal level; Steady state, cyclic, transient.They determine the type of terminal/size of contact segment/plating (0.64mm to 8.0mm pin and male terminal).Wire diameter/insulation requirements: voltage drop and/or corrosion resistance, which determine the center distance of the connector.2) Location/EnvironmentTemperature: Engine compartment – sealed, ambient temperature >105℃; vibration, fluid compatibility, passenger compartment – unsealed, ambient temperature <85℃.Sealing: Potential for high pressure jet/splash, potential for immersion, humidity; fluid type, sealed or not for device connectors.3) StandardStandards: Customer StandardsInstitutional StandardsDomestic StandardsInternational StandardsConnector performance test requirements are included in system-level specifications. For GM, Ford and Chrysler are usually USCAR specifications, that is, engine-related applications have relatively high vibration requirements. Other OEMs generally have their own standards (similar to USCAR). What’s more, equipment-side suppliers are responsible for the performance of mating-side connectors.4) Customer PreferencePreferred product strategy: Reduce cost of connector systems with different methods:Ford: Design competition for door connectors.Ford: Prefer terminal design/supplier (focus on contact interface).General: Prefer the terminal design (focus on the hole position of the connector).Chrysler: Strategies for favoring terminal/plastic Part suppliers.5) Regional preferenceNorth America: USCAR Drawing/Performance/Design Criteria —Tangless Terminals, TPA, CPA regulations. In many instances the harness supplier has a significant influence.Europe: Design influence of contact contacts/development with major OEMs; preference for two-piece contacts, even if cost pressures and North American porting operations force OEMs to consider U.S technology, that is, accepting Tangled contacts. Long-term relationships between OEMs and suppliers.Asia: Traditionally influenced by Toyota. Focus on assembly ability (ergonomics) that affects quality assurance; North America influences China to change the status, like low-cost solutions.6) Physical factorsSize, number of circuits, mating position, wire harness docking or equipment connection, mechanical main features: levers, bolts; manual docking capability; multiple types of connectors for high input/output applications.7) AssemblyWire Harness: Insertion force of connectorVisual, audible and tactile operational feedback for users. Figure 4. Terminals & Connectors Ⅵ Performance Standard for Automotive Electrical Connectors For a connector, the specification parameters such as the ambient temperature, current carrying capacity, protection level, anti-vibration level, etc. will be defined in its specifications at the beginning of research and development, because when the connector is selected according to different requirements. The following are three most widely used standards USCAR-2-6, QC/T1067-2017 and GMW3191-2012.🔺QC/T-1067 Temperature Classification Class Ambient Operating Temperature Typical Installation Position A -40~85℃ Passenger compartment (Not recommended) B -40~100℃ Passenger compartment C -40~125℃ On engine D -40~150℃ On engine (hot locations) E -40~175℃ and above Negotiate   🔺QC/T-1067 Vibration Classification Class Typical Installation Position V1 On elastic parts of the body but not to the engine V2 On engine but not to heavily vibrating parts V3 Components subject to serve vibration V4 Components subject to extreme vibration V5 On Wheel   🔺QC/T-1067 Sealing Classification Class Description Typical Installation Position S1 Unsealed Passenger compartment or trunk S2 Sealed Exposed areas S3 Sealed (with high pressure spray) Exposed areas (with high pressure spray)   🔶GMW-3191 Temperature Class Class Ambient Operating Temperature Typical Installation Position 1 -40~85℃ Passenger compartment or trunk 2 -40~100℃ Underhood, chassis 3 -40~125℃ On engine, transmission 4 -40~150℃ On engine (hot locations) 5 Per connector CTS Per CTS GTS=Component Technical Specification   🔶GMW-3191 Vibration Class Class Typical Installation Position 1 On body or chassis 2 On engine 3 On wheel, Unsprung Mass 4 Severe applications (e.g., ECU, Throttle Body, EGR) 5 Transmission (internal and external) ECU=Engine Control Unit, EGR=Exhaust Gas Recirculation   🔶GMW-3191 Sealing Class Class Description Typical Installation Position 1 Unsealed Unsealed Passenger Compartment or trunk 2 Submersion Sealed Underhood or exposed areas, including door 3 High Pressure Spray Protected Exposed areas where high pressure spray is expected   🔻USCAR-2 Temperature Classification Class Ambient Operating Temperature Typical Application T1 -40~85℃ T1 is not recommended for new applications T2 -40~100℃ Typical suitable for use in passenger component T3 -40~125℃ Typical suitable for use in engine component T4 -40~150℃ Needed for some on-engine applications near hot components T5 -40~175℃ For use as needed   🔻USCAR-2 Vibration Classification Class Common Name Typical Application Other Requirements Met V1 Chassis Profile Components on sprung portions of vehiele not coupled to Engine None V2 Engine Profile Components coupled to Engine with no severe vibration possible Pass on V2 - pass also for V1 V3 Severe On-Engine Components subject to serve vibration Pass on V3 - pass also for V1 and V2 V4 Extreme Vibration Used as needed to correlate to extreme vibration areas Pass on V4 - pass also for V1 and V2 and V3 V5 Unsprung Component Wheel-mounted components None   🔻USCAR-2 Sealing Classification Seal Class Common Name Typical Application S1 Unsealed S1 is suitable for use in passenger components or other dry areas on a vehicle such as the trunk S2 Sealed S2 (meets requirements of 5.9.7) is for exposed locations S3 Sealed (with high pressure spray) S3 is for exposed locations. It meets Sections 5.9.7 plus 5.6.7; S3 is applications when robustness to direct splash is needed Regarding the vibration test, the main purpose is to check whether the performance of the connector system under the simulated actual vehicle vibration conditions meets the requirements. In the case of vibration or in shock, it will cause the coating wear of the terminal contact surface, the positive pressure attenuation, the failure of the mechanical system performance of the supporting plastic material, etc. Therefore, it is necessary to continuously monitor the contact resistance in the vibration experiment and ensure that it does not exceed 7Ω (or 1Ω) in the line for more than 1 microsecond. According to the definition and analysis of the connector using environment through the above different standards, it is necessary to understand that the use position, the temperature level, vibration level, and protection level should be considered to make the best choice.   Ⅶ FAQ 1. What are connectors in cars?Connectors used in automotive applications enable everything from stereo systems to drivetrains. As these systems become more connected, more automated, and more energy-efficient, they require connectors that can deliver high-speed connectivity in rugged, lightweight, and easy-to-install designs. 2. How do I choose a car connector?There are several criteria to consider when selecting electrical interconnect components, including:Current rating (current density)Connector size (circuit density)Engagement forceWire sizeConfiguration and circuit sizeOperating voltageAgency approvalsPrice per circuit 3. What are the different types of automotive electrical connectors?Automotive TerminalsContactsCrimp Wire Pins, Tabs & FerrulesFoil TerminalsInterconnect DevicesKnife DisconnectsMagnet Wire TerminalsPCB Terminals 4. How many connectors does a car have?Today, there are an average of 274 connectors in a vehicle. 5. Are all car stereo connectors the same?All aftermarket car stereos can use the same car stereo wiring harness, but it all depends on what the owner of the vehicle wants to do for one main reason. 6. What is uscar standard?SAE USCAR-2. May 1, 2004. PERFORMANCE STANDARD FOR AUTOMOTIVE ELECTRICAL CONNECTOR SYSTEMS. Procedures included within this specification are intended to cover performance testing at all phases of development, production, and field analysis of electrical terminals, connectors, and so on.
kynix On 2022-01-11 
Motors, Solenoids, Driver Boards/Modules

Servo Motors:Control with an Arduino and Raspberry Pi

Introduction In this lesson, we'll look at what a servo motor is and how it works. First, let's define what a servo motor is and look at some of the unique characteristics of the different types of servo motors and their applications. You will also learn how to control Servo Motors with an Arduino and a Raspberry Pi in this blog. Introduction Ⅰ What is a Servo Motor? Ⅱ Servo Motor Related Video: Ⅲ Types of Servo Motors 3.1 AC or DC 3.2 Brushed or Brushless 3.3 Synchronous or Asynchronous Ⅳ Servo Motor Working Principle Ⅴ Applications of Servo Motors Ⅵ Difference Between Stepper Motor and Servo Motor  Ⅶ Servo Motors Control with an Arduino  7.1 Experiment 1 Ⅷ Control with  Raspberry Pi 8.1 PWM (Pulse Width Modulation) 8.2 Components Required 8.3 Circuit Diagram 8.4 Working and Programming Explanation 8.5 Code Ⅸ FAQ   Ⅰ What is a Servo Motor? A servo motor is a self-contained electrical device that rotates machine parts with high efficiency and precision. This motor's output shaft can be moved to a specific angle, position, and velocity that a standard motor cannot. The Servo Motor  combines a standard motor with a sensor to provide positional feedback. The most important component of the Servo Motor  designed and used specifically for this purpose is the controller  . Figure1:Servo Motor      Ⅱ Servo Motor Related Video:   How servo motor works   Servo Motor Video Description: This movie gives an overview of how RC servo motor works and how it's made.   Ⅲ Types of Servo Motors Servo motors are classified into two types based on their application: AC servo motors  and  DC  servo motors. There are three major factors to consider when evaluating servo motors. The first type of consideration is the current type –  AC  or  DC – and the second type of consideration is the type of commutation used, whether the motor uses brushes. The third type of consideration is the motor's rotating field, the rotor, and whether the rotation is synchronous or asynchronous.   3.1 AC or DC Let's start with the first servo consideration. The most fundamental classification of a motor is based on the type of current it will use. When it comes to performance, the primary distinction between  AC and DC motor  s is their inherent ability to control speed. Figure2:DC or AC Servo Motor  With a constant load, the speed of a DC motor  is directly proportional to the supply voltage. The frequency of the applied voltage and the number of magnetic poles determine the speed of an alternating current motor.   Figure3:DC or AC Servo Motor  While both AC and DC motor  s are used in servo systems, AC motors  can handle more current and are more commonly used in servo applications such as robots, in-line manufacturing, and other industrial applications requiring high repetitions and precision.   3.2 Brushed or Brushless The next step is to decide whether to use a brushed or brushless finish. A DC Servo Motor  can be commutated mechanically with brushes, electronically without brushes, or mechanically with a commutator. Brushed motors are less expensive and easier to operate in general, whereas brushless designs are more reliable, have higher efficiency, and are quieter.   Figure4:brushed or brushless Servo Motor  A commutator is a rotary electrical switch that reverses the current direction between the rotor and the drive circuit on a regular basis. It is made up of a cylinder made up of multiple metal contact segments on the rotor. Two or more electrical contacts known as "brushes" made of a soft conductive material such as carbon press against the commutator, making sliding contact with commutator segments as it rotates. Figure5:brushed or brushless Servo Motor  While the majority of servo motors are AC brushless designs, brushed permanent magnet motors are occasionally used as servo motors due to their simplicity and low cost. The permanent magnet DC motor  is the most common type of brushed DC motor  used in servo applications. Figure6:brushed or brushless Servo Motor  Brushless DC motors replace the physical brushes and commutator with an electronic commutation method, typically using Hall effect sensors or an encoder. Figure7:brushed or brushless Servo Motor  AC motors are generally brushless, though some designs do have brushes and are mechanically commutated, such as the universal motor, which can run on either AC or DC power. Figure8:brushed or brushless Servo Motor      3.3 Synchronous or Asynchronous While DC motor  s are generally classified as brushed or brushless, AC motors  are often distinguished by the rotational speed of their synchronous or asynchronous field. If we recall from the AC-DC discussion, the frequency of the supply voltage and the number of magnetic poles determine the speed of an AC motor. This speed is known as the synchronous speed. As a result, in a synchronous motor, the rotor rotates at the same rate as the rotating magnetic field of the stator. Figure9:synchronous or asynchronous Servo Motor  In an asynchronous motor, also known as an induction motor, the rotor rotates at a slower rate than the stator's rotating magnetic field. However, the speed of an asynchronous motor can be varied using a variety of control methods, including changing the number of poles and changing the frequency, to name a few. Figure10:synchronous or asynchronous Servo Motor      Ⅳ Servo Motor Working Principle A servo is made up of a motor (either DC or AC), a potentiometer, a gear assembly, and a control circuit. First and foremost, we use gear assembly to reduce RPM and increase motor torque. Assume that at the initial position of the servo motor shaft, the position of the potentiometer knob is such that no electrical signal is generated at the potentiometer's output port. An electrical signal is now applied to the error detector amplifier's other input terminal. The difference between these two signals, one from the potentiometer and one from other sources, will now be processed in a feedback mechanism and output will be provided in the form of an error signal. This error signal serves as the motor's input, and the motor begins to rotate. The motor shaft is now connected to the potentiometer, and as the motor rotates, so does the potentiometer, generating a signal. As a result, as the potentiometer's angular position changes, so does its output feedback signal. After a while, the position of the potentiometer reaches a point where the output of the potentiometer is the same as the external signal provided. There will be no output signal from the amplifier to the motor input because there is no difference between the externally applied signal and the signal generated at the potentiometer in this condition, and the motor will stop rotating. Figure11:synchronous or asynchronous Servo Motor    Ⅴ Applications of Servo Motors Servo Motors are used in a variety of applications, some of which are listed below:In robotics, the servo motor is used to activate movements, giving the arm its precise angle.The servo motor is used to start, move, and stop conveyor belts that transport the product through multiple stages. As an example, consider product labeling, bottling, and packaging.The servo motor is built into the camera to correct a lens and improve out-of-focus images.In a robotic vehicle, the servo motor is used to control the robot wheels, producing enough torque to move, start, and stop the vehicle as well as control its speed.In a solar tracking system, the servo motor is used to correct the angle of the panel so that each solar panel faces the sun.The servo motor is used in metal forming and cutting machines to provide milling machines with precise motion control.Textiles use servo motors to control spinning and weaving machines, knitting machines, and looms.The Servo motor is used in automatic door openers in public places such as supermarkets, hospitals, and theaters to control the door.   Ⅵ Difference Between Stepper Motor and Servo Motor  Comparison Chart Basis for ComparisonStepper MotorServo MotorBasicStepper motor operates in steps.It is continuous operating machine.System configurationOpen loopClosed loopPower requirementMoreComparatively lessDesignSimpleComplexAbility to responseHighComparatively lowCostInexpensiveExpensiveReliabilityMoreLessNoise and vibrationHighComparatively lessOperating speedSlowFastFeedback mechanismNot existExistHeat generationMoreComparatively lessNumber of polesGenerally 50 to 150Around 4 to 12Life spanMoreLessDamage due to overloadLess prone to get damaged.Comparatively more prone to get damaged.Torque producedHighLowEfficiencyLessMoreTolerance towards moment of inertiaHighLowApplicationsIn gaming, textile, welding machineries, medical and 3D printing equipments, etc.In robotics, antenna positioning systems, automatic doors, cameras, remote controlled equipments, etc. Ⅶ Servo Motors Control with an Arduino  You can connect small servo motors directly to an Arduino  to control the shaft position very precisely. Most servo motors have the following three connections: Black/Brown ground wire.Red power wire (around 5V).Yellow or White PWM wire. In this experiment, the power and ground pins will be connected directly to the Arduino  5V and GND pins. The PWM input will be connected to a digital output pin on the Arduino,  7.1 Experiment 1 Hardware Required1 x TowerPro SG90 servo motor1 x Arduino  Mega25603 x jumper wires   Wiring Diagram The best thing about servo motors is that they can be directly connected to an  Arduino ,  Connect the motor to the Arduino  in the manner shown in the table below: Servo red wire – 5V pin Arduino          Servo brown wire – Ground pin Arduino          Servo yellow wire – PWM(9) pin Arduino  Caution: Do not try to rotate the servo motor by hand, as you may damage the motor.     Figure12: Wiring Diagram Code When the program starts, the servo motor will slowly rotate from 0 to 180 degrees, one degree at a time. When the motor has rotated 180 degrees, it will start rotating in the opposite direction until it reaches the home position. #include //Servo library Servo servo_test; //initialize a servo object for the connected servo int angle = 0; void setup() { servo_test.attach(9); // attach the signal pin of servo to pin9 of arduino} void loop() { for(angle = 0; angle < 180; angle += 1) // command to move from 0 degrees to 180 degrees { servo_test.write(angle); //command to rotate the servo to the specified angle delay(15); } delay(1000); for(angle = 180; angle>=1; angle-=5) // command to move from 180 degrees to 0 degrees { servo_test.write(angle); //command to rotate the servo to the specified angle delay(5); } delay(1000);} Ⅷ Control with  Raspberry Pi In this tutorial, we will use the Raspberry Pi  to control a servo motor. Before we get to the servo, let's talk about PWM because it's the basis for controlling a servo motor.   8.1 PWM (Pulse Width Modulation) PWM is an abbreviation for 'Pulse Width Modulation.' PWM is a technique for obtaining variable voltage from a steady power supply. Consider the circuit below to better understand PWM.   Figure13:PWM   In the figure above, if the switch is closed continuously for a period of time, the LED will be 'ON' during that time. If the switch is closed for half a second and then opened for the next half a second, the LED will be turned on only for the first half a second. The percentage of time the LED is on over the total time is known as the  Duty Cycle , and it can be calculated as follows:   Duty Cycle =Turn ON time/ (Turn ON time + Turn OFF time) Duty Cycle = (0.5/ (0.5+0.5)) = 50% As a result, the average output voltage will be 50% of the battery voltage. When we increase the ON and OFF speed to a certain level, the LED will dim instead of being ON and OFF. This is because our eyes cannot clearly detect frequencies higher than 25Hz. Consider a 100ms cycle with an LED that is off for 30msec and on for 70msec. We will have 70% stable voltage at the output, so the LED will glow continuously at 70% intensity. The Duty Ratio ranges from 0 to 100. '0' denotes complete inactivity, while '100' denotes complete activation. This Duty Ratio is critical for Servo Motor,  This Duty Ratio determines the position of the Servo Motor,    8.2 Components Required We're running Raspbian Jessie on a Raspberry Pi  2 Model B. All of the basic hardware and software requirements have already been discussed, and you can find them in the Raspberry Pi  Introduction; however, we will need: Connecting pins 1000uF capacitor SG90  Servo Motor  Breadboard   8.3 Circuit Diagram Figure14:Circuit Diagram If A1000F is not connected across the +5V power rail, the  PI  may shut down unexpectedly while controlling the servo.   8.4 Working and Programming Explanation Once everything is connected according to the circuit diagram, we can power on the  PI and begin writing the program in PYHTON. We will go over a few commands that we will use in the PYHTON program. We will import a GPIO file from the library, and the function below will allow us to program the GPIO pins on the PI. We're also renaming "GPIO" to "IO," so in the program, whenever we refer to GPIO pins, we'll say "IO." import RPi.GPIO  as IO When the GPIO pins that we are attempting to use are performing other functions. In that case, we'll get warnings while running the program. The following command instructs the PI to disregard the warnings and continue with the program. IO.setwarnings(False) We can refer to the GPIO pins of the PI by either their pin number on the board or their function number. On the board, for example, 'PIN 29' is 'GPIO5'. So we specify whether we want to represent the pin here by '29' or '5'. IO.setmode (IO.BCM) PIN39 or GPIO19 is selected as the output pin. This pin will provide PWM output. IO.setup(19,IO.OUT) After we have set the output pin, we must configure it as a PWM output pin. p equals IO. Power-Wave Modulation (PWM) (output channel, frequency of PWM signal) The above command is for configuring the channel as well as the frequency of the channel." 'p' is a variable that could be anything. We'll use GPIO19 as the PWM "Output channel," and the "Frequency of PWM signal" will be 50, because the SG90's working frequency is 50Hz. The command below is used to initiate PWM signal generation. 'DUTY CYCLE' is used to specify the 'Turn On' ratio, as previously explained. p.start(DUTYCYCLE) The following command is used to create a forever loop, which means that the statements inside the loop will be executed indefinitely.   8.5 Code import RPi.GPIO  as IO        # calling for header file for GPIO’s of PI import time                           # calling for time to provide delays in program IO.setwarnings(False)          # do not show any warnings IO.setmode (IO.BCM)            # programming the GPIO by BCM pin numbers. (like PIN29 as‘GPIO5’) IO.setup(19,IO.OUT)             # initialize GPIO19 as an output p = IO.PWM  (19,50)              # GPIO19 as PWM output, with 50Hz frequency p.start(7.5)                             # generate PWM signal with 7.5% duty cycle while 1:                                                       # execute loop forever                                             p.ChangeDutyCycle(7.5)                   # change duty cycle for getting the servo position to 90º         time.sleep(1)                                      # sleep for 1 second         p.ChangeDutyCycle(12.5)                  # change duty cycle for getting the servo position to 180º         time.sleep(1)                                     # sleep for 1 second         p.ChangeDutyCycle(2.5)                  # change duty cycle for getting the servo position to 0º         time.sleep(1)                                     # sleep for 1 second   Ⅸ FAQ 1. Are servo motors AC or DC? AC servo motors depend on an AC power source whereas DC Servo motors depend on DC power source (like Batteries). AC servo motors performance is dependent upon voltage as well as frequency whereas DC servo motors performance mainly relies upon voltage alone. 2. Can servo motors rotate 360? The position of the servo motor is set by the length of a pulse. ... The end points of the servo can vary and many servos only turn through about 170 degrees. You can also buy 'continuous' servos that can rotate through the full 360 degrees. 3. Which motor is used in servo motor? While the majority of motors used in servo systems are AC brushless designs, brushed permanent magnet motors are sometimes employed as servo motors for their simplicity and low cost. The most common type of brushed DC motor used in servo applications is the permanent magnet DC motor.
kynix On 2022-01-08 

Kynix

  • How to purchase

  • Order
  • Search & Inquiry
  • Shipping & Tracking
  • Payment Methods
  • Contact Us

  • Tel: 00852-6915 1330
  • Email: info@kynix.com
  • Follow Us

authentication