The current signal output by instruments and sensors is mostly 4-20mA. Why is it 4-20mA? Because 4-20mA sensors are mostly two-wire systems, that is, the signal line and the power line share two wires. If the starting point is 0mA, it will be impossible to distinguish whether the signal is 0mA or the sensor is not working; in addition, the starting point is 4mA, which is also helpful for the system to judge whether the sensor is powered off or short-circuited.
So how do we generate a 4-20mA current signal? With the rapid development of digital circuits today, systems with single-chip microcomputers as the core are everywhere. However, single-chip microcomputers are digital signals, while current is an analog signal. This requires DA conversion, that is, converting digital signals into analog signals.
At present, the common scheme for the microcontroller to control the system to output a 4-20mA current signal is:
Today I want to recommend a chip: AD5410, which is produced by ANGLOG DEVICE. It is a single-channel 12-bit serial input DAC chip. The communication method with the microcontroller is SPI bus. The microcontroller only needs to write the value to AD5410 through SPI to output the corresponding current value. Its power supply range is: 10.8-40V.
The above picture shows a 4-20mA current output product designed with PIC microcontroller as the core. AD5410 has a rich error diagnosis mechanism, which can greatly improve the anti-interference ability of the design. The current output formula is as follows:
N: The resolution of DA conversion, this chip is 12 bits;
D: is the decimal equivalent value of the loaded DAC code;
Previous article:Analysis of the application method of PIC microcontroller EUSART serial communication interface
Next article:How to send data on PIC microcontroller
- Popular Resources
- Popular amplifiers
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- STMicroelectronics discloses its 2027-2028 financial model and path to achieve its 2030 goals
- 2024 China Automotive Charging and Battery Swapping Ecosystem Conference held in Taiyuan
- State-owned enterprises team up to invest in solid-state battery giant
- The evolution of electronic and electrical architecture is accelerating
- The first! National Automotive Chip Quality Inspection Center established
- BYD releases self-developed automotive chip using 4nm process, with a running score of up to 1.15 million
- GEODNET launches GEO-PULSE, a car GPS navigation device
- Should Chinese car companies develop their own high-computing chips?
- Infineon and Siemens combine embedded automotive software platform with microcontrollers to provide the necessary functions for next-generation SDVs
- Continental launches invisible biometric sensor display to monitor passengers' vital signs
- Ask a silly question about f_mount()!
- Power supply technology and electronic transformers
- TINA-TI
- [Evaluation of SGP40] + Cloud platform configuration for IoT remote monitoring application development
- Satellite DVB system in the European 1112GHz band
- Cognex Network Automation Software for In-Sight Wafer Readers
- [RVB2601 creative application development] + AHT10 temperature and humidity sensor
- A nice frame diagram
- Measured CC2530 OSAL sleep wake-up time, current, and power consumption
- Impedance Matching and the Smith Chart: Basic Principles