Design of grain depot temperature sensor network based on CC2430 and DS18B20

Publisher:Blissful567Latest update time:2009-12-28 Source: 单片机与嵌入式系统Keywords:DS18B20 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1 Sensor Network Architecture

The architecture of a typical sensor network includes distributed sensor nodes, gateway nodes, the Internet, and user interfaces. In a sensor network, nodes are arranged in the monitored area. Each sensor network is equipped with a gateway connected to a transmission network. The gateway transmits the measured data from the sensor area to a base station that provides remote connection and data processing through the transmission network, and the base station is connected to a remote database through the Internet. Finally, the collected data is analyzed and mined and provided to the end user through an interface.

The main structure of this system is that each CC2430 module is connected to multiple DS18820 temperature sensors. The temperature sensors are arranged in the grain warehouse according to a certain pattern and connected to the current CC2430 module through a single bus. These CC2430 modules are networked using wireless sensor network technology, and the data is sent to the local warehouse data concentrator, and the data concentrator is connected to the local monitoring host through a bridge, as shown in Figure 1. Finally, the remote terminal user is connected to the local monitoring system through the Internet to realize remote networked grain warehouse quantity monitoring, as shown in Figure 2.

2 Sensor layout model

The schematic diagram of the monitoring point layout of the flat warehouse grain pile temperature data information collection system is shown in Figure 3. The temperature sensors in the warehouse are set to arrange 3 groups of temperature sensors on each side of the east, south, west and north walls, with a spacing of 1 m between each group; the spacing from the wall to the inside on the east, south, west and north sides is 0.25 m, 0.25 m, 0.5 m, 1.0 m, 1.0 m, etc.

The elevation diagram of the monitoring points of the flat warehouse grain pile temperature data information collection system is shown in Figure 4. The grain pile temperature monitoring points are arranged from the grain surface downward and from the warehouse bottom upward. According to the 6m grain loading height, 8 temperature sensors are set for each single bus cable. The sensor spacing from the grain surface downward and from the warehouse bottom upward is 0.30 m, 0.70 m, 1.0 m, and 1.0 m. The data information of the three grain pile temperature monitoring points on the east, south, west, and north sides of the warehouse in the same plane is sorted by averaging to improve the reliability and accuracy of the monitoring data information.

3 DS18B20 single bus temperature sensor

The DS18820 digital thermometer provides 9-bit (binary) temperature readings, indicating that the device's temperature information is sent to or from the DS18820 via a single-wire interface, so only one wire (and ground wire) is required from the host CPU to the DS18820. The power supply for the DS18820 can be provided by the data line itself, without the need for an external power supply. Because each DS18820 has been given a unique serial number when it leaves the factory, any number of DS18820s can be stored on the same single-wire bus, which allows temperature-sensitive devices to be placed in many different places. The measurement range of the DS18820 is from -55°C to +125°C, with an increment of 0.5°C, and the temperature can be converted into digital within 1 s (typical value). The interface circuit of the DS18820 and CC2430 is shown in Figure 5.

The temperature reading process of multiple DS18820s is as follows: reset → send 55HMATCHROM command → send 64-bit address → send 44H start conversion command → delay → reset → send 55HMATCHROM command → send 64-bit address → send 0BE read memory command → continuously read 2 bytes of data (i.e. temperature) → reset → read the temperature of the next device.

4 CC2430 module

4.1 Main features of CC2430 chip

The CC2430 chip uses the architecture of the previous CC2420 chip, integrating the ZigBee radio frequency (RF) front end, memory and microcontroller on a single chip. It uses an 8-bit MCU (8051), has 128 KB of programmable flash memory and 8 KB of RAM, and also includes an analog-to-digital converter (ADC), several timers, AES128 coprocessor, watchdog timer, sleep mode timer with 32 kHz crystal oscillator, power on reset circuit, brown out detection circuit, and 21 programmable I/O pins. The CC2430 chip is produced using 0.18 μm CMOS technology; in receive and transmit modes, the current consumption is less than 27 mA or 25 mA respectively. The CC2430's sleep mode and ultra-short time to switch to active mode are particularly suitable for applications that require very long battery life.

The main features of the CC2430 chip are as follows: high-performance and low-power 8051 microcontroller core; integrated 2.4GHz RF radio transceiver that complies with the IEEE 802.15.4 standard; excellent wireless receiving sensitivity and strong anti-interference; only 0.9μA current consumption in sleep mode, and an external interrupt or RTC can wake up the system; less than 0.6μA current consumption in standby mode, and an external interrupt can wake up the system; hardware support for CSMA/CA function; a wide voltage range (2.0~3.6 V); digital RSSI/LQI support and powerful DMA function; with battery monitoring and temperature sensing functions; integrated 14-bit analog-to-digital conversion ADC; integrated AES security coprocessor; with 2 powerful USARTs that support several groups of protocols, as well as 1 MAC timer that complies with the IEEE802.15.4 specification, 1 conventional 16-bit timer and 2 8-bit timers; powerful and flexible development tools.

4.2 CC2430 module design

The CC2430 chip requires very few peripheral components to realize the signal transmission and reception functions. The circuit uses an unbalanced antenna, and connecting an unbalanced transformer can make the antenna performance better. The unbalanced transformer in the circuit is composed of capacitor C112 and inductors L102, L100, L101 and a PCB microwave transmission line. The entire structure meets the requirements of RF input/output matching resistance (50 Ω). The internal T/R switching circuit completes the switching between LNA and PA. A 32 MHz crystal oscillator circuit is formed by a 32 MHz quartz resonator (X100) and two capacitors (C108 and C109). A 32.768 kHz crystal oscillator circuit is formed by a 32.768 kHz quartz resonator (Y100) and two capacitors (C110 and C111). The voltage regulator supplies power to all pins and internal power supplies that require 1.8 V. Capacitors C115, C100, C101, C104, C102, C113, C103, C107, C106, and C105 are decoupling capacitors used for power supply filtering to improve the stability of chip operation. R101 and R102 provide precise bias resistance for the current, as shown in Figure 6.

5 Software Design

5.1 Host computer software design

In this system, the upper management software adopts a three-layer C/S mode to process the data sent by the sensor network in real time to form the data representation that users ultimately care about. After authorization, terminal users in the local area network can read the real-time data on the monitoring host to achieve remote monitoring. The monitoring application software also tracks and manages each node in the sensor network. For abnormal situations monitored, the upper management software uses sound, light, text messages, and telephone real-time alarm methods. It can display parameter lists, real-time curves (corresponding to specific values ​​and adjusting coordinates at will), real-time data, converted data, cumulative data, history, alarm screens, reports, and other displays. The statistical function can be specifically designed according to user needs.

5.2 Lower computer software design

In the network, each node has a fixed address. The sensor node connected to the monitoring host is a special node, which uses a serial interface to communicate with the monitoring host. The data transmission adopts the master-slave mode. The node connected to the monitoring host is the master station, which controls the communication timing within the network; other nodes are slave stations and can be addressed by the master station. The master node mainly completes the collection of data from each slave node and performs preprocessing; the slave node mainly completes the collection of raw data from various sensors, as shown in Figure 7.

6 Conclusion

The wireless temperature sensor network is based on the low-cost, low-power wireless single-chip CC2430, and uses the DS18820 temperature sensor to obtain data. It has the characteristics of simple circuit structure, stable and reliable operation, high detection accuracy, and flexible and convenient wireless data communication. It is particularly suitable for industrial field environments, monitoring closed spaces, and other special occasions that require multi-point monitoring. The application of this network has greatly improved the management level of central grain reserves, reduced management costs, and improved the safety of grain depots.

Keywords:DS18B20 Reference address:Design of grain depot temperature sensor network based on CC2430 and DS18B20

Previous article:Design of fuzzy control system for temperature and humidity in environmental laboratory
Next article:Remote temperature and humidity measurement and control system for flue-cured tobacco room based on Labview

Recommended ReadingLatest update time:2024-11-16 18:02

Design of a New Multi-point Temperature Measurement System
Design of a New Multiple Temperature Measurement System ZHOU Xingwei, YUAN Yifang (College of Optical and Electronics Engineering, University of Shangh ai for Science and Technology, Shanghai 200093, China) Abstract: The basic characteristic of DS18B20 was introduced in this article. The hardware and soft
[sensor]
Study on DS18B20 based on stm32f103zet6
Any DS18B20 has an internal 64-bit ROM to store the chip ID of the displacement (this provides great convenience for our multi-point acquisition). I use a 3-pin packaged chip. It is worth noting that: DS18B20 can work normally with one data line and one ground line, that is, VCC is not necessary. Why? Because DS18B20
[Microcontroller]
Study on DS18B20 based on stm32f103zet6
DS18B20 Intelligent Temperature Sensor Driver
/************Port definition, can be modified*****************/ sbit ledrs=P2^3; //Read and write control word     sbit leden=P2^5; //Enable control word sbit ledrw=P2^4; void write_com(uchar com) {   ledrw=0;  ledrs=0;  P0 =com;  delayl(1);  leden=1;  delayl(1);  leden=0; } void write_data(uchar date) {
[Microcontroller]
C program for DS18B20 of STC12C5A60S2 microcontroller
I've been working on 18B20 recently and found that it is very incompatible with the CPU due to its sensitivity to time signals. Since the speed of STC microcontroller is faster than 8051, it belongs to 1 clock/machine cycle high-speed microcontroller. The high speed is of course its advantage, but for transplanting
[Microcontroller]
Problems in PIC+DS18B20+LCD design and programming
1、mcu:pic18f25k22  2. Since the ds18b20 program has been written in the previous article, it will not be outlined for now;  3. LCD display uses SMS Sun LCD display;  4. The actual picture is as follows: 5. Use xc to compile and debug. When using static bit, you cannot pass parameters to functions. It is a headache.
[Microcontroller]
Problems in PIC+DS18B20+LCD design and programming
Design of intelligent fire alarm system based on MSP430F149
  0 Introduction   Fire seriously threatens the safety of human life and property. Every year, there are countless disasters caused by fire in my country. However, accurate and timely prediction of fire has become an urgent matter. At present, fire detection technology is the most effective means to prevent fire. It
[Microcontroller]
Design of intelligent fire alarm system based on MSP430F149
AVR single DS18B20 temperature reading program (can measure negative temperature)
Instructions: Put the two files into the project, call DS18B20_ReadTemperature when the temperature is needed, and the return value is the temperature. DS18B20.h /****** AVR single DS18B20 temperature reading program****** * Version.........: 1.0 * Target.........: AVR * File name.......: DS18B20.h * Compiler..
[Microcontroller]
Programming of AVR128 - DS18B20
#include #include macros.h #define uchar unsigned char #define uint   unsigned int   #define DQ_IN DDRE &= ~(1 PE6) #define DQ_OUT DDRE |= (1 PE6) #define DQ_CLR PORTE &= ~(1 PE6)         #define DQ_SET PORTE |= (1 PE6) #define DQ_R PINE & (1 PE6)   float TempData ; uchar WeiMa = {0x01,0x02
[Microcontroller]
Latest Industrial Control Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号