Beruflich Dokumente
Kultur Dokumente
MULTICHANNEL DATA
CHAPTER 1:
INTRODUCTION
1.1 Introduction
1.2 Generation of Idea of Project
Page 1
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
1.1 INTRODUCTION:
Multichannel data acquisition is a system based on acquiring real time data through sensors
and signal conditioning and the acquired data can be controlled through a remote location
using ARM 7.
Page 2
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
CHAPTER 2:
2.1 BRIEF HISTORY OF WORK DONE
Page 3
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
After deciding our final year project Multichannel data acquisition system we ran a
background survey that what exactly is DAQ system and how it is being implemented in
industries. We read many papers regarding DAQ systems and its implementation.
We also did a background research on the types sensors we can implement using ARM 7
and transmit with ease. We also studied in detail the pin description of ARM 7 and its inbuilt
ADCs through which we will interface our sensors.
Page 4
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
CHAPTER 3:
LITERATURE SURVEY
Page 5
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
There are many on-going projects based on Data Acquisition System for Real Time data and
most of them are using 8 bit microcontroller, some also have used Peripheral Interrupt
Controller (PIC), but very few have used ARM. Mostly project have been conducted using
Bluetooth for wireless module but with no future expansion possible like addition of new
sensors.
89C51 microcontroller was also used for the sensor platform for smart wireless transmission
of temperature; here ZigBee is used to address the need of low power supply. Data is logged
every time it is received and a log is maintained in PC. This data is compared with threshold
value and if the value exceeds, it is changed.
On the other end, android based Bluetooth was used for the wireless sensor network, in
which a new approach based on gathering healthcare information using the mobile which is
interfaced with sensors and which can also store data in logs files was implemented .
Literature survey revealed that the drawback with the projects are that it cannot be expanded
with the recent trends in Embedded System in which there is a need to include new sensors
and new devices, so the best candidate for microcontroller would be ARM instead of 89C51
or PIC because it can be expanded with new sensors and with high speed and also high
sampling rate, the power efficiency plays an important role in embedded system, making it
portable. ARM has inbuilt 14 channel, ADC 10bit and it can detect even a 3.2mV change in
ADC input, and is highly precise and accurate.
The wireless network should be able to receive data continuously and also range should
be high, Bluetooth was not used since the range for Bluetooth is only 10m -15m whereas
ZigBee range is 20-30m and also ZigBee can have a maximum of 255 other ZigBee in a
single network while Bluetooth has only 8 devices in network.
Page 6
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
Data acquisition is the process of sampling signals that measure real world physical
conditions and converting the resulting samples into digital numeric values that can be
manipulated
by
computer.
Data
acquisition
systems
(abbreviated
with
the
acronym DAS or DAQ) typically convert analog waveforms into digital values for
processing. The components of data acquisition systems include:
Signal conditioning circuitry to convert sensor signals into a form that can be
converted to digital values.
Data acquisition applications are controlled by software programs developed using various
general purpose programming languages such as BASIC C,etc.
Data acquisition begins with the physical phenomenon or physical property to be measured.
Examples of this include temperature, light intensity, gas pressure, fluid flow, and force.
Regardless of the type of physical property to be measured, the physical state that is to be
measured must first be transformed into a unified form that can be sampled by a data
acquisition system. The task of performing such transformations falls on devices
called sensors. A data acquisition system is a collection of software and hardware that lets
you measure or control physical characteristics of something in the real world. A complete
data acquisition system consists of DAQ hardware, sensors and actuators, signal conditioning
hardware, and a computer running DAQ software.
Page 7
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
CHAPTER 4:
HARDWARE OVERVIEW
Page 8
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
The transmitter section consists of different sensors interfaced to the 10 bit ADC of ARM 7.
The sensors acquire real time data from the environment and through signal conditioning,
sends the data to ZigBee. The ZigBee then transmits the data to the Zigbee transmitter.
E.C. BITS Edu Campus
Page 9
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
The Zigbee receiver receives the data and sends the data to the PC, through a HyperTerminal
which is an emulation software to communicate between the devices.
Page 10
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
4.1 WORKING:
The sensors acquires data from the environment and converts into digital signals
through the process of signal conditioning to the microcontroller.
The microcontroller will process the incoming data from various sensors and sends it
to the Zigbee transmitter. The controller we are using for our project is Philips LPC
2148,it has 10 bit ADC with 12 channels. Hence we have the flexibility to interface
many sensors directly with the microcontroller. LPC 2148 has very fast data
processing rates.
The data from the controller is passed to the Zigbee transmitter. ZigBee has a defined
rate of 250 kbit/s, best suited for intermittent data transmissions from a sensor or input
device. It has very low power consumption and can transmit data from 10 to 100
meters range.
At the other end another Zigbee will receive the data and through a HyperTerminal
send the data to the computer. HyperTerminal is an emulation software used to
interface between devices and communicate.
The data will be seen at the computer screen. Data can be viewed and predetermined
action can be taken as per the data received e.g. if the reference value is set at 50
degree Celsius and the temperature sensor measures any value more than a necessary
action will be taken, in this case it might switching on a fan to reduce the temperature.
Page 11
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
Page 12
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
CHAPTER 5
HARDWARE DESCRIPTION
5.1 ARM 7 DESCRIPTION
5.2 PIN DESCRIPTION
5.3 ON CHIP ADC
5.4 ON CHIP DAC
5.5 RS 232 PORT
5.6 ZIGBEE
5.7 SENSORS
Page 13
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
embedded high-speed flash memory ranging from 32 kB to 512 kB. A 128-bit wide memory
interface and a unique accelerator architecture enable 32-bit code execution at the maximum
clock rate. For critical code size applications, the alternative 16-bit Thumb mode reduces
code by more than 30 % with minimal performance penalty.
Due to their tiny size and low power consumption, LPC2141/42/44/46/48 are ideal for
applications where miniaturization is a key requirement, such as access control and point-ofsale. Serial communications interfaces ranging from a USB 2.0 Full-speed device, multiple
UARTs, SPI, SSP to I2C-bus and on-chip SRAM of 8 kB up to 40 kB, make these devices
very well suited for communication gateways and protocol converters, soft modems, voice
recognition and low end imaging, providing both large buffer size and high processing power.
Various 32-bit timers, single or dual 10-bit ADC(s), 10-bit DAC, PWM channels and 45 fast
GPIO lines with up to nine edge or level sensitive external interrupt pins make these
microcontrollers suitable for industrial control and medical systems.
5.1.1Memory
512K Flash Program Memory
32K+8K RAM Data Memory
5.1.2 Clock
12MHz crystal for maximum(5xPLL = 60MHz CPU clock) | 32 KHz RTC crystal
Page 14
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
5.1.4 Power
5.1.5 Connectors
Page 15
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
Page 16
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
One or two (LPC2141/42 vs. LPC2144/46/48) 10-bit ADCs provide a total of 6/14
analog inputs, with conversion times as low as 2.44 s per channel.
Two 32-bit timers/external event counters (with four capture and four compare
channels each), PWM unit (six outputs) and watchdog.
Low power Real-Time Clock (RTC) with independent power and 32 kHz clock input.
Multiple serial interfaces including two UARTs (16C550), two Fast I2C-bus (400 kbit/s), SPI
and SSP with buffering and variable data length capabilities.
Vectored Interrupt Controller (VIC) with configurable priorities and vector addresses.
60MHz maximum CPU clock available from programmable on-chip PLL with
settling time of 100s.
CPU operating voltage range of 3.0 V to 3.6 V (3.3 V 10 %) with 5 V tolerant I/O
pads.
Page 17
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
Page 18
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
Page 19
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
I/O SCK0 Serial clock for SPI0. SPI clock output from master or input to slave.
I CAP0.1 Capture input for Timer 0, channel 1.
I AD0.6 ADC 0, input 6.
P0.5/MISO0/MAT0.1/AD0.729[4] I/O P0.5 General purpose input/output digital pin
(GPIO).
I/O MISO0 Master In Slave Out for SPI0. Data input to SPI master or data output from
SPI slave.
O MAT0.1 Match output for Timer 0, channel 1.
I AD0.7 ADC 0, input 7.
P0.6/MOSI0/CAP0.2/AD1.030[4] I/O P0.6 General purpose input/output digital pin
(GPIO).
I/O MOSI0 Master Out Slave In for SPI0. Data output from SPI master or data input to
SPI slave.
I CAP0.2 Capture input for Timer 0, channel 2.
I AD1.0 ADC 1, input 0. Available in LPC2144/46/48 only.
P0.7/SSEL0/PWM2/EINT231[2] I/O P0.7 General purpose input/output digital pin
(GPIO).
I SSEL0 Slave Select for SPI0. Selects the SPI interface as a slave.
O PWM2 Pulse Width Modulator output 2.
Page 20
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
5.3On-Chip ADC
Basic clocking for the A/D converters is provided by the VPB clock. A programmable divider
is included in each converter, to scale this clock to the 4.5 MHz (max) clock needed by the
successive approximation process. A fully accurate conversion requires 11 of these clocks.
In ARM214X Kit, for testing on-board analog input, port lines P0.29 and P0.30 connected
through 10K potentiometer selected by jumpers. The signals P0.29 and P0.30 can be used as
general purpose pins if the analog inputs are not used and in this case the analog voltages can
easily be removed by removing the two jumpers on JP4 and JP5.
5.3.1 Features
On-Chip
ADC
POT (R16)
AD0.2
P0.29
POT (R17)
AD0.3
P0.30
ADC Select
Page 21
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
5.4.2 Operation
Bits 19:18 of the PINSEL1 register, control whether the DAC is enabled and controlling the
state of pin P0.25/AD0.4/AOUT. When these bits are 10, the DAC is powered on and active.
The settling times noted in the description of the BIAS bit are valid for a capacitance load on
the AOUT pin not exceeding 100pF. A load impedance value greater than that value will
cause settling time longer than the specified time.
On-Chip DAC
DAC Output
LPC2148
JP12
Aout
P0.25
Page 22
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
The voltage levels of a microcontroller and PC are not directly compatible with those
of RS-232, a level transition buffer such as MAX3232 be used.
LPC2148
UART DB-9 Processor
Connector
Lines
TXD-0
P0.0
ISP PGM
RXD-0
P0.1
UART1
TXD-1
P0.8
(P2)
RXD-1
P0.9
UART0(P1)
5.6 ZIGBEE:
ZigBee is a specification for a suite of high-level communication protocols used to
create personal area networks built from small, low-power digital radios. ZigBee is based on
an IEEE 802.15 standard. Though its low power consumption limits transmission distances to
10100
meters line-of-sight,
depending
on
power
output
and
environmental
characteristics, ZigBee devices can transmit data over long distances by passing data through
a mesh network of intermediate devices to reach more distant ones. ZigBee is typically used
in low data rate applications that require long battery life and secure networking (ZigBee
networks are secured by 128 bit symmetric encryption keys.) ZigBee has a defined rate of
250 kbit/s, best suited for intermittent data transmissions from a sensor or input device.
Applications include wireless light switches, electrical meters with in-home-displays, traffic
management systems, and other consumer and industrial equipment that requires short-range
low-rate wireless data transfer. The technology defined by the ZigBee specification is
E.C. BITS Edu Campus
Page 23
GROUP NO:19
ACQUISITION BASED ON ARM 7
intended
to
be
simpler
and
MULTICHANNEL DATA
less
expensive
than
other wireless
personal
area
1mW (0 dBm),
Receiver Sensitivity:
-92dBm,
Xigbee Current:
45mA (@3.3V),
RX Current:
< 10 A.
5.7 SENSORS:
The fast development of Embedded system has lead to the need to acquire the different data
and this paper present a system capable of interfacing 8 different sensors to sense the
environmental like temperature, humidity, carbon monoxide and ammonia concentration in
air (other parameters can also be sensed), This project uses Temperature sensor LM35-DZ to
measure ambient temperature, which has a range of 0 to 150 degree Celsius.
The temperature output by the sensor is interfaced with ARM 7 Development board, with
has inbuilt 10-channel 12bit ADC, which converts the analog value to 12bit digital data.
Page 24
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
A current sensor is a device that detects and converts current to an easily measured output
voltage, which is proportional to the current through the measured path.
Current measurement is of vital importance in many power and instrumentation systems.
Traditionally, current sensing was primarily for circuit protection and control. However, with
the advancement in technology, current sensing has emerged as a method to monitor and
enhance performance.
Knowing the amount of current being delivered to the load can be useful for wide variety of
applications. Current sensing is used in wide range of electronic systems, viz., Battery life
indicators and chargers, 4-20 mA systems, over-current protection and supervising circuits,
current and voltage regulators, DC/DC converters, ground fault detectors, programmable
current sources, linear and switch-mode power supplies, communications devices ,
automotive power electronics, motor speed controls and overload protection, etc.
Page 25
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
CHAPTER 6
SOFTWARE SPECIFICATIONS
Page 26
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
2.FLASH MAGIC
3.KIEL MICROVISION
6.2DESCRIPTION:
6.2.1. PROTEUS 8 PROFESSIONAL
Page 27
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
Circuit Simulation
At the heart of Proteus VSM is ProSPICE. This is an established product that combines uses a
SPICE3f5 analogue simulator kernel with a fast event-driven digital simulator to provide
seamless mixed-mode simulation. The use of a SPICE kernel lets you utilise any of the
numerous manufacturer-supplied SPICE models now available and around 6000 of these are
included with the package.
Page 28
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
Page 29
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
In addition to traditional debugging where you set one or breakpoints in your source and then
step the code when they are triggered, Proteus allows you to set breakpoints on the schematic
so that a hardware condition can trigger a breakpoint. Whenever it is the case that a problem
is identifiable on the hardware using hardware breakpoints is ideal to track down the issue.
For example, if malformed characters were appearing on the LCD display setting a hardware
breakpoint on the busy line would be a good place to start investigating.
Page 30
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
Page 31
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
It helps expedite the development process of your embedded applications by providing the
following:
applications .
Dialogs for all development tool settings.
True integrated source-level Debugger with high-speed CPU and peripheral simulator
Flash programming utility for downloading the application program into Flash ROM,
CHAPTER 7:
RESULT AND TESTING
E.C. BITS Edu Campus
Page 32
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
system
programming
(ISP)
which
is
done
through
serial
port.
Page 33
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
light modulating properties of liquid crystals (LCs). LCD Modules can present textual
information to user.
7.1.4 Interfacing LCD
The 2x16 character LCD interface card with supports both modes 4-bit and 8-bit interface,
and also facility to adjust contrast through trim pot. In 4-bit interface 7 lines needed to create
4-bit interface; 4 data bits (D0 D3), three control lines, address bit (RS), read/write bit
(R/W) and control signal (E).
Page 34
GROUP NO:19
ACQUISITION BASED ON ARM 7
LCD
MODULE
LPC2148
LINES
RS
P0.16
RW
CONTRO
L
E
DATA
LINES
MULTICHANNEL DATA
P0.17
P0.18
D0-D3
NC
D4
P0.19
D5
P0.20
D6
P0.21
D7
P0.22
Table
7.1:
Page 35
no
Pin
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
#include <lpc214x.h>
#include <stdio.h>
#define RS 0x10000
#define RW 0x20000
#define EN 0x40000
Page 36
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
void main()
{
PINSEL1 = 0;
IODIR0 = 0xFF << 16;
lcd_initialize();
lcd_display();
while(1);
}
Page 37
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
//0x1000;
IOCLR0 |= RW;
//0x2000;
//RS
//RW
LCD4_Convert(data);
}
void lcd_initialize(void)
{
int i;
for(i=0;i<4;i++)
{
IOCLR0 = 0xF << 19;
//IOCLR 0/1
lcd_cmd(cmd[i]);
delay(15);
Page 38
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
}
}
//0x1000;
//RS
IOCLR0 |= RW;
//0x2000;
//RW
LCD4_Convert(data);
}
Page 39
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
i++;
}
delay(15);
lcd_cmd(0xc0);
delay(15);
i=0;
while(msg1[i]!='\0')
{
delay(5);
lcd_data(msg1[i]);
i++;
}
delay(15);
}
Page 40
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
if(c & 0x40) IOSET0 = 1 << 21; else IOCLR0 = 1 << 21;
if(c & 0x20) IOSET0 = 1 << 20; else IOCLR0 = 1 << 20;
if(c & 0x10) IOSET0 = 1 << 19; else IOCLR0 = 1 << 19;
IOSET0 = EN;
delay(8);
IOCLR0 = EN;
if(c & 0x08) IOSET0 = 1 << 22; else IOCLR0 = 1 << 22;
if(c & 0x04) IOSET0 = 1 << 21; else IOCLR0 = 1 << 21;
if(c & 0x02) IOSET0 = 1 << 20; else IOCLR0 = 1 << 20;
if(c & 0x01) IOSET0 = 1 << 19; else IOCLR0 = 1 << 19;
IOSET0 = EN;
delay(8);
IOCLR0 = EN;
}
To compile the above C code you need the KEIL software. They must be properly set up and
a project with correct settings must be created in order to compile the code. To compile the
above code, the C file must be added to the project.
Page 41
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
In Keil, you want to develop or debug the project without any hardware setup. You must
compile the code for generating HEX file. In debugging Mode, you want to check the port
output without microcontroller Board.
The Flash Magic software is used to download the hex file into your microcontroller through
UART0.
CHAPTER 8
CONCLUSION AND FUTURE EXPANSION
Page 42
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
8.1 CONCLUSION
8.2 FUTURE EXPANSION
8.1CONCLUSION
The Data Acquisition and logger system designed here integrates a data acquisition system
which is designed around ARM 7 MCU (microcontroller unit) and Visual Basic application.
The combination of the two proves very beneficial in analysis. Each has unique peculiarities
which is utilized together to give best performance required. Field related to automation,
acquisition and networking will be best suited and perfectly matched by ARM Cortex
solutions. The low cost MCU based design makes system affordable to the industries. The
visual basics platform interfaces with the ARM i.e. data acquisition system. These tools
available with it prove very beneficial in developing applications faster and easier. An
administrator can monitor and control the equipment with a simple but enhanced and more
powerful user interface without additional hardware.
Page 43
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
Our project has the flexibility that the required sensors can be changed according to the
requirements of the user. Using ARM 7 has high data processing rates. And other Zigbee
configurations can be use to in long distance remote data transmission.
REFERENCES
Websites:
www.google.com/patents
Page 44
GROUP NO:19
ACQUISITION BASED ON ARM 7
MULTICHANNEL DATA
www.wikipedia.com
www.engineersgarage.com
www.sourcecodes.com
www.mcus.com/arm7
Page 45