Phone

    00852-6915 1330

The Kynix Blog

Stay Ahead with Expert Electronics Insights,
Industry Trends, and Innovative Tips

Amplifiers

The Basic Knowledge of Bluetooth Amplifiers

Ⅰ IntroductionYou can image this case: If you drive an older vehicle, chances are you don't have Bluetooth. If you don't want to remove your factory stereo to install an aftermarket Bluetooth stereo, a Bluetooth amp is ideal. Not only will you be able to add Bluetooth to your vehicle, but you will also be able to amplify your speakers and improve overall system performance.CatalogⅠ IntroductionⅡ Bluetooth Amplifier Related  Video:Ⅲ What Is A Bluetooth Amplifier?Ⅳ What Is Bluetooth?Ⅴ Why You Need a Bluetooth AmplifierⅥ Common ApplicationsⅦ How Bluetooth Amplifiers Works?Ⅷ Three Things You Need to ConsiderⅨ Recomendation  Bluetooth Amplifiers9.1 Sony STRDH190 2-CH Stereo Bluetooth Audio Amplifier9.2 Pyle Karaoke Wireless Bluetooth Amplifier9.3 Fosi Audio Store BT20A Stereo Audio AmplifierⅩ FAQ   Ⅱ Bluetooth Amplifier Related  Video:Bluetooth AmplifierBluetooth Amplifier Video Description:Amplifier Bluetooth simple cocok buat kamu yang nggak mau ribet, cuma pakai speaker woofer 4-6inch dan 3-4inch buat vocal kamu bisa menikmati musik dengan banyak fitur.  Ⅲ What Is A Bluetooth Amplifier?Understanding technology is a difficult and time-consuming task. Because there is never a shortage of products brought to market. It is a tough task of staying on top. For instance, the Bluetooth headphone amp is such a product that it hasn't been around for very long, it's a good idea to start by defining it.A Bluetooth amplifier is a device that is intended to convert your favorite pair of wired headphones into wireless Bluetooth headphones by utilizing Bluetooth technology's radio frequency communication.Bluetooth AmplifierⅣ What Is Bluetooth?Bluetooth emerged as a technology in Sweden in the late 1990s. Its original goal was to limit the need for unnecessary cable connections between devices from various manufacturers.For example, if you have an Apple smartphone and a JBL or Bose speaker, it may be difficult to transfer an audio signal from one to the other as the two devices use rather proprietary connections.Bluetooth, on the other hand, allows devices to communicate with one another via short-range radio frequencies that alternate hundreds of times per second. This also contributes to security, making Bluetooth connections a very secure way to transfer data.Bluetooth Wireless Technology (BWT) has nearly limitless potential, particularly in the Internet of Things (or IoT), and is now used in smart speakers, smart home implementations, and a variety of other devices.Bluetooth Ⅴ Why You Need a Bluetooth AmplifierStream Music Through Your System Directly from Your AmplifierEliminate the Need of an Expensive Head UnitBoost Your System Ⅵ Common ApplicationsOne of the benefits of using a Bluetooth amplifier is that the device can offer you flexibility. What is more, ,While a Bluetooth amplifier is an excellent addition to your car's sound system, they are also ideal for marine and power sports applications, as well as just about any other application that requires an amplifier.amplifierIn the CarA Bluetooth amplifier is an additional, and possibly the most efficient, way to add Bluetooth to your vehicle. Many older stereos lack built-in Bluetooth simply because it was not a common feature at the time. Until Bluetooth amplifiers were released, the only way to add Bluetooth to your vehicle was to purchase a new, potentially expensive, Bluetooth head unit or a Bluetooth adapter that was compatible with your stereo. With a Bluetooth amplifier, you can kill two birds with one stone. You'll add the convenience of wireless Bluetooth streaming to your vehicle while also enhancing your current system. Some Bluetooth amplifiers also include a wired microphone, allowing you to make hands-free phone calls.On the BoatBluetooth amplifiers aren't just for use in your car; they're also great for listening to music while boating. Many boats don't even have a sound system, so if you want to add one, you'll probably have to build it from the ground up. A marine-rated Bluetooth amplifier eliminates the need for a head unit, saving you money while improving the overall performance of the system. And, just like in a car, if your boat has a sound system but the head unit isn't Bluetooth enabled, a Bluetooth amplifier can save you from having to replace the stereo.On the ATVAnyone interested in outdoor power sports is aware that free space is extremely limited. Because of this, installing a sound system in an ATV, UTV, SSV, or motorcycle can be a difficult task, and any space-saving measures you can take are invaluable. A Bluetooth amp can combine your source unit and amplifier into a single piece of equipment while still allowing you to play music through your system. Ⅶ How Bluetooth Amplifiers Works? How Bluetooth Amplifiers WorksA Bluetooth amplifier is a very simple piece of equipment. It functions and installs similarly to any other amplifier (they can be connected to a source unit, but it is not required), but it includes an integrated Bluetooth module that allows you to connect virtually any Bluetooth-enabled device (smartphones, tablets, etc.) to it wirelessly. Bluetooth amps eliminate the need for a traditional head unit by allowing the amp to function as both the transmitter and the receiver.  Ⅷ Three Things You Need to ConsiderWatts of amplifier: This number indicates the maximum power output of your amplifier. As the power output of the speakers you're going to connect to your amplifier increases, so should the power output of your amplifier. Otherwise, you won't be able to get good sound quality. The total power output of your amplifier must be greater than or equal to the total power required by all of the speakers you intend to connect to it.Bluetooth version: Bluetooth 5.0 is the most recent Bluetooth version. Obsolete Bluetooth versions are not recommended for purchase because they are difficult to pair and have a limited operating range. Furthermore, you will not experience faster data transfer speeds when compared to the most recent version.Impedance: The impedance of your amplifier determines the quality of music you will hear. It should always be the same as the impedance of your speakers. As a result, always ensure that the impedance of your amplifier is equal to the total impedance of all the speakers you intend to connect to it. Ⅸ Recomendation Bluetooth AmplifiersThere are all kind of Bluetooth Amplifiers and the following three are the most popular at the present. This part will introduce their specifications, pros and cons.9.1 Sony STRDH190 2-CH Stereo Bluetooth Audio AmplifierSony STRDH190 2-CHSONY is without a doubt the best brand in the world when it comes to electronic items. If you are willing to pay a premium, there is no other brand that can compete with the quality of SONY products. Another example is their STRDH190 2-CH HOME STEREO RECEIVER.You can connect two pairs of speakers to it if A/B switching is enabled. With A+B mode, you can also switch between A and B to play speakers separately in two different rooms, or you can play all four speakers at once in the same room. It also has a full-size 14" headphone jack for listening to music through a headset.The STRDH190-2 AMPLIFIER features HI-RES AUDIO, which allows you to hear music as if the artist were performing in front of you. It has a high-capacity transformer that produces clear, distortion-free sound. Its redesigned design reduces transmitted vibrations from speaker sound pressure, providing you with more focused and powerful sound.This amplifier also has an FM RADIO feature. It comes with 30 pre-programmed radio channels. Its remote-control feature allows you to change audio settings from a distance, making you feel less tired and more at ease. The STRDH 190 2-CH Bluetooth amplifier has a low 5 14" height and will easily fit into your A/V cabinets. SpecificationsType: Amplifier with two channelsInput: Bluetooth input/4 RCA inputs/3.5mm aux inputImpedance: 6-16 ohm impedanceMaximum o/p power: 100 watts x 2 Work AC voltage range: 120-230 voltsRemote control and an FM antenna are included as extras.Dimensions: 11x17x5.2inches17 pound weightWarranty period: 12 monthsProsHigh output powerRemote control capabilityConnects to paired Bluetooth devices automatically.The FM tuner automatically searches for channels in your area.ConsLarge size and weightExpensive in terms of price. 9.2 Pyle Karaoke Wireless Bluetooth AmplifierPyle Karaoke WirelessPyle is a leading producer of high-quality home audio, car audio, and Pro Audio DJ speaker systems. To meet the diverse needs of consumers, the American brand creates a wide range of audio systems with advanced features.Pyle's Bluetooth amplifier has a power rating of 500w and is designed for amplifying multiple speakers with impedances ranging from 4 to 8 ohms. Furthermore, the amplifier has four channels, making it ideal for your PA and home theater system. It has Bluetooth version 4.0 and a decent range for pairing with all of the latest smart devices such as smartphones, laptops, and PCs.The Bluetooth amplifier has 7 input ports for a variety of connectivity options. There is a USB port, a micro SD slot, an FM radio, an AUX port, an MP3 slot, an audio port, and a REC. In addition, there is subwoofer output (L/R) connectors and two 14-inch microphone inputs.The amplifier includes a talk-over function for voice-over, announcements, and paging. When you activate the talk-over mode, the audio will be paused so that you can speak. The crisp buttons and rotary knob make the amplifier simple to use. You can adjust the equalization and volume using the rotary knob. The package also includes a remote control for controlling the amplifier from a distance.Despite the fact that the warranty period is not explicitly stated on the product page, all Pyle products come with a one-year warranty from the date of purchase. SpecificationsAmplifier with four channelsBluetooth/FM radio/AUX/two 14-inch microphone inputs/headphone jack/MP3/USB/SD card inputMaximum o/p power: 500 watts20Hz to 20kHz frequency response4 to 8 ohms in impedanceUp to 30 radio station presets are available.>81 dB signal-to-noise ratioRemote control/FM antenna is a unique feature.Dimensions: 13 x 9.84 x 3.54 inches10.3 pounds1-year warrantyProsProvides four channelsRemote control is used to control the unit from a distance.The FM tuner has an LCD.Wireless range of more than 40 feetConsUses an older Bluetooth version 4.0A bit heavy  9.3 Fosi Audio Store BT20A Stereo Audio AmplifierFosi Audio Store BT20AA FOSI product is next on the list of best Bluetooth amplifiers. This time, it's the BT20A amplifier, which has a maximum output of 200 watts. This allows you to use the same amplifier to power two passive speakers of 100 watts each.It has a built-in CSR64215 chip that provides a strong and stable Bluetooth connection with a range of 50 feet. You will enjoy exceptional music clarity thanks to the TPA3116D2 chip, which provides harmonic distortions of less than 0.04 percent even at high volumes.Again, using the bass and treble control knobs, you can adjust the music output to your liking. It also has a built-in power circuit that prevents sparking when you plug in your amplifier, making it safe to use.The sleek curved edges design of the FOSI BT20A is another feature that draws customers in. This allows you to handle it comfortably without experiencing any sharp pain in your palms. SpecificationsClass D, two-channel amplifierBluetooth and RCA inputs are available.2-8 ohm impedanceMaximum o/p power: 2 x 100 watts (200watts max)AC 110-240 volts is the working voltage.24v DC/4.5A power adapterA unique feature is that it includes a Bluetooth antenna.Dimensions: 5.2 x 3.54 x 1.42 in.2.09-pound weightPros18-month warrantyPowerful output.The bluetooth range is greater than that of the bt10a amplifier.Curved round edges are gentle on your hands.ConsThere is no remote control feature. Ⅹ FAQ1. What is a Bluetooth amplifier used for?A Bluetooth amplifier is designed to convert your favorite pair of wired headphones into wireless Bluetooth headphones by harnessing the radio frequency communication of Bluetooth technology.2. Can you connect an amplifier to a Bluetooth speaker?You can connect your receivers to a wireless speaker by using a Bluetooth transmitter. Plug the Bluetooth transmitter into the headphone port of the receiver. Turn on the receiver after plugging it into a power source.3. Is a Bluetooth amplifier worth it?If you can get yourself a decent set of Bluetooth headphones, then the answer to whether or not headphone amps are worth it is a resounding no. ... A headphone amp increases low voltage audio signal from a source device, allowing the signal to be converted into a sound wave by your headphones4. Do I need a Bluetooth amp?Bluetooth headphones will never need an amplifier, as the headphones themselves deliver the power to the drivers internally. Editor's note: this article was updated on June 14, 2021, to expand upon technical information.5. What is a Bluetooth audio amplifier?The product is simple, bluetooth audio transmitter equipment that can be connected to speakers and other devices, play music through bluetooth wireless transmission. ... At the same time, the product is a multifunctional amplifier for bluetooth speakers. 
kynix On 2021-11-25   790
Motors, Solenoids, Driver Boards/Modules

How to Design an Automatic Street Light?

Catalog Introduction How does an LDR work? How to setup ADC in STM32 Introduction The majority of streetlights and outdoor lights are typically operated manually. To manually turn on and off lights is not only risky, but it also wastes energy well as the timing of turning on and off is not optimized. Therefore, an optimized, efficient, and automatic light system is needed to efficiently control light brightness and turn on and off them automatically. In this article, a brief introduction to automatic control of light brightness is given as well as its practical implementation using an STM32 microcontroller and a cheap LDR sensor shown in Figure 1 is demonstrated. Figure 1 LDR breakout board In an automatic light control system, a light detection system is employed that senses the light intensity. If the application requires only to turn on and off a light system, then a threshold value of light intensity is set below which the light will turn on, and above it, the light will turn off. However, if the application is to control the light brightness based on the light intensity in the environment, then a PWM-controlled voltage is provided to the automatic light system. For light detection, a Light Dependent Resistor commonly known as LDR is used. LDR is a sensor whose resistance varies with the intensity of light. This property of an LDR can be used to sense darkness and brightness. Thus, it can be used to automatically control the turn on and off as well as the intensity of the light system. A typical LDR has a maximum resistance value in mega ohms and a minimum resistance value in several kilo ohms. Materials 1STM32 F401/F1032LDR sensor3Potentiometer4LED How does an LDR work? So, how exactly does an LDR operate? LDR works on the principle of photoconductivity. It is an optical phenomenon in which material conductivity increases when light falls upon it. When light or photon strikes the material, the electrons in the semiconductor material's valence band are stimulated to the conduction band. The incident photons must have energy larger than the bandgap of the semiconductor material to cause the electrons to move from the valence band to the conduction band. Hence as light intensity increases more and more electrons are excited to the conduction band which produces a large number of charge carriers. This means that more current will flow in the circuit, and as a result, the resistance will decrease. LDR resistance that changes with the intensity of light cannot be read in a microcontroller. To make it readable in a microcontroller the resistance is represented in terms of voltage. For this purpose, a circuit needs to be designed. Many circuits can be used for LDR. These can be based upon MOSFET, BJET, or an amplifier. However, the most commonly used circuit for LDR to convert its resistance into voltage is the voltage divider circuit. In this circuit, two resistors are installed in series. One side is attached to the positive terminal of the battery while the other is attached to the ground. The schematic of the voltage divider is shown in Figure 2. The output of the voltage divider can be fed to another circuit for other purposes such as a comparator i.e LM393. Usually, a comparator is used in on-off operations where the lights are needed to be turned on and off when a threshold value of light intensity is absorbed by the LDR. A typical circuit for the LM393 comparator is shown below. Figure 2 LM393 comparator usage with LDR The calculation for the voltage divider circuit is pretty easy. Referring to Figure 2, the following equation can be used to measure the output voltage.   In this equation, it is assumed that there is no load on the output voltage because that load can affect the output voltage. The output of the circuit is shown in Figure 2 where the change in resistance changes the voltage at the IN1+ pin of the comparator. As we know the voltage changes with the intensity of light. The circuit gives maximum voltage in complete darkness while minimum voltage when placed in bright light. The ADC of the STM32 controller can be used to sense the change in the voltage while the results obtained via ADC can be used to generate PWM. It is the PWM that generates average voltage and hence controls the intensity of light. In this article, both the manual and automatic light intensity control is demonstrated using an LED light. The program and procedure for automatic and manual light brightness control is same, the only difference is that in automatic light brightness control and LDR is used while in manual mode simple potentiometer is used. How to setup ADC in STM32 In STM32, ADC can be configured in three different ways. 1) Polling 2) Interrupt 3) DMA. Polling: In the polling method when ADC conversion starts the CPU operation halts. It is only after the conversion is completed, the CPU resumes working. Interrupt: The second method is by using the interrupt service routine. When ADC conversion competes, it generates an interrupt during which required functions are executed which in our case is to update the PWM value. DMA: The third method is to use direct memory access (DMA). In this method, the ADC directly transfers the data to memory bypassing the CPU altogether. This is the most efficient method of all as it does not involve CPU in the ADC operations and keeps it available for other tasks. In this experiment, we will be using interrupt methods which are both simple and efficient. Required hardware STM32 F401/F103LDR sensor (breakout board will be better)PotentiometerLED Let's build the program step by step Open STM32CubeIDE and start a new projectSelect an MCU which in our case is STM32F401CDGo to SYS -> Debug and select Serial Wire. Select SystTick in TimeBase Source. Go to RCC-> High Speed Clock and select Crystal/Ceramic Resonator.   Configure ADC1. Select IN1 and set it to be triggered by software. From the NVIC controller tab check the global interrupt box. Configure Timer 1 in PWM mode with output on CH1. Set the counter period register value to 839 and Prescaler register value to 100. This will ensure 1000 Hz frequency at the output.  The following formula can be used to set PWM frequency Setting Prescaler value to 99 while the required frequency is 1000 Hz, the ARR value can be calculated as 839.     Finally set the clock frequency to 84 MHz and select HSE as the clock source. And generate the code. The final code is given below #include "main.h"ADC_HandleTypeDef hadc1;TIM_HandleTypeDef htim1;void SystemClock_Config(void);static void MX_GPIO_Init(void);static void MX_ADC1_Init(void);static void MX_TIM1_Init(void);uint16_t AD_Data = 0; uint16_t minimumADC = 1000; uint16_t maximumADC = 3000;int main(void){  HAL_Init()  SystemClock_Config();  MX_GPIO_Init();  MX_ADC1_Init();  MX_TIM1_Init();  HAL_TIM_PWM_Start(&htim1, TIM_CHANNEL_1);  while (1)  {  HAL_ADC_Start_IT(&hadc1);  TIM1->CCR1 = ((AD_Data-minimumADC)*840)/maximumADC;  }}void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc){    AD_Data = HAL_ADC_GetValue(&hadc1);} Figure 3 Duty Cycle in Bright Light Figure 4 Duty Cycle in Low Light   Resources Automatics Light.zip
Victoria On 2022-10-06   786
General electronic semiconductor

What is A Resonator? Working Principle, Types, Comparison with Oscillator

This article is an introduction article on the resonator, information like its working principle, types, and some main parameters will be introduced in detail, also including the analysis of the difference between resonator and oscillator.     Catalog I. What is A Resonator? II. The Working Principle of Resonator      2.1 The Structure of Resonator      2.2 Piezoelectric Effect III. Resonator Types IV. Main Parameters of Resonator V. What’s the Difference Between Resonator and Oscillator? 5.1 General Difference Between Resonator &   Oscillator 5.2 Pros and Cons Analysis of Resonator &   Oscillator FAQ   I. What is A Resonator? This video introduce resonator in details.   A resonator refers to an electronic component that generates a resonant frequency.   A resonator refers to an electronic component that generates a resonant frequency. It is a typical passive device and requires a peripheral circuit to drive its work to generate a clock output.   Crystal resonators are commonly divided into quartz crystal resonators and ceramic resonators. The function of generating frequency has the characteristics of stability and good anti-interference performance and is widely used in various electronic products.   The frequency accuracy of quartz crystal resonators is higher than that of ceramic resonators, but the cost is also higher than that of ceramic resonators. The resonator mainly plays the role of frequency control, and all electronic products involve frequency transmission and reception require a resonator. The types of resonators can be divided into the in-line type and patch type according to their appearance. II. The Working Principle of Resonator   2.1 The Structure of Resonator   Quartz crystal resonator is a kind of resonant device made by using the piezoelectric effect of quartz crystal (a crystal of silicon dioxide).   Its basic composition can be roughly described as follows: cut a thin slice (referred to as a wafer, which can be square, rectangular or circular, etc.) from a piece of quartz crystal at a certain azimuth angle, and coat silver layers as electrodes on its two corresponding surfaces. Weld a lead wire on each electrode to the pin, and add a package shell to form a quartz crystal resonator. Its products are generally packaged in metal shells, but also in glass, ceramic or plastic packages.   2.2 Piezoelectric Effect   If an electric field is applied to the two electrodes of the quartz crystal, the wafer will be mechanically deformed. Conversely, if mechanical pressure is applied to both sides of the wafer, an electric field will be generated in the corresponding direction of the wafer. This physical phenomenon is called the piezoelectric effect.   If an alternating voltage is applied to the two poles of the wafer, the wafer will produce mechanical vibration, and at the same time, the mechanical vibration of the wafer will produce an alternating electric field. In general, the amplitude of the mechanical vibration of the wafer and the amplitude of the alternating electric field is very small, but when the frequency of the applied alternating voltage is a certain value, the amplitude is obviously increased, which is much larger than the amplitude at other frequencies. This phenomenon is called piezoelectric resonance, which is very similar to the resonance phenomenon of the LC circuit. Its resonant frequency is related to the cutting method, geometry, and size of the wafer. III. Resonator Types   Quartz crystal resonators are composed of quartz crystal resonators (ie resonators and oscillation circuits) with extremely high-quality factors. The quality of the crystal, the cutting orientation, the structure of the crystal oscillator and the circuit form, etc., jointly determine the performance of the resonator.   The International Electrotechnical Commission (IEC) divides quartz crystal resonators into 4 categories: ordinary crystal oscillator (SPXO), voltage-controlled crystal resonator (VCXO), temperature compensated crystal oscillator (TCXO), and thermostatically controlled crystal oscillator (OCXO). Digitally compensated crystal loss oscillation (DCXO) is currently under development.   (1) Ordinary crystal resonator (SPXO) can produce frequency accuracy of the order of 10-5~10-4, the standard frequency is 100MHZ, and the frequency stability is ±100ppm. SPXO does not use any temperature and frequency compensation measures are low in price and are usually used as a clock device for microprocessors. The package size ranges from 21×14×6mm and 5×3.2×1.5mm.   (2) The accuracy of the voltage-controlled crystal resonator (VCXO) is in the order of 10-6 to 10-5, and the frequency range is 1 to 30 MHz. The frequency stability of the low-tolerance resonator is ±50ppm. Usually used in phase-locked loops. The package size is 14×10×3mm.   (3) The temperature-compensated crystal resonator (TCXO) uses temperature-sensitive devices for temperature and frequency compensation, with a frequency accuracy of 10-7~10-6, a frequency range of 1-60MHz, and frequency stability of ±1~±2.5ppm, The package size ranges from 30×30×15mm to 11.4×9.6×3.9mm. Usually used in handheld phones, cellular phones, two-way wireless communication devices, etc.   (4) The thermostatically controlled crystal resonator (OCXO) places the crystal and oscillation circuit in a thermostat to eliminate the influence of environmental temperature changes on the frequency. The frequency accuracy of OCXO is in the order of 10-7~10-8, even higher for some special applications. The frequency stability is the highest among the four types of resonators. IV. Main Parameters of Resonator   The main parameters of the crystal oscillator are nominal frequency, load capacitance, frequency accuracy, frequency stability, etc. Different crystal oscillators have different nominal frequencies, and most of the nominal frequencies are marked on the crystal housing.   For example, the nominal frequencies of common ordinary crystal oscillators are 48kHz, 500 kHz, 503.5 kHz, 1MHz~40.50 MHz, etc. The frequency of crystal oscillators with special requirements can reach 1000 MHz or more, and there are also non-nominal frequencies, such as CRB, ZTB, Ja, etc.   The load capacitance refers to the sum of all the effective capacitances inside and outside the IC block connected by the two leads of the crystal oscillator, which can be regarded as the series connection capacitance of the crystal oscillator in the circuit. The different load frequency determines the different oscillation frequency of the resonator. For crystal oscillators with the same nominal frequency, the load capacitance may not be the same.   Because the quartz crystal resonator has two resonant frequencies, one is a low-load capacitance crystal of a series resonant crystal oscillator, and the other is a high-load capacitance crystal of a parallel resonant crystal. Therefore, when the crystal oscillators with the same nominal frequency are exchanged, the load capacitance must be the same, and they cannot be exchanged rashly, otherwise, it will cause the electrical appliances to work abnormally.   Frequency accuracy and frequency stability: Because the basic performance of ordinary crystal oscillators meets the requirements of general electrical appliances, certain frequency accuracy, and frequency stability are required for high-end equipment. Frequency accuracy varies from magnitude to magnitude. The stability varies from ±1 to ±100ppm. Choosing the appropriate crystal oscillator according to the specific equipment needs, such as communication network, wireless data transmission and other systems require a more demanding quartz crystal resonator.   Therefore, the parameters of the crystal oscillator determine the quality and performance of the crystal oscillator. In practical applications, the appropriate crystal oscillator should be selected according to specific requirements. Because of the different prices of crystal oscillators with different performances, the higher the requirements, the more expensive the price. Generally, the choice only needs to meet the requirements. V. What’s the Difference Between Resonator and Oscillator?     5.1 General Difference Between Resonator & Oscillator   The so-called resonator includes not only quartz crystal resonators but also ceramic resonators, LC resonators, and so on. A crystal oscillator is the abbreviation of the crystal oscillator. It is an oscillator component composed of a combination of a crystal resonator and a circuit, especially an oscillator component made of a quartz crystal.   So the complete naming should be "Quartz Crystal Resonator" and "Quartz Crystal Oscillator". In addition, the resonator is a passive device, which requires a peripheral circuit to drive its work and generate a clock output. The oscillator is an active device with its own built-in circuit to provide a more stable clock output.   A crystal oscillator is an oscillating circuit that uses a crystal as a frequency-selecting component. Compared with other oscillating circuits, it has the advantages of good frequency selection characteristics (high Q value) and high-frequency stability.   The fundamental difference between a resonator and an oscillator is active and passive, which can also be said to be active and passive. The oscillator has one more control circuit than the resonator.   Crystal resonators have some equivalent parameters, and different use environments may have different requirements. For example, some users require load capacitance C0 / C1. When selecting, consider the environmental temperature, load capacitance, frequency accuracy, and even DLD requirements. This requires some control of the parameters of the peripheral oscillator circuit to output a stable frequency.   The crystal oscillator avoids these troubles. The oscillating circuit has been completed by the manufacturer, and only a stable power supply is needed to have a stable output. In addition, the oscillator has some auxiliary functions, such as voltage-controlled crystal oscillator (VCXO), temperature-compensated crystal oscillator (TCXO), constant temperature crystal oscillator (OCXO), etc. These oscillators can meet some precision controls that are difficult to achieve when directly using resonators. . The frequency accuracy of OCXO can reach the order of E-9.   Secondly, the crystal oscillator is made of a crystal resonator, in order to be used as a signal carrier or timing on other components. To meet the requirements of the products produced.   An oscillator is simply a frequency source and is generally used in a phase-locked loop. In detail, it is a device that can convert DC power into AC power without external signal excitation. Generally divided into two types: positive feedback and negative resistance.   The so-called "oscillation", its meaning implies exchange, the oscillator includes a process and function from no oscillation to oscillation. It can complete the conversion from DC power to AC power. Such a device can be called an "oscillator."   Any communication or electronic system should have a level value within a normal range at some given point. The components that are adjusted to the normal level value are amplifiers and attenuators. The point of excessively low level is the point where noise is introduced, and the point of excessively high level will cause overload and make the amplifying component appear intolerable nonlinear distortion. It is not difficult to understand the role of the attenuator. There are two types of attenuators: fixed and variable.     5.2 Pros and Cons Analysis of Resonator & Oscillator   In this sector, we are going to analyze the pros and cons of crystal resonator and ceramic resonator, resonator, and oscillator.   (1) pros and cons of crystal resonator and ceramic resonator   The introduction of the crystal resonator has been mentioned above, so I won't repeat it here. Let's take a look at ceramic resonators.   A ceramic resonator is a piezoelectric ceramic device used to oscillate at a specific frequency. The materials used to make such devices excite resonance characteristics during the production process.   Because this resonance characteristic is within the production error range, and its quality factor is much lower than that of quartz, the frequency stability that ceramic resonators can provide is not as good as crystal resonators. Generally, ceramic resonators are used in occasions where the cost is low and the performance requirements are not high.   Pros: Compared with crystals, the cost of ceramic resonators is only half that of crystals and the size is smaller.   Cons: Compared with crystals, it lacks frequency and temperature stability. Its accuracy is poor, probably between 1% and 0.1%.     (2) pros and cons of resonator and oscillator   The oscillator is an energy conversion device that converts DC power into AC power with a certain frequency. The circuit formed by it is called an oscillator circuit. The oscillator is an active device. The oscillator has one more control circuit than the resonator.   Oscillators are electronic components used to generate repetitive electronic signals (usually sine waves or square waves). The circuit formed by it is called an oscillating circuit. An electronic circuit or device that can convert direct current into an alternating current signal with a certain frequency.   There are many types. According to the oscillation excitation mode, it can be divided into the self-excited oscillator and separately excited oscillator; according to the circuit structure, it can be divided into the resistance-capacitance oscillator, inductance-capacitance oscillator, crystal oscillator, tuning fork oscillator, etc.; according to the output waveform can be divided into It is a sine wave, square wave, sawtooth wave, and other oscillators. It is widely used in the electronics industry, medical treatment, scientific research, etc.   Pros: The crystal oscillator signal quality is good, relatively stable, and the connection method is relatively simple (mainly to do a good job of power filtering, usually a PI filter network composed of a capacitor and an inductance is used, and the output terminal uses a small resistance resistor to filter the signal. Yes), no complicated configuration circuit is required. For applications with sensitive timing requirements, the performance of crystal oscillators is relatively good.   Cons: Compared with the crystal resonator, the defect of the crystal oscillator is that its signal level is fixed, and the appropriate output level needs to be selected. It is less flexible and expensive. In addition, the quartz oscillator takes a long time to start.   Volume: Compared with passive crystals, crystal oscillators are usually larger in volume. With the improvement of technology, some crystal oscillators are now surface-mounted, and the volume is comparable to crystal resonators.   Summary: The typical initial accuracy of ceramic resonators is in the range of 0.5% to 0.1%, and drift caused by aging or temperature changes may change this accuracy range.   The tolerances of cheap ceramic resonators are only ±1.1%, and the accuracy of higher-end automobiles is ±0.25% and ±0.3%, respectively. The future application lies in the automotive CAN (controller area network) bus application with an operating temperature of -40°C to +125°C. Low-cost ceramic resonators with frequencies ranging from 200 kHz to about 1 GHz are suitable for embedded systems that do not have strict timing requirements.   Ceramic devices start faster and are generally smaller than quartz devices. They are also more able to withstand shock and vibration.     FAQ   1. What does a resonator do? A resonators' sole purpose in life is to change a vehicle's engine noise before it reaches the muffler for a final decibel reduction.   2. What is a resonator in electronics? A resonator is a device or system that exhibits resonance or resonant behavior. ... Resonators are used to either generate waves of specific frequencies or to select specific frequencies from a signal. Musical instruments use acoustic resonators that produce sound waves of specific tones.   3. What does removing the resonator do? A resonator delete changes the way that the pulses generated by your vehicle move through the exhaust system. Think of this device as if it were a large echo chamber. It takes those pulses, optimizes their frequencies, and this makes it possible to achieve better power production.   4. Which is better muffler delete or resonator delete? If you want a louder and lighter vehicle, you'll be better off with the muffler delete. If you're after a good sound and a little more power, the resonator delete is the way to go. ... After all, the difference between a resonator delete and muffler delete isn't that significant.   5. What is difference between crystal and resonator? The ceramic resonator utilizes a frequency within the electrical component but unlike the crystal which has a frequency tolerance of 10~30 PPM , a ceramic resonator carries a 0.5% or 5,000 PPM frequency tolerance which is generally used in microprocessor applications where absolute stability is not important.   6. Is intake resonator necessary? An air intake resonator is a crucial component to an automobile engine's intake system. It allows the engine to run more quietly as well as more efficiently. ... An air intake resonator is a crucial component to an automobile engine's intake system. It allows the engine to run more quietly as well as more efficiently.   7. Do resonators restrict airflow? Magnaflow resonators dont restrict flow at all, its just like adding a section of straight pipe as they are straight through. magnaflow's design uses no chambers, but rather a perforated straight pipe surrounded by a sound-absorbing material.   8. Which is the best frequency for a noise resonator? The resonator is designed to work best in the frequency range where the engine makes the most noise; but even if the frequency is not exactly what the resonator was tuned for, it will still produce some destructive interference.   9. Will a resonator quiet my exhaust? Mufflers and resonators work together to quiet your car's exhaust and reduce annoying sounds. While they function differently, they both help improve your exhaust note. Mufflers and resonators can also be deleted for a louder, more aggressive exhaust sound.   10. Does removing the resonator increase horsepower? As a rule; the quieter an exhaust system is, the more horsepower it is stealing from your engine. ... Removal of all mufflers and resonators will provide slightly greater increases but remember as the restrictions are removed the exhaust grows louder.  
kynix On 2021-05-19   776
Robots

Introduction to the Core Electronic Components in a Drone

Introduction: Drones, also known as unmanned aerial vehicles (UAVs), have revolutionized various industries by providing innovative solutions to complex problems. They are equipped with advanced technology and rely on a combination of mechanical, electrical, and electronic components to achieve flight and perform specific tasks. Among these components, the electronic components play a crucial role in controlling and coordinating the drone's operations. Drones have become increasingly popular in various industries, from aerial photography to package delivery. These unmanned aerial vehicles rely on a complex system of electronic components to function efficiently. In this report, we will explore the core electronic components found in a drone and discuss their functionalities and importance. Understanding these components is essential for anyone interested in drone technology or working with drones in different applications.Core electronic components:This report aims to provide an overview of the core electronic components found in a drone and explain their functionalities.1.Flight Controller:The flight controller is the brain of a drone. It is a microcontroller board that processes sensor data and commands from the pilot or an autonomous system to control the drone's flight. The flight controller uses an array of sensors, such as accelerometers, gyroscopes, and magnetometers, to measure the drone's orientation, speed, and position in real-time. It then adjusts the motor speeds and other control surfaces to maintain stability and achieve the desired flight maneuvers. 2.Electronic Speed Controllers (ESCs):ESCs are responsible for controlling the speed and direction of the drone's motors. They receive signals from the flight controller and convert them into specific voltage and current levels to drive the motors accordingly. ESCs play a vital role in maintaining stability, responsiveness, and overall flight performance. Modern drones often utilize electronic speed controllers with built-in firmware that provides advanced features like motor synchronization, motor braking, and support for various motor types. Fig 1: Electronic Speed Controllers3. Brushless Motors:Brushless motors are commonly used in drones due to their efficiency, durability, and high power-to-weight ratio. Unlike brushed motors, they do not rely on physical brushes for commutation, resulting in reduced friction and wear. Brushless motors generate rotational force by synchronizing the energization of multiple windings through electronic commutation. They are lightweight, compact, and provide precise control over motor speed and torque, making them ideal for drone applications.Fig 2: Brushless Motors4. Multi-Rotor control board: In this study, the drone has controlled via a Multi-Rotor control board. The multi-rotor's flying is managed by this controller. Its purpose is to stabilise the aircraft during flight and to do this, it takes signals from on-board gyroscopes (roll, pitch and yaw) and passes these signals to the Atmega324PA processor, which processes signals according the users designated firmware and passes the control signals to the mounted ESCs (Electronic Speed Controllers) and the mixture of these signals commands the ESCs to make fine adjustments to the motors rotational speeds which stabilises the craft. The Multi-Rotor control board additionally utilises radio signals via a receiver and transmits these signals, together with stabilisation signals, to the Atmega324PA IC via the user demand inputs for the aileron, elevator, throttle, and rudder. This information is analysed and delivered to the ESCs. It controls each motor's rotational speed to regulate the direction of flight (up, down, backwards, forwards, left, right, and yaw).Fig 2: Multi-Rotor control board5. Batteries and Power Distribution:Drones require a reliable power source to operate. Lithium-polymer (LiPo) batteries are commonly used due to their high energy density and lightweight characteristics. The battery provides electrical energy to the flight controller, ESCs, and other electronic components. To distribute power effectively, drones utilize power distribution boards (PDBs) or power management systems that regulate the voltage and current supplied to various components, ensuring stable and efficient operation. 6. Radio Control System:The radio control system allows the drone to be controlled remotely by a pilot or an autonomous system. It consists of a transmitter, receiver, and antennas. The pilot uses the transmitter to send commands to the drone, which are then received and decoded by the receiver on the drone. The radio control system operates on specific frequency bands and employs various modulation techniques to ensure reliable communication and minimize interference. 7. Sensors and Imaging Systems:Drones often incorporate a range of sensors and imaging systems to gather data about the environment or perform specific tasks. These can include cameras, infrared sensors, LiDAR (Light Detection and Ranging), GPS (Global Positioning System), altimeters, and more. Cameras and sensors provide visual and environmental feedback to the flight controller, enabling features such as aerial photography, mapping, obstacle avoidance, and autonomous flight modes.Drones incorporate a variety of sensors to gather data about the environment and aid in flight control. Some common sensors found in drones include:Accelerometers: Measure acceleration forces to determine the drone's orientation and movement.Gyroscopes: Measure angular velocity to help stabilize the drone and maintain its orientation.Magnetometers: Detect magnetic fields to assist in orientation and navigation.Barometers: Measure atmospheric pressure to estimate altitude and assist in altitude hold and altitude change functions.GPS: Global Positioning System sensors provide accurate positioning and navigation data.Infrared Sensors: Detect obstacles and aid in obstacle avoidance during flight. 8. Onboard Computing Systems:Many drones incorporate onboard computing systems to process data, perform complex calculations, and execute autonomous flight algorithms. These systems may include microprocessors, microcontrollers, and graphic processing units (GPUs). The onboard computing systems enable real-time decision-making, data analysis, and control algorithms for tasks such as autonomous navigation, object recognition, and collision avoidance. 9. Communication Systems:Drones often require communication systems to transmit data, telemetry, and control signals to and from the ground station or other drones. Wireless communication technologies such as Wi-Fi, Bluetooth, or radio frequency (RF) systems are commonly used. These systems ensure reliable and secure communication, enabling remote control, real-time video streaming, and swarm coordination in the case of multiple drones operating together.10. Safety and Redundancy Systems:To enhance safety and reliability, drones may incorporate various electronic components and systems. These can include redundant power systems, redundant flight controllers, backup sensors, and fail-safe mechanisms. Redundancy helps mitigate the risk of component failures and ensures that critical functions can continue operating in case of a system fault, improving the overall safety and resilience of the drone. 11. Transmitter and Receiver:The transmitter and receiver form the radio control system of a drone, enabling remote control and communication between the pilot and the drone. The transmitter is the handheld device held by the pilot, while the receiver is installed on the drone itself.Key aspects of the transmitter and receiver electronics components include:Transmitter: The transmitter is the control interface held by the pilot. It consists of control sticks, switches, buttons, and other input mechanisms. These controls allow the pilot to send commands and inputs to the drone, such as adjusting throttle, controlling direction, changing flight modes, or activating specific features. The transmitter typically operates on specific frequency bands and employs various modulation techniques to ensure reliable communication with the receiver.Receiver: The receiver is the counterpart of the transmitter installed on the drone. It receives the commands sent by the pilot through the transmitter and decodes them into control signals that are understood by the drone's flight controller. The receiver is connected to the flight controller or autopilot system, allowing the drone to interpret and execute the pilot's commands accurately.Antennas: Both the transmitter and receiver have antennas for transmitting and receiving radio signals. These antennas ensure the effective transmission and reception of control signals between the pilot and the drone. They can be external or internal, depending on the design of the drone and the radio system used. 12. Landing Gear:Landing gear provides support and protection for the drone during takeoff, landing, and ground operations. The design of the landing gear may vary depending on the drone's purpose, size, and terrain it operates in. Key aspects of drone landing gear include:Legs: The landing gear consists of legs that are attached to the drone's frame. The number and length of the legs depend on the drone's configuration and purpose. Most landing gears have three or four legs for stability.Material: Landing gear is typically made of lightweight and durable materials such as plastic, carbon fiber, or aluminum. These materials provide sufficient strength to support the weight of the drone while minimizing the additional weight.Shock Absorption: Some landing gears incorporate shock-absorbing mechanisms or dampeners to absorb the impact of landings and reduce vibrations. These features help protect the drone's components from damage and ensure a smooth landing experience.Retractable Landing Gear: Certain drones, especially professional photography or cinematography drones, may feature retractable landing gear. This allows the landing gear to be raised or retracted during flight, providing an unobstructed view for cameras or sensors mounted on the drone.Skids or Feet: The lower ends of the landing gear legs often have skids or feet that provide stability and grip during landing and ground operations. These skids or feet prevent the drone from tipping over or slipping on surfaces and help protect the drone's components from direct contact with the ground.Landing gear components are crucial for safe takeoffs, landings, and ground operations. They provide stability, protect the drone's components from damage, and ensure a smooth landing experience. The design of the landing gear is influenced by factors such as the drone's size, weight, intended use, and operating environment.Conclusion: Drones rely on a complex system of electronic components to achieve stable flight, perform specific tasks, and provide valuable functionalities across various industries. Understanding the core electronic components discussed in this report provides a foundation for comprehending the inner workings of drones. As drone technology continues to advance, these components will evolve, enabling drones to become more intelligent, versatile, and efficient in their operations.
Karty On 2023-05-17   775
FPGA

New SoM Combination Design Based on Processor and FPGA: FPGA and Processor

IntroductionMany embedded designs use single board computer based on micro-processor and micro-controller(SBC) and modular system (SoM). However, people with more embedded applications can't bear the delay caused by the response time associated with software. Only the custom hardware can achieve the higher performance that these applications required, and the quickest way to develop custom hardware is to use FPGA. This article will introduce the advantages of using SoM to develop embedded systems that require higher processing power from FPGA, and will also cover the various FPGA SoM, and also discuss how they work when embedded in design and development.What is an FPGA? Intro for BeginnersCatalogs CatalogsFPGA: The Role of Modular SystemNew SoM based on SoC with processor and FPGAFunctions of SoM and SBCConclusion FPGA: The Role of Modular SystemThe modular system (SoM) can help designers to develop special shape size embedded systems with custom interfaces without having to develop kernel processing systems from scratch. Designers can insert SoM which has pre-designed and tested into pre-designed or customized cards to create embedded designs with the same functions as fully customized designs, but take much less time to develop hardware.Using SoM has several advantages over developing hardware from scratch as follows:1) Saving cost( in the process of developing and debugging the circuit board based on SoC, the non-recurrent engineering cost will be very high.)2) Multiple choices(benefiting the insertion ability of SoM)3) Developing hardware and software at the same time4) Reducing design risks5) Small packagesThe market, once dominated by microprocessors and micro-controllers, is now replaced by SoM, with through holes and socket components losing their leading role. Pin compatibility allows designers to select from a range of compatible processors that have the correct clock speed and appropriate on-chip memory capacity. However, with the increase of the number of pins and the adoption of surface mount packaging technology, this design method has become obsolete. And SoM has emerged as the times require, its shape size and substrate surface have the same function as the previous series of pin compatible micro-controllers.If SoM is used as the computing platform of the project, the design engineer can concentrate his energy and resources to develop the final application without being lost in the details of designing computing platform. For example, at the clock speed of hundreds of megahertz (MHz), the layout of the SDRAM circuit board connected to the application processor becomes increasingly difficult due to differential wire delay, noise, crosstalk and many other challenges. However, SoM vendors have done a lot of design work before the start of the project, which can solve these problems and cut the time of product launch.To select the appropriate SoM series for embedded development projects, we must carefully analyze various factors, including the expected requirements of embedded resources, as well as the design extendibility, future adaptability and ease of use. This helps to select the appropriate shape and substrate size of SoM, providing alternative options to meet known challenges and unexpected future challenges. If the selected SoM family includes multiple product members and has compatible appearance dimensions and connector base surfaces, the selection of the designers can be expanded to make the product better able to withstand the test of the future. New SoM based on SoC with processor and FPGASoM usually uses SoC which includes multiple application processors, but a new embedded processor, SoC, integrating FPGA, applies to the SoM design either, like the Zynq®-7000 SoC, Xilinx’s fully programmable processor. Xilinx Zynq-7000 SoC integrates the software programmability of Arm Cortex-A9 application processors with the hardware programmability of FPGA. Arm microprocessor, built in Zynq SoC,  combines enhanced peripherals with SDRAM memory controllers (called Zynq SoC's "processing systems" or "PS"), and performs all the software-based tasks typically handled by embedded microprocessors or microcontrollers, while integrated FPGA (known as Zynq SoC's PL: Programmable Logic) provides hardware I / O response time and hardware acceleration for embedded tasks that require faster execution speed.Xilinx Zynq SoC offers a variety of processor configurations and speeds, with even more options for FPGA structures on a chip. Choosing the SoM family based on hybrid processor FPGA SoC can expand the selection range and improve the future adaptability of the product, like Xilinx Zynq-7000 series. One example of such a SoM series is the use of the TE0782 family from Trenz Electronic (Fig.1) and the SoM supporting test panel TEBT0782-01 which adopts the Xilinx Zynq-7000. Three Members of the SoC FamilyTE0782-02-035-2I based on Xilinx Zynq Z-7035 SoCTE0782-02-045-2I based on Xilinx Zynq Z-7045 SoCTE0782-02-100-2I based on Xilinx Zynq Z-7100 SoCAll three SoMs have the same connector substrate, including three Samtec LSHM nonpolar connectors and hundreds of I / O pins, in addition, there are power and grounding pins between the SoM and the board.Fig.1 Trenz Electronic TE0782 SoMFig.1: TE0782 SoM from Trenz Electronic uses one of three Xilinx Zynq Z-7000 SoC models, as well as providing 1GB SDRAM and other non-volatile memory.The best way to see the flexibility of SoM design is to look at the TE0703 carrier board of the TE0782 SoM family, and then go back to SoM through the I / O pins to see SoM's resources.Fig.2: Trenz TE0703 Board Divides Many I / O Pins from the Relevant 4 x 5 cm SoM Boards to the Rest of the Embedded System.Many of the important I / O functions separated from the SoM board are shown in the block diagram of TE0703 as follows:1 Gbit/s EthernetUSB and Micro-USBHundreds of I/O pins(it can be configured as a singular I / O pin, or as a low-voltage differential signal pair.)Fig.3 Physical Map of Trenz TE0703-05( Trenz TE0703 family) Functions of SoM and SBCProcessing speed, response time and I / O capability are significant characteristics of SoM. However, embedded systems often integrate SBC, such as Arduino Uno and Raspberry Pi, because these products also have wide-ranging technique support. So Trenz Electronic also offers related versions of Arduino and Raspberry Pi: TE0723-03M ArduZynq and TE0726-03M ZynqBerry based on Xilinx Zynq-7000 SoC. These SBC bridges many existing plug-in cards, such as the expansion boards of  Arduino and various Raspberry.The FPGA capacity of Zynq Z-7010 SoC integrated into TE0723-03M ArduZynq and TE0726-03M ZynqBerry SBC is significantly different from that of FPGA integrated into three Trenz Electronic SoMs (using Zynq Z-7035 Zynq Z-7045 and Zynq Z-7100 SoC ). Although all Zynq-7000 SoC apply dual-core Arm Cortex-A9 processor, their FPGA on components are different. Volume of the Xilinx Zynq SoC Programmable Logic Unit Block RAM (MB) DSP slices is Z-701028K2.180Z-7035275K17.6900Z-7045350K19.2900Z-7100444K26.52020, Xilinx Zynq-7000 SoC (Z-7035, Z-7045 and Z-7100) used in Trenz Electronics SoM provides more FPGA resources than that of Zynq Z-7010 used in Trenz Electronic ArduZynq and ZynqBerry SBC.Xilinx Zynq-7000 SoC (Z-7035, Z-7045 and Z-7100) used in Trenz Electronics SoM provides more FPGA resources than that of Zynq Z-7010 used in Trenz Electronic ArduZynq and ZynqBerry SBC. In addition, TE0723-03M ArduZynq and TE0726-03M ZynqBerry SBC provide only 512-MB on-board SDRAM, while TE0782 SoM provides 1GB.Trenz Electronic provides various boards for its SoM, including TE0703-05, TE0706-02, TE0701-06, and TEB0745-02, which provide a lot of standardized I / O functionality. A certain card may be suitable for a particular embedded application, but the embedded system design can also be split into a customized design board that can accept SoM series products to meet different processing requirements. This flexibility highlights the advantages of using the SoM family as the basis for embedded design. And consistent standardized connector substrate allows SoM to be easily interchangeable to accommodate changes in system specifications. ConclusionSoM can significantly cut the time requirement of prototype embedded systems and reduce project risk. As long as the SoM profile and connector substrate are supported,  more FPGA resources of SoM can be inserted to meet the growing demand. In addition, a variety of compatible SoM based on Xilinx Zynq-7000 SoC combine the processing power of dual-core Arm Cortex-A9 processor with FPGA resources, which is helpful to accelerate the development of embedded design. The embedded design method based on SoM can not only shorten the time required to develop the hardware part, but also allow the software development to start earlier in the project, thus reducing the design cost. FAQ1. What is a FPGA used for?Image result for FPGA and ProcessorFPGAs are mainly used to design application-specific integrated circuits (ASICs). First, you design the architecture of such a circuit. Then, you use an FPGA to build and check its prototype. Errors can be corrected. 2. Is an FPGA a processor?With an FPGA, there is no chip. The user programs the hardware circuit or circuits. The programming can be a single, simple logic gate (an AND or OR function), or it can involve one or more complex functions, including functions that, together, act as a comprehensive multi-core processor. 3. What is difference between FPGA and processor?CPUs offer the most versatility and so are the best suited to perform general purpose computing. FPGAs can be used to perform more specific and specialized tasks but are not ideal for general computing purposes. 4. How many times can you reprogram an FPGA?Altera guarantees you can reprogram windowed EPROM-based devices at least 25 times. Altera does not specify the number of times you can reprogram or reconfigure FPGA devices because these devices are SRAM-based. An SRAM-based device can be reconfigured as often as a design requires; there is no specific limit. 5. What is SoM FPGA?The CompactRIO System on Module (SOM) is a small, flexible, embedded computer for industrial applications that require high performance and reliability. It combines an ARM processor, the NI Linux Real-Time OS, a programmable Xilinx FPGA, and a high-density connector to interface with application-specific I/O. You May Also LikeDiscussion on the influencing factors of clock in FPGA designTo Solve the Problems of Cloud Skyrocket--Edge Processing
kynix On 2018-08-30   758
FPGA

Discussion on the influencing factors of clock in FPGA design

Warm hints: The word in this article is about 4000 words and  reading time is about 20 minutes.SummaryThe clock is the most important and special signal in the entire circuit. The movement of most of the devices in the system is performed on the edge of the clock. This requires that the delay of the clock signal is very small, otherwise it may cause an error in the timing logic. Therefore, it is very important for the design of FPGA to determine the factors of system clock and the delay of clock to ensure the stability of design. CoreClock in FPGA designPurposeDetermining the influencing factors of clock to ensure the stability of designEnglish nameField Programmable Gate ArrayCategoryDigital electronic circuitFunctionCreating digital circuitsFeatureTotally up to the designer to create a bit fileCatalogsCatalogsⅠ. What is Setup time and Hold timeⅢ. Analyzing with the help of timing diagram3. The composition of the state machine1. Synchronization between single bits and each pulse transmitted has at least 1 cycle width1. Setup timeⅣ. How to increase the clock working frequencyⅤ. An example showing a good method for state machine design2. The input pulse could be less than a synchronous circuit under a clock cycle width 2. Hold time1. Changing the line type for circuit wiringⅥ. The introduction of state machine Ⅱ. A basic model of synchronous design using a single clock2. Splitting the combinational logicⅦ. What we should pay attention when designing the clock in FPGA  IntroductionⅠ. What is Setup time and Hold timeThe clock is the most important and special signal in the entire circuit. The movement of most of the devices in the system is performed on the edge of the clock. This requires that the delay of the clock signal is very small, otherwise it may cause an error in the timing logic. Therefore, it is very important for the design of FPGA to determine the factors of the system clock and the delay of the clock to ensure the stability of the design.Learn how a clock drives all sequential logic in FPGA, from Flip-Flops to Block RAMs; The clock tells you how fast you can run your FPGA;This video demonstrates how to properly deal with multiple clock domains inside your design.1. Setup timeSetup time(Tsu) is defined as the minimum amount of time before the clock's active edge that the data must be stable for it to be latched correctly. Any violation may cause incorrect data to be captured, which is known as setup violation.2. Hold timeHold time(Thd) is defined as the minimum amount of time after the clock's active edge during which data must be stable. Violation in this case may cause incorrect data to be latched, which is known as a hold violation. Note that setup and hold time is measured with respect to the active clock edge only.Figure 1 Shows setup time and hold timeFigure 2 If data will change in tsu then it will cause setup violation and if data will change in thd then it will cause hold violation  DtailⅡ. A basic model of synchronous design using a single clockIn the same module of FPGA design, it often contains the combinational logic and the sequential logic. In order to guarantee the data in this logic interface can be processed steadily, then figuring out the concept of setup time and hold time is very important. Then we could be able to think about this following question:Figure 3 Shows a basic model of synchronous design using a single clockTco: Delay of the data output of the trigger;Tdelay: Delay of the combinational logic;Tsetup: The trigger's setup time;Tpd: Delay of the clock (negligible).T: clock cycleT3: D2 setup timeT4: D2 hold timeIf the first trigger D1 has a maximum setup time of T1max and a minimum of T1min, the combinational logic has a maximum delay of T2max and a minimum of T2min. The question is what conditions setup time T3 and hold time T4 of the second trigger D2 should be met, or what the maximum clock cycle given T3 and T4. This is the thing must be carefully considered in the process of design, because only by clarifying this issue can we ensure that the delay of the  combinational logic designed meets the requirements.Ⅲ. Analyzing with the help of timing diagramNow let us analyze this question with the help of timing diagram: let the input of the first flip-flop be D1, the output be Q1; the input of the second flip-flop be D2, the output be Q2;Given the clock is uniformly sampled on the rising edge, for ease of analysis we would discuss two cases, the first one: Assume that the delay of the clock Tpd is zero, which in fact, is often met in the FPGA design where the unified system clock it is generally adopted and the clock be input through the global clock pin, therefore the internal clock delay can be completely ignored. In this case, it is not necessary to consider the hold time, because each data maintains one clock tick while there is also delay line, that is, the delay based on CLOCK is much smaller than the delay based on data, so the hold time can meet the requirement. The setup time is what we should care about. If the setup time D2 meets the requirement, the timing diagram should be as shown as Figure 4.Figure 4 Shows the timing chart that meets the requirementsFrom the figure 4 we can see:T-Tco-Tdelay>T3That is Tdelay< T-Tco-T3During the setup time D2, the signal can reach D2 through the combinational logic D1, i.e. the data is already in Tsup before the second CLK arrive.Then it meets the requirement of setup time, where T as the clock period, the second flip-flop can pick up D2 on the rising edge of the second clock in this case. {D1 => setup time => hold time => trigger data output delay => combinational logic delay => D2 => ...}If the delay time of the combinational logic is too largeT-Tco-Tdelay < T3 (Tcox<D2 setup time)Then it will not meet the requirements. The second trigger will pick up an unstable state on the rising edge of the second clock, as shown in Figure 5, then the circuit will not work properly.Figure 5 The delay time of the combinational logic is too large to meet the requirementsSo you can deriveT - the Tco - T2max > = T3This is the setup time for D2.From the timing diagram above, it also can be seen that the setup time and hold time of D2 are not related to the setup and hold time of D1, except the combinational logic in front of D2 and the data transmission delay of D1. This is also a Very important conclusion, which shows that the delay has no additive effect.However, if there is a delay in the clock instead, the hold time must be considered in this case, together with the setup time. Most clocks with large delays are designed using asynchronous clocks, which is difficult to guarantee the data synchronization, so it is rarely used in actual designs. At this point, if the setup time and hold time all meet the requirements, you will see the output timing as shown in Figure 6.Figure 6. Clock has a delay but meets the timingIt can be easily seen from figure 5 that the Tpd is relaxed for the setup time, so the setup time of D2 must meet the requirements:Tpd+T-Tco-T2max>=T3 (T3 is the setup time of D2, T2max is the maximum delay of  combinatorial logic, Tpd is the clock delay)As shown in the FIG. 6, since the sum of setup time and hold time is a stable clock period (T), if the clock has a delay and the data delay is small, then the setup time will increase inevitably,  and the decrease of hold time goes with it. If it is reduced to not meet the requirement of hold time D2 , the correct data cannot be collected.That is T-(Tpd-Tco-T2min)T-(Tpd+T-Tco-T2min)>=T4 i.e. Tco+T2min-Tpd>=T4 (D2 hold time )From the formula above we could also figure out that if Tpd = 0, that is to say the delay of the clock is 0, then the same requirements goes with Tco + T2min> T4, however in practical applications the delay of T2 i.e. the delay of line is much larger than the trigger's hold time T4, it becomes not necessary to take the hold time into consideration.Figure 7 The clock has a delay and the hold time does not meet requirementsIn summary, if you do not consider the delay of the clock, the only thing you need to care about is the setup time, or the hold time instead. Then let us think about in FPGA design, how to increase the working clock in the synchronous system. AnalysisⅣ. How to increase the clock working frequencyFrom the above analysis, we can see that the requirements of setup time T3 for the D2 in the synchronization system is as follows:T-Tco-T2max>=T3So it is easy to derive:T>=T3+Tco+T2maxwhere T3 is the setup time Tset of D2, and T2 is the delay time of the combinational logic. In a design, T3 and Tco are both fixed values determined by the device, the only factor that we could control is the input delay of the combination logic T2. Therefore, by reducing T2 as much as possible, the clock working frequency can be increased. In order to achieve the reduction of T2 in the design, there are different comprehensive methods we can use.1. Changing the line type for circuit wiringAltera devices, for example, there are many bars in the quartus timing closure floorplan, so we can slice and dice them into rows and columns: Each bar represents 1 LAB, each LAB has 8 or 10 LEs in. The relationship of their routing delay is as follows: the same LAB (fastest) < the same row and column < different row and column. We could add appropriate constraints to the synthesizer (this should be given appropriate, generally 5% margin adding, for example, if the circuit works at 100Mhz, then adding constraints to 105Mhz is sufficient, because the excessive constraint could do a bad effect instead, and greatly increases the integration time) to make the relevant logic circuit wiring be placed as close as possible, thereby reducing the routing delay.2. Splitting the combinational logicSince the general synchronous circuits are more than a?single?stage latch (as shown in Figure 9), and to make the circuit stable, the clock period must meet the maximum delay requirement, and the maximum?delay of the longest path can be shortened before the operating frequency of the circuit be increased.As shown in Figure 8, we can decompose the larger combinatorial logic into smaller blocks and insert flip-flops in the middle, which can increase the operating frequency of the circuit. This is also the basic principle of the so-called "pipelining" technology.For the upper part of Figure 9, its clock frequency is subject to the delay of the second larger combinational logic. By appropriately distributing the combinational logic, excessive delay between the two flip-flops can be avoided and speed bottlenecks can be eliminated.Figure 8 Splitting combination logicFigure 9 Transferring Combination LogicHow to split the combinatorial logic in design, the better method should be accumulated in practice, but some good design ideas and methods also need to be mastered. We know that at present most of the FPGAs based on 4-input LUTs, if an output criteria corresponding is more than four inputs, then the multiple LUT cascade will be needed, thus introducing the delay of one-stage combinational logic. That is we want to reduce the number of combinational logic, the logic is nothing more than to make the input conditions as few as possible, so that less multiple LUT cascade need to be use, thereby reducing the time delay caused by combinational logic.The pipelining that we usually hear is a way to increase the operating frequency by splitting a large combinational logic (in the middle of which a singer or multiple stages of D flip-flops are inserted, thereby reducing the number of combinatorial logic between registers) to a smaller one. For example, a 32-bit counter, with a very long carry chain, will inevitably reduce the operating frequency, so we can split it into a 4-bit and a 8-bit one, whenever the 4-bit counter counts to 15 and triggers an 8-bit one, which enable the counter to be split and increases the operating frequency.Just as the same, large counters are generally moved out of the state machine, because if they, with usually more than 4 inputs, are used as state transition criteria with other conditions, they will increase the multiple LUT cascade, and then increasing the combination logic.Taking a 6-input counter as an example, we wanted to make a state transition after the counter counted to 111100, now because we put the counter out of the state machine, when it counts to 111011, a signal of "enable" is generated and then trigger the state transition, which obviously reduces the combinatorial logic.3. The composition of the state machineThe state machine generally contains three modules:An output moduleA module that determines what the next state isA module that saves the current stateThe logic used to form these three modules is also different. The output module usually contains both combinatorial logic and sequential logic; the module that determines the next state is usually composed of combinatorial logic; and the module that saves the current state is usually composed of sequential logic. The relationship between these three modules is shown in Figure 10.Figure 10 The composition of the state machineⅤ. An example showing a good method for state machine designThat is why when writing the state machine, the state machine is always divided into three parts according to these three modules. The following example shows a good method of state machine design: -----------------------------------------------------*/module arbiter2 (                    clock , // clock                    reset , // Active high, syn reset                    req_0 , // Request 0                    req_1 , // Request 1                    gnt_0 ,                    gnt_1                );//-------------Input Ports-----------------------------input    clock ;input    reset ;input    req_0 ;input    req_1 ;//-------------Output Ports----------------------------output    gnt_0 ;output    gnt_1 ;//-------------Input ports Data Type-------------------wire    clock ;wire    reset ;wire    req_0 ;wire    req_1 ;//-------------Output Ports Data Type------------------reg        gnt_0 ;reg        gnt_1 ;//-------------Internal Constants--------------------------parameter     SIZE = 3 ;parameter     IDLE = 3'b001 ,            GNT0 = 3'b010 ,            GNT1 = 3'b100 ;//-------------Internal Variables---------------------------reg        [SIZE-1:0] state ;        // Seq part of the FSMwire    [SIZE-1:0] next_state ;    // combo part of FSM //----------Code startes Here------------------------assign    next_state = fsm_function(req_0, req_1);//------------fsm_function--------------//function [SIZE-1:0] fsm_function;input     req_0;    //parameterinput     req_1;    //parameterbegin    case(state)        IDLE :                if (req_0 == 1'b1)                    fsm_function = GNT0;            else if (req_1 == 1'b1)                fsm_function = GNT1;            else                fsm_function = IDLE;        GNT0 :             if (req_0 == 1'b1)                fsm_function = GNT0;            else                fsm_function = IDLE;        GNT1 :            if (req_1 == 1'b1)                fsm_function = GNT1;            else                fsm_function =IDLE;        default : fsm_function = IDLE;        endcaseendendfunction always@(posedge clock)begin    if (reset == 1'b1)        state <= IDLE;    else        state <= next_state;end//----------Output Logic-----------------------------always @ (posedge clock)begin    if (reset == 1'b1)         begin        gnt_0 <= #1 1'b0;        gnt_1 <= #1 1'b0;        end    else         begin        case(state)            IDLE :                 begin                gnt_0 <= #1 1'b0;                gnt_1 <= #1 1'b0;                end            GNT0 :                 begin                gnt_0 <= #1 1'b1;                gnt_1 <= #1 1'b0;                end            GNT1 :                 begin                gnt_0 <= #1 1'b0;                gnt_1 <= #1 1'b1;                end            default :                 begin                gnt_0 <= #1 1'b0;                gnt_1 <= #1 1'b0;                end        endcase        endend // End Of Block OUTPUT_Endmodule Ⅵ. The introduction of state machineState machines are usually written in three segments to avoid excessive combinational logic.All we mentioned above shows how we could use the way of pipelining to split the combinational logic, but in some cases it is difficult for us to do that, and then what should we do?The state machine is such an example that we cannot add assembly line in the state decoding combinational logic. If there is a design of state machine with dozens of states, there is no doubt that its state decoding logic will be very large and this will be the critical path in the design. So what should we do?Just the same way, reducing the combinatorial logic. We can analyze the output of the state, reclassify and redefine them into a group of small state machines. By selecting the input (case statement) and triggering the corresponding small state machine, we can achieve a large state machine splitting into several small state machines. In the ATA6 specification (hard disk standard), there are about 20 kinds of input commands, and each piece of command corresponds to a variety of states. It is unthinkable to do it with a large state machine (nesting), however in the contrary, if you use the case statement to decode the command and trigger the corresponding state machine, in this way the module can run very fast.The key to increasing the operating frequency is to reduce the time delay from register to register, and the most effective method for reduction is to avoid large combinational logic, that is, to try to meet the four-input condition, reducing the number of LUT cascades, that’s mean that we could increase the working frequency by adding constraints, using a way of pipelining and splitting states.Ⅶ. What we should pay attention when designing the clock in FPGA1.Try to use only one clock in a module, and a module here means a module or an entity. In the design of multi-clock domain, it is better to have an extra special module for the isolation of clock domain. This allows the synthesizer to get a better results.2. Unless it is a low-power design, otherwise do not use the gated clock (gllobal Clock buffer such as IBUFG within FPGA) to control the input of clock edge of flip-flop, but use combinational logic and other timing logic (such as frequency divider) to generate signals used as the input of clock edge of flip-flop---all this is to reduce the instability of the design.3. Do not use the signals divided by counter as the clock of other modules, but  with the help of clock enable(CE). Otherwise, this clock-like manner is extremely unfavorable to the reliability of the design, and greatly increases the complexity of the static timing analysis .Ⅷ. Synchronization Between Different Clock DomainsIf two modules in a design using two respective operating clock, then at their interfaces there would emerge a phenomenon which called as Asynchronous Patterns. In order to ensure data correct processed, the two modules must be synchronized.There are usually two cases of different clock domains here (discrete clock source):1. the frequency of two clocks is different;2. the two clocks share a same frequency, but they are actually two separate clocks with no relation to the phase.Just as shown in the following two figures:Figure 11 The frequencies of two clocks are completely differentFigure 12 The frequencies of the two clocks are the same, but the phases are irrelevantThe data transmission between two clock domains usually adopts different synchronization methods according to different bit widths.1. Synchronization between single bits and each pulse transmitted has at least 1 cycle widthThis kind of synchronization is mainly used for the synchronization of some control signals. As shown in Figure 13 below:Figure 13 One bit synchronizer designThe following points are required to be explained for this synchronization:(1) synchronous circuit of figure 12 is actually called "one bit synchronizer", it can only be used for one bit asynchronous signal which must be wider than that of the Current stage’s clock, otherwise it may be unable to adopt this asynchronous signal.(2) why is the circuit in figure 13 can only be used in one bit asynchronous signals?When two or more asynchronous signals (control or address) simultaneously get into the current time domain and take control the circuit of current time domain, problems arise if these signals are all synchronized using the same circuit in FIG. 13. Skews has arisen between two or more asynchronous signals (control or address) due to connection delays or other delays, and then the skew is greatly enlarged via the synchronizer in Figure 13 when getting into the current time domain, or competition may caused and finally leading to an error in the time domain circuit.Figure 14 Problem-passing multiple control signals between clock domainsIf the asynchronous data bus is to enter the current time domain, the circuit in Figure 13 cannot be used either, because data change very randomly and the width of 0 or 1 has nothing to do with the clock pulse of the current time domain, so the circuit in Figure 13 may be unable to adopt the correct data.(3) Please note that the second trigger is not used for avoiding the occurrence of "metastable state", on the contrary, it can prevent the transmission of metastable state. In other words, once the first flip-flop becomes metastable (possibly), due to the second flip-flop, the metastability will not be transmitted to the circuit following.(4) The first-stage trigger has a metastable state, which means it will require a recovery time to stabilize again, or it is also called Withdrawal from metastable state. The recovery time plus the establishment time of the second-stage flip-flop (say more precisely, maybe also minus the clock skew) is less than or equal to the clock period, which can be easily satisfied. This is means thees two stages of flip-flop should be put together as close as possible, without any combinatorial logic between them or excessive skews to the clock, and then the second-stage flip-flop can adopt data stably and preventing the transmission of metastable state.(5) FF1 is the sampling output of FF2, so of course, what is output by FF1 is  what output by FF2, everything is the same except one cycle of delay. Note that “meta-stableit” means that once the data of FF1 enters, its electrical level would be indefinite and maybe incorrect. So although this method can prevent transmission of metastable state, it does not guarantee the data after the two-stage flip-flop is correct. Therefore, this kind of circuit always has a certain amount of fault-tolerance. This applies only to a some error-insensitive cases, but for other sensitive circuits, dual-port RAM or FIFO are better choices.2. The input pulse could be less than a synchronous circuit under a clock cycle width How is that possible? Has it not less than the original clock? For this case, the Feedback shown in Figure 15 below may usually be taken into consideration. The analysis of this circuit is as follows: Assume that the input data is high level, because the first flip-flop FF1 is high-level cleared, then all outputs should also be high and correctly adopted. On the other hand, if the input is low-level, data of FF1 would be forced to clear and the output level is zero, which ensures the correctness of the output.Figure 15 Synchronous circuit--input pulse may be less than one clock cycle width  Book SuggestionBuilding Embedded Systems: Programmable Hardware 1st ed. EditionThis is a book for embedded-system engineers and intermediate electronics enthusiasts who are seeking tighter integration between software and hardware. Those who favor the System on a Programmable Chip (SOPC) approach will in particular benefit from this book. Students in both Electrical Engineering and Computer Science can also benefit from this book and the real-life industry practice it provides.--Changyi GuDigital Integrated Circuit Design Using Verilog and Systemverilog 1st Edition, Kindle EditionFor those with a basic understanding of digital design, this book teaches the essential skills to design digital integrated circuits using Verilog and the relevant extensions of SystemVerilog. In addition to covering the syntax of Verilog and SystemVerilog, the author provides an appreciation of design challenges and solutions for producing working circuits. --Ronald W. MehlerPower Converters with Digital Filter Feedback Control 1st Edition, Kindle EditionThis book builds a bridge for moving a power converter with conventional analog feedback to one with modern digital filter control and enlists the state space averaging technique to identify the core control function in analytical, close form in s-domain (Laplace). It is a useful reference for all professionals and electrical engineers engaged in electrical power equipment/systems design, integration, and management.--Keng C. Wu Relevant information "Discussion on the influencing factors of clock in FPGA design"About the article "Discussion on the influencing factors of clock in FPGA design", If you have better ideas, don't hesitate to  write your thoughts in the following comment area. You also can find more articles about electronic semiconductor through Google search engine, or refer to the following related articles.To Solve the Problems of Cloud Skyrocket--Edge ProcessingFPGAs Power Facial Recognition Technology Was Issued by NECNew Software for C2000 MCUs Eliminates the FPGA in industrial designsCustomisable Ethernet switch designed for embedded applicationsMouser signs Intel FPGA board firm ReFLEX CES
kynix On 2018-03-31   755

Kynix

Kynix was founded in 2008, specializing in the electronic components distribution business. We adhere to honesty and ethics as our business philosophy and have gradually established an excellent reputation and credibility in our international business. With the accurate quotation, excellent credit, reasonable price, reliable quality, fast delivery, and authentic service, we have won the praise of the majority of customers.

Follow us

Join our mailing list!

Be the first to know about new products, special offers, and more.

Kynix

  • How to purchase

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

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

authentication

Kynix

© 2008-2026 kynix.com all rights reserve.