introduction
Intelligent sensors, which are composed of sensor technology, communication technology and computer technology, have attracted people's attention in process control and signal monitoring due to their high accuracy, good reliability and diverse functions, and have become a hot topic of research at home and abroad. This paper designs a wireless sensor system for real-time monitoring of environmental information. In practical applications, it can accurately measure and reliably transmit environmental parameters, reflecting the advantages of digitalization, intelligence and wirelessness of sensor systems.
The system is based on the MSP430F149 ultra-low power microcontroller and is equipped with a new type of micro low-power sensor. It can measure and process the temperature, humidity, light intensity, harmful gas concentration and other parameters of the measured environment in real time. It is battery-powered and wirelessly transmitted, avoiding the cumbersome wiring and having good portability.
System hardware design
The entire sensor system includes a microprocessor module (16-bit single-chip microcomputer MSP430F149, calendar clock chip, reset circuit and peripheral circuit), a sensor measurement module (temperature and humidity sensor, light intensity sensor, semiconductor combustible gas sensitive element MQ306A), a memory module (Flash memory SST25VF020), a data communication module (serial communication, wireless communication), and a power supply module (LT1962EMS83.3, LT1761ES5-5, LTC3459ES6). The system block diagram is shown in Figure 1.
Microprocessor Module
MSP430F149 is an ultra-low power microcontroller produced by TI. It can operate under the conditions of 1.8 V ~ 3.6 V voltage and 1 MHz clock. It has 5 power saving modes and the current consumption is 0.1μA ~ 400μA. It can fully save power during data detection and meet the energy-saving requirements under battery power supply. It has powerful processing capabilities (RISC structure, 8MHz crystal, drive instruction cycle 125ns) and rich on-chip peripherals (60KB+256B Flash, 2KB RAM, 12-bit A/D conversion, 2 serial ports/SPI interfaces, 48 I/O ports, etc.).
PCF8563 is an industrial-grade low-power multi-function clock/calendar chip with I2C bus interface launched by Philips. PCF8563's multiple alarm functions, timer functions, clock output functions and interrupt output functions can complete various complex timing services, and even provide watchdog functions for microcontrollers. The device's internal clock circuit, oscillation circuit, low voltage detection circuit (1.0 V) and two-wire I2C bus communication method not only make the peripheral circuit more concise, but also increase the reliability of the chip. Moreover, after each read and write of data, the embedded word address register automatically generates an increment. Its connection circuit is shown in Figure 2.
Sensor measurement module
Light intensity sensor
The system uses TI's TSL230B to measure the ambient light intensity. The device uses advanced LinCMOSTM technology and is mainly composed of polysilicon photodiodes and monolithic CMOS current-frequency integrated converters. High-resolution illuminance/frequency conversion can be completed without external components. Light of a certain spectrum can be converted into current, and then converted into the corresponding pulse frequency by the current/frequency converter. The frequency of the output square wave or triangle wave is completely determined by the illumination amplitude, with high resolution, and can be directly connected to the microprocessor, as shown in Figure 3. S0 and S1 are sensitivity control terminals, which actually adjust the sensitivity by changing the photosensitive area above the device; S2 and S3 are full-scale selection terminals; OUT is the frequency signal output terminal, which enters the capture input of the microcontroller. By calculating the difference in the counter value between two capture times, the output frequency value can be calculated. According to the frequency-energy relationship curve shown in Figure 4, the light intensity (unit: μW/cm2) can be obtained.
Temperature and humidity sensor
The temperature and humidity are measured using the SHT11 intelligent humidity/temperature sensor developed by the Swiss company Sensirion. It uses the patented CMOSens technology (the integration of CMOS and sensor technology) and has an external size of only 7.5 mm × 5 mm × 2.5 mm. SHT11 has an I2C bus interface, a simple interface circuit, and features digital output, no debugging, no calibration, and good consistency.
[page]
The SHT11 mainly includes relative humidity sensor, temperature sensor, amplifier, A/D converter, calibration memory (E2PROM), random access memory (RAM), status register, cyclic redundancy check code (CRC) register, two-wire serial interface, control unit, heater and low voltage detection circuit; it can output full calibration relative humidity and temperature values; it has dew point value calculation output function; the humidity value output resolution is 14 bits, the temperature value output resolution is 12 bits, and it can be programmed to 12 bits and 8 bits; it has data transmission verification function. This sensor has the advantages of excellent quality, ultra-fast response, strong anti-interference ability, and high cost performance. Its working principle is shown in Figure 5.
Gas Sensor
The system uses the semiconductor combustible gas sensitive element MQ306A. This sensor is a tin dioxide semiconductor gas sensitive element with the characteristics of high sensitivity, high stability, long life, simple driving circuit, and large electrical signal output. It is suitable for the detection of combustible gas leaks in homes, factories, and commercial places. The sensor obtains the change of element resistance through the change of voltage on a fixed or adjustable external load resistor. The measurement circuit passes the output signal of the sensor through a low-pass Butterworth filter and a low-power operational amplifier LMV324 to achieve impedance matching, and enters the 12-bit A/D conversion of the single-chip microcomputer MSP430F149 to obtain the resistance change value. Then, the relationship between the device resistance and the gas concentration is reflected according to the sensitivity characteristic curve of MQ306A.
Memory Module
The memory module uses SST25VF020 from SST, which is based on high-performance SuperFlash technology, uses standard 8-pin SOIC package and ultra-thin WSON package, uses fewer pins, and can reduce circuit board space, energy consumption and cost compared with non-volatile memory solutions such as EEPROM. It provides the latest automatic address increment (AAI) data write mode, which can reduce the data write time of the entire flash memory by 50% compared with the single-byte data write mode. The size of SST25VF020 is 2Mbit, with low power consumption, flexible and fast erasure, and write protection.
Data communication module
[page]
The wireless communication module uses the nRF401 wireless transceiver developed by Nordic Company of Norway. The nRF401 can work in the 433.92MHz/434.33MHz ISM frequency band. It uses FSK modulation and demodulation technology, has strong anti-interference ability, and uses PLL frequency synthesis technology, has good frequency stability, and the transmission power can reach 10dB, the receiving sensitivity can reach -105dB, the data transmission rate can reach 20kb/s, and the working voltage range is +3V~5V. The peripheral circuit of the nRF401 wireless transceiver is simple, and it can be directly connected to the serial port of the microcontroller. The working frequency is locked at 434.33MHz in the design.
The ANT1 and ANT2 pins of nRF401 are the input of the low noise receiving amplifier LNA when receiving and the output of the transmitting power amplifier (PA) when sending. The antenna can be connected to nRF401 in a differential manner, and a 50 Ω single-ended antenna can also be connected to nRF401 through a differential conversion matching network. The actual application distance can reach about 300 m.
This system uses RS232 serial port to realize serial communication between PC and sensor system, and uses MAX3232 for driving.
Power Module
The system is powered by three AA batteries and uses LT1962, LT1761, and LTC3459ES6 power devices to provide appropriate operating voltage for the microcontroller, sensors, etc.
System software design
Design of single chip microcomputer control software
The measurement and control program is developed using the development environment IAR Embedded Workbench for the MSP430 series microcontroller, which supports both assembly language and C language. This system uses C language to develop the measurement and control program, and uses the JTAG interface of the MSP430 series microcontroller. The program can be easily debugged and the code downloaded through the FET simulator provided by TI. All programs are modularly designed, and the main process is shown in Figure 6.
Host computer software design
The host computer control software is programmed using VC++6.0 and Access2002. It is mainly divided into data processing module and database module according to its functions, as shown in Figure 7.
The data processing module mainly completes the functions of screen display of data and printing and output of reports. The database module mainly realizes the functions of querying, counting, deleting and printing data records. The database provides a variety of constraints for fast query, such as query by time period, query by sensor type, query by measurement and control machine, etc. The statistical data can be displayed in the form of tables, dynamic curves, histograms, etc.
Conclusion
This system realizes the real-time wireless monitoring of the data collected by the sensor system when the computer cannot or is difficult to control the controlled object by the wired system (especially the operation site in a harsh environment). The system has low power consumption and can collect and process data in various environments.
Previous article:Developing a human proximity sensing system using infrared sensors
Next article:Design of intelligent sensor system based on MC9S08SH4 and AD7705
Recommended ReadingLatest update time:2024-11-16 21:28
- Mir T527 series core board, high-performance vehicle video surveillance, departmental standard all-in-one solution
- Akamai Expands Control Over Media Platforms with New Video Workflow Capabilities
- Tsinghua Unigroup launches the world's first open architecture security chip E450R, which has obtained the National Security Level 2 Certification
- Pickering exhibits a variety of modular signal switches and simulation solutions at the Defense Electronics Show
- Parker Hannifin Launches Service Master COMPACT Measuring Device for Field Monitoring and Diagnostics
- Connection and distance: A new trend in security cameras - Wi-Fi HaLow brings longer transmission distance and lower power consumption
- Smartway made a strong appearance at the 2023 CPSE Expo with a number of blockbuster products
- Dual-wheel drive, Intellifusion launches 12TOPS edge vision SoC
- Toyota receives Japanese administrative guidance due to information leakage case involving 2.41 million pieces of user data
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- A Brief Analysis of Object-Oriented Thinking in RT-Thread System
- EEWORLD University ---- Linux driver tutorial (by itop4412)
- DSP 28335 program automatic upgrade solution
- What is the IoT edge? Where is the IoT edge?
- ISO13400 Ethernet Diagnostic Protocol
- The 4th volume of Mr. Yang's new book "New Concept Analog Circuits" is online! Hurry up if you need it~
- Can UC28025 be frequency modulated?
- Modification + Disassembly of portable ion air purifier and modification of coal stove lighter 2---Modification was successful and the cause of failure was found.
- Free application for Vicor high power DC-DC converter / ZVS buck regulator
- [2022 Digi-Key Innovation Design Competition] Raspberry Pi collects power grid data