Microcontroller Based Data Acquisition System

Similar documents
Conclusion and Future Scope

International Journal of Electronics and Computer Science Engineering 1588

Smart Wireless Temperature Data Logger

MegaAVR-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

Mega128-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

DEV-1 HamStack Development Board

Sierra Radio Systems. Digital Compass. Reference Manual. Version 1.0

DEV16T. LCD Daughter board

CEIBO FE-51RD2 Development System

DATA LOGGER MODULE FOR DATA ACQUISTION SYSTEM

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software!

AVR Intermediate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

CEIBO FE-5111 Development System

AC : INFRARED COMMUNICATIONS FOR CONTROLLING A ROBOT

Mega128-Net Mega128-Net Mega128 AVR Boot Loader Mega128-Net

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Serial Port Communication Module No: CS/ES/11 Quadrant 1 e-text

The Atmel ATmega328P Microcontroller

CEIBO FE-W7 Development System

PART 1 : MR-162. PART 2 : CPU Board. PART 3 : Software Tools. PART 4 : Compile and Download. 1. Introduction 2. Features

Hardware Manual. Crumb128. Rapid Prototyping Module with the Atmega128 AVR Microcontroller

Figure 1.1: Some embedded device. In this course we shall learn microcontroller and FPGA based embedded system.

Intelligent Pressure Measuring System

LIN bus board datasheet EB

CSE 466 Exam 1 Winter, 2010

SECURE DIGITAL ACCESS SYSTEM USING IBUTTON

Design of SCADA for Real Time System with LabVIEW and Microcontroller

DESIGN OF CALORIMETER BASED ON ARM AND ZIGBEE

Design and Development of Low Cost Multi-Channel USB Data Acquisition System for the Measurement of Physical Parameters

Goal: We want to build an autonomous vehicle (robot)

M32 Development Board

Bolt 18F2550 System Hardware Manual

AVR Development Board

U4DIL. AVR USB Module. Rev. 1.1 Documentation Rev. 19. Reusch Elektronik Reusch Elektronik, Dipl.-Ing. (FH) Rainer Reusch

Weeder Technologies. 90-A Beal Pkwy NW, Fort Walton Beach, FL

EasyAVR6 Development System

zigb232 & zigb485 User Guide User Guide TANGENT TECHNOLABS

AVR Peripheral Board. Campus Component Pvt. Ltd.

Using a Temperature Sensor

Hardware Manual - SM2251 Evaluation Kit Board

ATmega48/88/168 Development Board

U6DIL. AVR USB Module. Rev. 1.1 Documentation Rev. 18. Reusch Elektronik Reusch Elektronik, Dipl.-Ing. (FH) Rainer Reusch

The industrial technology is rapidly moving towards ARM based solutions. Keeping this in mind, we are providing a Embedded ARM Training Suite.

MICROCONTROLLER BASED SMART FAN SYSTEM

TEMPERATURE AND HUMIDITY MONITOR AND CONTROL SYSTEM

The Freescale MC908JL16 Microcontroller

Doc: page 1 of 6

Microcontroller Based High Resolution Temperature Monitoring Data Acquisition System with Graphical User Interface

8051 General Purpose Board

REDALS 01. Rocket Engine Data Acquisition and Logging System. Description and User's guide. Table of content:

Supplement for module D061 incl. ATMega128 Prozessor

Using the USART Serial Communications

Computer Hardware Requirements for Real-Time Applications

Clock and Fuses. Prof. Prabhat Ranjan Dhirubhai Ambani Institute of Information and Communication Technology, Gandhinagar

CM5000 DATASHEET v0.1

Doc: page 1 of 8

QUASAR PROJECT KIT # ATMEL AVR PROGRAMMER

Autonomous, Surveillance Fire Extinguisher Robotic Vehicle with Obstacle Detection and Bypass using Arduino Microcontroller

Bachelor of Engineering in Computer and Electronic Engineering

VLSI Design Lab., Konkuk Univ. Yong Beom Cho LSI Design Lab

S USB-PC Connection (Cable Not Included) S USB Powered (No External Power Supply Required) S Real-Time Data Acquisition Through the USB

Figure 1. A test controller communicates with User I/O, the DUT, a DMM, and a PC (for program development).

Freeduino USB 1.0. Arduino Compatible Development Board Starter Guide. 1. Overview

The Atmel ATmega168A Microcontroller

ST SPC58 B Line Emulation Adapter System

Introduction to ARM LPC2148 Microcontroller

BIG8051. Development system. User manual

RS-232 DATA COMMUNICATIONS WITH THE TANDY COLOR COMPUTER

3.3V regulator. JA H-bridge. Doc: page 1 of 7

ARDUINO MICRO WITHOUT HEADERS Code: A000093

Hardware Design of Smart Home System Based on zigbee Wireless Sensor Network

An Arduino Controlled 1 Hz to 60 MHz Signal Generator

Cerebot Nano Reference Manual. Overview. Revised April 15, 2016 This manual applies to the Cerebot Nano rev. A

Shack Clock kit. U3S Rev 2 PCB 1. Introduction

Figure 1. JTAGAVRU1 application The JTAGAVRU1 is supported by AVR Studio. Updated versions of AVR Studio is found on

Development of a MATLAB Data Acquisition and Control Toolbox for PIC Microcontrollers

Implementation of a real-time, high-speed data logger for Process control application

Real Time Data Acquisition and Home Parameters Monitoring using LabVIEW

Atmel Microprocessor Programming With AVRISPmkii

SYSTEM DESIGN SPECIFICATIONS ZIGBEE BASIC SYSTEM

Power Supply, Arduino MEGA 2560, and Stepper Motors Connections

Getting Started with STK200 Dragon

ARDUINO MEGA INTRODUCTION

external Benchmarking extension for the SUPERCOP crypto benchmarking framework

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

AC : DESIGN OF DATA ACQUISITION SYSTEM FOR COMPUTER ENGINEERING EDUCATION

Objective: Additional project details: Code: PSEMBP 100 Category:STEM Level: High School/Community C.

A Programmer for the 68HC705C8 MicroController Figure 1 PROG05 As Built PROG05 User Guide Version C1 Page 1 of 14

AKKON USB CONTROLLER BOARD

Amarjeet Singh. January 30, 2012

Z8ICE001ZEM Z8PLUS EMULATOR PRODUCT SPECIFICATION KIT CONTENTS OPTIONAL ITEMS NOT SUPPLIED

AVR Training Board-I. VLSI Design Lab., Konkuk Univ. LSI Design Lab

PSU 2008 Winter - PH-315 Experimental Physics

[MG2420] MCU Module Datasheet. (No. ADS0705) V1.0

ARDUINO MEGA ADK REV3 Code: A000069

Supplement for module D041 incl. ATMega8 Prozessor

Bill of Materials: Handheld Game System PART NO

DIY Line Tracking Smart Car with AT89C2051

ZL10AVR. Versatile Evaluation Board for AVR Microcontrollers

8051 Intermidiate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

IOT Based Motor & Pump Monitoring System

Transcription:

Microcontroller Based Data Acquisition System Sayantan Dutta Department of Applied Electronics and Instrumentation Engineering, University Institute of Technology, Burdwan University Rishabh Das Department Of Electrical Engineering, University Institute of Technology, Burdwan University Anusree Sarkar Department of Applied Electronics and Instrumentation Engineering, University Institute of Technology, Burdwan University Abstract 2. SYSTEM MODULE DESCRIPTION Data acquisition systems (DAS) are the basis for building monitoring tools that enable supervision of local and remote systems. The present paper describes the design of a cost effective, better resolution DAS which is compatible to most of the PC and laptops. A low cost DAS has been designed using Atmega8 Microcontroller. A suitable Graphical user interface (GUI) is generated by using a Visual Basic program connected to a homemade data converter board using the AVR microcontroller. Keywords- Data Acquisition System, Atmega8, Graphical user interface, Converter board. 1. INTRODUCTION Technology has given us the freedom to use microcontrollers and integrated circuits as per requirements in the designing of low cost systems. A low cost PC based real time data logging system can be used in the laboratories for measurement, monitoring and storage of data for slowly varying signals in science and engineering stream [1]. Data logging and recording is a very common measurement application. In its most basic form, data logging is the measurement and recording of physical or electrical parameters over a period of time [2]. In [3] we get a manual giving us a generalised idea of DAS.A conceptual model of DAS and a wireless operational DAS are described in [4] and [5] respectively. In our proposed system we have developed an efficient way of retrieving, storing and also creating a graphical representation of a single parameter, i.e. temperature. The System has been divided into 3 modules: A. Temperature Sensor (LM335) B. Microcontroller Unit C. Computer (Software) Fig.1 Block Diagram Of The System The hardware consists of the ATmega8, the temperature sensor (LM335), and the serial interface. The on chip firmware controls reading the ADC converter, receives commands from PC and sends the reading to PC. The microcontroller is running with 8MHz crystal oscillator, if we use the internal RC oscillator, the external crystal may be omitted. The ATmega8 DIP version has 6 channels analog input. If you need up to 8 ADC input, you can use ATmega8 in TQFP package, or you can use another AVR microcontroller with the on-chip ADC. A. Temperature Sensor (LM335) We use LM335 temperature sensor. It can measure the temperature using two wires remotely. The chip produces an output signal that is proportional to the Celsius temperature scale. The trimmer POT is used to calibrate the correct output voltage at known temperature, for example 2.98V @ 25 C. 1615

TABLE I RS232 VOLTAGE LEVEL RS232 line type and logic level RS232 voltage TTL voltage to/from MAX232 Data transmission (Rx/Tx) logic 0 +3 V to +15 V 0 V Data transmission (Rx/Tx) logic 1-3 V to -15 V 5 V Control signals (RTS/CTS/DTR/DSR) logic 0-3 V to -15 V 5 V Control signals kjnic 1 +3 V to +15 V 0 V The Microcontroller unit has been connected to the following components: 1. MAX232: The MAX232 is an IC, first created by Maxim Integrated Products, that converts signals from anrs-232 serial port to signals suitable for use in TTL compatible digital logic circuits. When a MAX232 IC receives a TTL level to convert, it changes a TTL logic 0 to between +3 and +15 V, and changes TTL logic 1 to between -3 to -15 V, and vice versa for converting from RS232 to TTL. Table 1 gives the respective voltage values for the MAX232 IC. 2. DB9 Connector: The DB9 (originally DE-9) connector is an analog 9-pin plug of the D-Sub miniature connector family (D-Sub or Sub-D). The DB9 connector is mainly used for serial connections, allowing for the asynchronous transmission of data as provided for by standard RS-232 (RS-232C). 3. In-System Programming (ISP) is the ability of some programmable logic devices, microcontrollers, and other embedded devices to be programmed while installed in a complete system, rather than requiring the chip to be programmed prior to installing it into the system. The primary advantage of this feature is that it allows manufacturers of electronic devices to integrate programming and testing into a single production phase, and save money, rather than requiring a separate programming stage prior to assembling the system. C. Computer (software) Features of the software are as follows. 1. Adjustable sampling interval, 2. Real time view in single graph or multiple graph, 3. Record the data, save, and open the recorded database, 4. Get statistically reading, print the record and graph (or export it as the metafile, JPG), 5. Serial control window for monitoring and manually data transfer. The full version PC software is designed for capturing up to 16 channels. In this version, the PC software will read 8 channels. For the ATmega8 in DIP version, it can display only 6 channels. Figure 3 shows the output window that has been created using Visual Basic. Fig 2. DB9 Connector pins 1616

After the connection has been established, we can send the command to the ADC board. For command read, PC sends character 'r' (0x72), and the board responses with ADC reading as: '\rd' + 2byte(ADC0) + 2byte(ADC1) + + 2byte(ADC7), total 18 bytes length. The reading is 16-bit data, (10-bit resolution) with high byte send first followed with low byte. For proper acquisition of the data by the PC, graphical display and saving into a file an application program is developed in Visual Studio 6.0. It uses the MSComm component to communicate through the comm port of the PC. Fig 3. The Visual Basic Window 3. DESIGN AND IMPLEMENTATION The complete hardware schematic for the ADC board is shown in Figure 5. The LM335 senses the temperature and generates a voltage signal. Each signal has a different value of temperature. This voltage signal is received by the microcontroller which then transmits it to the Computer via the MAX232 IC and the DB9 connector pin. The MAX232 driver IC uses some external capacitors to enhance the voltage levels to RS232 level. A 9 Pin D Type female connector is used to connect to the COM port of the PC. The circuit is made into a PCB using Express PCB and the DAS is fabricated. The AVR program was written in assembly language. The main code running waits the serial command from PC. The speed is set to19200 8n1 format. If the board receives character '>', the AVR must echo the character '>' to the PC. This step is used to check the hardware is connected or not. Another command is 'r' (read), the microcontroller reads 8 channel ADC and sends them to PC serially. Data transferring between ADC board and PC uses the following protocol. For the first time connecting, after opening serial port, PC try to connect the ADC board. The PC send a character '>' (0x3E) and the board will echo it back. Fig4: The real-time circuit A real time image of the implemented circuit is given in figure 4 above. The various parts are listed below 1. Microcontroller, Atmega 8, 8Mhz 2. Level Converter, MAX232 3. Stabilizer, 7805 4. Crystal, 8Mhz 5. Control LED 6. Power LED 7. Power connection 8. Coil connection 9. Reset button 10. ISP connection 11. RS 232 connector 1617

Fig 5. The Circuit Diagram 4. RESULT The result of the proposed system is the DAS window that has been build for graphical representation of the parameter (temperature) under consideration. It also stores and generates values for the ADC pins interfaced to the suitable ports. The microcontroller along with the MAX232 and the DB9 connector helps in achieving the main objective. Figure 6 gives a Output window of our system including the result of an experimental setup. 1618

5. CONCLUSION The idea behind this paper was just to create an efficient and cost effective way of making a Data Acquisition System. Only one parameter is used for measurement in the system that has been proposed but there is scope to determine at least 6 such parameters for all the empty ADC pins. The Visual Basic software can be changed to incorporate more ports as per requirement. This simple concept will help connect and interface PC with any Analog Sensor. 6. REFERENCES [1]. Singh, N. Monoranjan, Sarma, K. C., 2009 Low Cost PC Based Real Time Data Logging System Using PCs Parallel Port For Slowly Varying Signals, Proceedings of 54th Annual Technical Session of Assam Science Society, pp48 [2]. http://zone.ni.com/devzone/cda/tut/p/id/2693,- A Review of PC-Based Data Logging and Recording Techniques Fig 6: Main screen of Data Acquisition program [3]. "Data Acquisition Hanbook, Third edition", Measurement Computing publications, 2004-2012, The united States of America [4]. "Microcontroller Based Data Acquisition Using the TLC2543 12-Bit Serial-Out ADC", Texas Instruments, July 1995 [5]. Dr. Aditya Goel,Ravi Shankar Mishra, "Remote Data Acquisition Using Wireless - Scada System", International Journal of Engineering (IJE), Volume (3), Issue (1). 1619