automatic Related Articles
Stay Ahead with Expert Electronics Insights,
Industry Trends, and Innovative Tips
- Electronic Components
- News Room
- General electronic semiconductor
- Components Guide
- Sort by
- Robots
- Transmitters
- Capacitors
- IC Chips
- PCBs
- Connectors
- Amplifiers
- Memory
- LED
- Diodes
- Transistors
- Battery
- Oscillators
- Resistors
- Transceiver
- RFID
- FPGA
- Mosfets
- Sensor
- Motors, Solenoids, Driver Boards/Modules
- Relays
- Optoelectronics
- Power
- Transformer
- Fuse
- Thyristor
- potentiometer
- Development Boards
- RF/IF
- Semiconductor Information
- Sensors
- PCB
- transistor
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
Radio Frequency Identification (RFID) technology has been developed rapidly in recent years. The key is an automatic identification technology which uses radio waves to communicate. Compared with the traditional recognition technology, it has the advantages of fast recognition, large data storage and data updatable. This is a video about brief introduction to RFIDThe basic principle of the data communication is the electromagnetic coupling between the reader and the electronic tag affixed to the object. This article will take the RFID technology as the research object, analyzing the basic definition of RFID, the components of the system, the working principle, operating frequency, the main application examples and development trend of RFID technology. In this article, we will make some intorduction to RFID and analyze how it will develop in the future. CatalogI What is RFID?II Structure of RFID system2.1 Basic components of RFID2.2 RFID middlewareIII Basic working principle of RFID technologyIV RFID operating frequency4.1 Low frequency 4.2 High Frequency4.3 Ultra-high frequency4.4 Active RFID technologyV RFID practical application examples5.1 Necessity of applying RFID technology to retail logistics5.2 Why to use RFID technology instead of existing technology5.3 Application of RFID technology in retail industryVI Development trend of RFID application system6.1 More powerful system compatibility6.2 System networking6.3 Greater system data volume6.4 High frequency systemFAQI What is RFID?Radio Frequency Identification (RFID) technology, also known as electronic tag, is a communication technology that uses radio signals to identify specific targets and read and write related data. And there is no need to identify the mechanical or optical contact between the system and the specific target. It can achieve fast reading and writing, non-visual recognition, mobile recognition, multi-target recognition, locating and long-term tracking management. The recognition work is not affected by bad environment, and it can achieve fast reading speed, read information safe and reliable. Therefore, RFID technology has a wide range of application prospects. Radio frequency identification is a non-contact automatic identification technology. It can automatically identify the target object and obtain the relevant data through the radio frequency signal. The identification work can be applied to all kinds of bad environment. RFID is a simple wireless system with only two basic devices. It is used to control, detect and track objects. The system consists of an interrogator and many transponders.Due to the rapid development of RF technology, transponders are also called smart tags or tags. The RFID reader can communicate wirelessly with the electronic tag through the antennas, and can read and write the tag identification code and memory data. A typical reader includes a high-frequency module, a control unit and a reader antenna. II Structure of RFID system2.1 Basic components of RFIDRFID system mainly includes four parts: electronic tag, reader, antenna and application software. The following picture is the block diagram of the system:RFID system structureFrom the above diagram, we can see that there are input and output of data in the module of reader and electronic tag, and the energy and clock are also transmitted in the two modules.2.1.1 ReaderReader is a device for reading (or writing) tag information that can be designed to be hand-held or fixed type. Hand-held is a smaller type used by supermarket cashiers; Fixed is a stationary reader placed by a logistics company at the door when goods are stored in a warehouse. As soon as the object swept by, the scan was completed in an instant.Reader working model2.1.2 AntennaAntenna is used to transmit RF signals between tags and readers.2.1.3 TagsTags are made up of coupling elements and chips. Each tag has a unique electronic code attached to an object to identify the target object. The following picture is the query tag diagram of readers. Reader query tag diagram2.1.4 Application softwareApplication software is a part of RFID system, which is software developed for different needs. It can read, write and control electronic tags through readers, and process and count the collected data. 2.2 RFID middlewareIn the application program, the API can connect to the RFID reader and retrieve the data from the RFID tag through the universal application program interface which can be provided by middleware. RFID middleware acts as a bridge between RFID tags and applications.In this way, even when the FRID reader category or application changes, the application still doesn't need to make any changes. It just need to configure the middleware accordingly. This can reflect the flexibility and importance of middleware.Practical application of RFID middlewareThe benefits that the application of RFID middleware can be brought to an enterprise are as follows:- According to their own business requirements and actual usage, enterprises can import the required data into the application software by self-configuring the RFID middleware parameters, which can fully reflect the flexible characteristics of RFID middleware.- The import of RFID data only needs to change the setting of RFID middleware when some changes occur in enterprise application software.- If you need to increase the number of RFID readers, then enterprises only need to do some related RFID middleware settings. It doesn’t need to change any related procedures, which reduce unnecessary trouble, and save time.- It shortens the implementation cycle of RFID application, and enterprises can directly import the relevant data of RFID. III Basic working principle of RFID technologyA complete RFID system is composed of three parts: reader, tag with transponder and application software system. Its working principle is: Reader sends out the energy of a radio wave at a specific frequency to drive the transponder, and the circuit will send out the internal data. At this time, the reader will receive the data in order and interpret them, then send it to the application for some corresponding processing.RFID working principleThe information exchange between the reader and the transponder is usually half-duplex communication mode. In this case, the reader can provide the passive transponder with energy, timing and other related contents by coupling. In practical application, the object recognition information can be collected, processed and transmitted remotely through Ethernet and so on. Transponder is the main information carrier of its system. At present, most of the transponders in the market are composed of coupling elements (including coils, microstrip antennas, etc.) and passive application units composed of microchips. The reader can control and process the information center according to the structure and technology of RFID system information. Its reader is usually composed of a transceiver module, a coupling module, an interface unit and a control module. IV RFID operating frequencyAt present, the operating frequencies of RFID products are divided into low frequency, high frequency, ultra high frequency and so on. RFID products with different frequencies will have different characteristics. 4.1 Low frequency (125KHz ~ 135KHz)Related operation at this frequency is mainly done by inductive coupling. There is a transformer coupling between the inductor coil and the reader coil. The voltage which can be induced in the antenna of the inductor can be rectified by the action of the relative alternating field of the reader. Features:- Apart from some related effects of metal materials, the general low-frequency system can penetrate any material, but it will not reduce its maximum possible reading distance.- Readers working at low frequencies have no special licensing restrictions on the entire planet.- Low-frequency products have different packaging forms. The disadvantage of the best package is that it is too expensive, but it has a service life of more than 10 years.- The frequency of the sensor working in low frequency ranges from 120KHz to 134 kHz. The wavelength of this band is about 2500m. 4.2 High frequencySensors at this frequency will no longer need a coil to wrap it up. Antennas can be made by etching or printing. The related operations of sensors are usually done by load modulation. That is, by turning on and off the load resistance on the inductor, the voltage on the reader antenna will be changed, which can realize the amplitude modulation of the antenna voltage with the remote inductor. If people use data to control load voltages on and off, the data can be transmitted quickly from the sensor to the reader.Features: - Apart from metallic materials, the wavelength of this frequency can pass through most materials, but it will reduce the reading distance. Sensors often need a distance away from the metal.- Although the magnetic field region at this frequency decreases rapidly , a relatively uniform read - write region can be produced.- The system has good anti-collision property and can read many electronic tags at the same time.- Sensors usually exist in the form of electronic tags. 4.3 Ultra-high frequencyThe ultra-high frequency system will transmit energy by electric field. The energy of the electric field will not decrease rapidly. The reading distance of UHF is relatively long, and the passive system can reach about 10m. It is mainly realized by capacitive coupling.Features: - This frequency band has a good reading distance, but it is difficult to define the reading region.- It has a particularly high rate of data transmission and can read a large number of related electronic tags in a very short time.- The radio waves in the UHF band cannot pass through many kinds of application materials, especially water, dust and other substances. For high-frequency electronic tags, however, the tags need not be separated from metals.- Tag antennas are usually in two forms: long stripes and tags. The antenna has two different shapes: linear and circular polarization. It is designed to meet the needs of different applications in the market. 4.4 Active RFID technologyActive RFID is characterized by large amount of data transmission, long communication distance, high reliability, low transmitting power and good compatibility. Compared with passive RFID, it has obvious technical advantages.The basic ideas of RFID technology are: By adopting advanced technical means, people can automatically identify and manage all kinds of objects and equipment in different states.As a new kind of automatic identification technology, RFID technology has a great potential space for development in China, and it has been applied and developed in radio technology. V RFID practical application examplesIn this chapter, we will mainly expound the logistics analysis of retail industry based on RFID technology.5.1 Necessity of applying RFID technology to retail logisticsThe benefits of using RFID technology are not limited to the benefits of retail itself. With the use of RFID technology to create a new revenue stream, government institutions can reduce the loss and enhance the safety and security. At the same time, logistics companies, library systems can also reduce inventory costs.The application of RFID technology in retail can obtain the following benefits: - Increase project securityTag items only allow objects to be tracked in a specified range or device. RFID technology can also improve the efficiency of inventory management. After all, inventory management is often a time-consuming and exhausting business for retailers. - Serialization DataEach item has its unique identification number, so it is convenient to distinguish it from other items. - Real time information flowThe changing state of a project can be quickly updated throughout the supply chain. - Reduced manual participationRFID technology can track objects automatically without manual counting , data acquisition and bar code scanning , which can save labor cost and human error. The RFID technology provides a real-time visualization technology that allows inventory managers to monitor inventory supplies in real time. This reduces inventory costs and keeps inventory at an optimal level, which avoids shortage and other phenomena at the same time. 5.2 Why to use RFID technology instead of existing technologyThe question now is: why did retail change existing technology by adopting RFID? RFID technology is very similar to the existing bar code technology and non-contact memory. The use of new technologies can bring financial benefits (such as saving money) and can solve some practical problems that can not be solved by the existing technology. Compared with other automatic recognition techniques, RFID has significant advantages. 5.3 Application of RFID Technology in Retail industryRFID technology has been used in the retail industry such as smart shelf. The smart shelf is a kind of shelf which can prevent the phenomenon of product shortage. The shelf combines the RFID reader. Each unit shelf has a RFID tag that allows readers to track the inventory of their products. The main purpose of smart shelf is to support the replenishment at any time and to keep the shelves never out of stock, thus it has been widely used in retail industry and libraries. On one hand, it provides customers with information about the products; on the other hand, it provides inventory information for retail owners and can accurately locate the goods. The purpose of these applications is to offer better and more effective service to them. The use of these technologies will not be limited. It can make customers feel more effective and easier to shop.VI Development Trend of RFID Application systemIt can be predicted that future RFID systems will have the following technological trends: 6.1 More Powerful System CompatibilityAt present, because of the disunity of standards, products from many manufacturers are incompatible with each other. Therefore, it is required that the system should have a very strong compatibility, so that it can deal with the products of multiple manufacturers. 6.2 System NetworkingIn many applications, the data collected by different systems need to be processed uniformly, and then provided to users for use, which requires the management of RFID systems on a networked basis. The aim is to realize the remote control management of the system. 6.3 Greater System Data VolumeThe future RFID system will deal with a large amount of data, so it is necessary for the system to have a stronger data storage capacity and data processing capacity. 6.4 High frequency systemThe UHF RFID system has many advantages compared with the low frequency system, such as small size, long recognition distance, repeatable reading and writing, and no forgery. Therefore, with the decrease of manufacturing cost, the application of UHF system will be more extensive. FAQ 1. What is RFID used for?Radio Frequency Identification (RFID) is the wireless non-contact use of radio frequency waves to transfer data. Tagging items with RFID tags allows users to automatically and uniquely identify and track inventory and assets. 2. What is RFID and how it works?RFID is a method of data collection that involves automatically identifying objects through low-power radio waves. Data is sent and received with a system consisting of RFID tags, an antenna, an RFID reader, and a transceiver. 3. What RFID means?Radio Frequency Identification (RFID) refers to a wireless system comprised of two components: tags and readers. The reader is a device that has one or more antennas that emit radio waves and receive signals back from the RFID tag. 4. Is RFID harmful to human?It is a non-ionizing type of radiation, but some researches show that it could have a negative impact on the human body in a long-term period [11, 12]. So, for the safety reasons, manufacturers of the RFID systems have limited the range of the RFID antennas used in their systems. 5. Is RFID tag and FASTag same?FASTag is a device that employs Radio Frequency Identification (RFID) technology for making toll payments directly while the vehicle is in motion. FASTag (RFID Tag) is affixed on the windscreen of the vehicle and enables a customer to make the toll payments directly from the account which is linked to FASTag. 6.What is RFID and its advantages?RFID technology automates data collection and vastly reduces human effort and error. RFID supports tag reading with no line-of-sight or item-by-item scans required. RFID readers can read multiple RFID tags simultaneously, offering increases in efficiency. 7. Why is RFID bad?Some negative effects are that its deadly, if RFID tags combine with static electricity you can die. Another negative effect is that the government is slowly taking away surviving resources and giving ultimatums, such as if you don't get the RFID tracking chip your public assistance will be terminated. 8.What are the disadvantages of RFID?a. Materials like metal & liquid can impact signal.b. Sometimes not as accurate or reliable as barcode scanners.c. Cost – RFID readers can be 10x more expensive than barcode readers.d. Implementation can be difficult & time consuming. 9.How do I charge my RFID FASTag?In order to recharge your FASTag sticker, just hit the Add Money option in your Paytm app. FASTag will automatically reserve some amount from your wallet, which can be used at toll plazas later. Do note that FASTag can be used only after 20 mins of adding money to the Paytm Wallet. 10. Can I use existing RFID for FASTag?If a vehicle already has an RFID tag, it might already be activated. When you buy the vehicle, RFID tag payment was also done. It might also have a minimum balance of INR 100 or 200 as is required by the bank. You can recharge it with your Customer ID or Wallet ID of FASTag. 11. How does RFID work without power?Passive RFID tags have no power of their own and are powered by the radio frequency energy transmitted from RFID readers/antennas. The signal sent by the reader and antenna is used to power on the tag and reflect the energy back to the reader. 12. What are the types of RFID tags?RFID tags can be grouped into three categories based on the range of frequencies they use to communicate data: low frequency (LF), high frequency (HF) and ultra-high frequency (UHF). Generally speaking, the lower the frequency of the RFID system, the shorter the read range and slower the data read rate. 13.How do I know if I have an RFID chip?The best way to check for an implant would be to have an X-ray performed. RFID transponders have metal antennas that would show up in an X-ray. You could also look for a scar on the skin. Because the needle used to inject the transponder under the skin would be quite large, it would leave a small but noticeable scar. 14. Does RFID require power?Active RFID tags possess their own power source – an internal battery that enables them to have extremely long read ranges as well as large memory banks. Typically, active RFID tags are powered by a battery that will last between 3 - 5 years, but when the battery fails, the active tag will need to be replaced. 15. What is the difference between a QR code and RFID?QR codes must always be “read-only”, whereas RFID tags can be “read-write”, depending on the radio frequency that's being used. ... So, not only are RFID tags futuristic and have more uses than QR tags, they also have many more applications. The read range is far superior for an RFID tag.
kynix On 2018-03-29
Today I want to share a project of making a simple automatic street light controller using relay and LDR I found in circuitdigest with you. You have seen street light which automatically gets turned on in the night and gets turned off in the morning or day time, there are sensors who senses the light and control the light accordingly. These Street lights are an important project in smart cities. So here in this project, we are going to make a Simple Automatic Street Light Controller Using Relay and LDR. This circuit is very simple circuit and can be built with Transistors and LDR, you don’t need any op-amp or 555 IC to trigger the AC load. Here we have used an AC bulb as street light. Some applications of this circuit are street light controlling, home/office light controlling, day and night indicators, etc. Components Required: Transistor BC547 -2 LDR (Light Dependent Resistor) Relay Resistor 1k 100k Potentiometer Power Supply 12v -1 Connecting wires Jumper wires Screw terminal Block 2 pin or 3 pin Bread Board or Perf Board 1n4007 Diode AC supply AC Load or Bulb Here you may want to know: what is LDR? LDRs are made from semiconductor materials to enable them to have their light sensitive properties. There are many types but one material is popular and it is cadmium sulphide (CdS). These LDRs or PHOTO REISTORS works on the principle of “Photo Conductivity”. Now what this principle says is, whenever light falls on the surface of the LDR (in this case) the conductance of the element increases or in other words the resistance of the LDR falls when the light falls on the surface of the LDR. This property of the decrease in resistance for the LDR is achieved because it is a property of semiconductor material used on the surface. LDR (Light Dependent Resistor) Circuit Diagram and Explanation: Below is the circuit diagram of this Light sensing Street Light: In this project, we have used an LDR (Light Dependent Resistor) which is responsible for detecting light and darkness. The resistance of LDR increases in darkness and reduces in presence of light. This circuit is same as a Dark Detector or Light Detector Circuit, only here we have replaced simple LED with a AC load, using a Relay. Two BC547 NPN transistors are used to drive the relay. Automatic Street Light circuit using LDR and relay Whenever light falls over LDR its resistance get decreased and transistor Q1 turns ON and collector of this transistor goes LOW, and this makes the second transistor turns OFF due to getting a LOW signal at its base, so relay also remain turned OFF due to second transistor. Now whenever LDR senses Darkness, mean no light, then transistor Q1 turned ON due to increase in the resistance of LDR which is responsible for voltage drop at the base of Q1. Due to a LOW signal at the Q1 base, Q2 transistor gets a HIGH signal from the collector of Q1 and turns ON the relay. Relay turned ON the AC load that is connected to relay. A 10K pot is also used for setting up the sensitivity of the circuit. So this is how automatic Street Lights turns on in the night and turn off in the day, and below is the effect pictures. >>>>> > >>>> Ref. KY56-BC547A KY32-1N4007
kynix On 2017-09-22
Join our mailing list!
Be the first to know about new products, special offers, and more.
Feature Posts
How Resistors Work: From Basic Principles to Advanced Applications2025-07-30
DC Switching Regulators: Principles, Selection, and Applications2025-05-30
FPGA vs CPLD: In-depth Analysis of Architecture, Performance and Application2025-05-07
MOSFET Technology: Essential Guide to Working Principles & Applications2025-05-04
SMD Resistor: Types, Applications, and Selection Guide2025-04-30