SlideShare a Scribd company logo
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
_______________________________________________________________________________________
Volume: 04 Issue: 04 | Apr-2015, Available @ http://www.ijret.org 680
FreeRTOS BASED ENVIRONMENTAL DATA ACQUISITION USING
ARM CORTEX M4F CORE
Yogita Patil1
, Sidharth Bhatia2
1
M.Tech. (Embedded Systems), EECE Department, ITM University, Gurgaon, Haryana, India
2
Assistant Professor, EECE Department, ITM University, Gurgaon, Haryana, India
Abstract
In today’s decade of Big Data and complex computing, the Data acquisition systems hold a prime position. In this project, we
present a Data acquisition system, which runs on ARM Cortex M4F core microcontroller and this whole system is managed by a
real time operating system names FreeRTOS. Tiva C Series Launchpad is used as the board. The system is currently designed to
monitor only temperature. A temperature sensor will be used for monitoring temperature. The data received will be stored in SD
card. The main objective of this project is to design a data acquisition system, which is portable, cheaper and deterministic.
Currently available systems in market are expensive and bulky whereas this FreeRTOS based Data acquisition system is cheaper
and portable as well.
Keywords: FreeRTOS, ARM Cortex M4F core, Temperature sensor, Tiva C series Launchpad, SD card.
--------------------------------------------------------------------***----------------------------------------------------------------------
1. INTRODUCTION
The field of embedded systems is vast and it‟s getting
broader day by day. In today‟s era of technology, where we
have got lots and loads of data, acquisition and managing
this data is also a big concern. There is unending need for
data acquisition system [1]. Managing such a vast and
enormous data is in itself a big task. So, such a system is
required for data acquisition which is first of all easy to use,
portable and cheap [2]. This paper gives a vivid description
of a system based on ARM [3][4][5] having Cortex M4F
core which is run by FreeRTOS. As an RTOS runs this
system [6], so task scheduling becomes possible and easier.
This system also has a provision to store data in SD card,
which can be used further for review. The paper is split into
various sections. The second section gives the basic concept
of the project. Hardware and software specifications are
covered in third section. Block diagram falls under fourth
section. Screen shot of results is shown in fifth section.
Sixth and seventh section deals with application areas and
advantages. Eighth section entails the conclusion along with
future work.
2. BASIC CONCEPT
The prime component in this project is the Tiva C Series
Launchpad. This Launchpad contains TM4C123GH6PM
microcontroller. The TM4C123GH6PM microcontroller has
ARM Cortex M4F [7] core. There is an inbuilt temperature
sensor [8] on the board, Tiva C Series Launchpad. This
temperature sensor on the PE3 pin helps to acquire precisely
environmental temperature [9][10]. RTOS is ported on the
microcontroller. Here, we have used FreeRTOS, as it is
open-source. So, FreeRTOS [11] is ported on to
TM4C123GH6PM microcontroller. Then FreeRTOS is
programmed for carrying out temperature acquisition task
[12]. Booster pack for SD card is interfaced on the
launchpad to interface the SD card. The data received is
stored onto SD card.
3. HARDWARE AND SOFTWARE DETAILS
There are always some Hardware and Software tools
required for a project. The different hardware and software
used in this project are listed as below:
3.1 Hardware Tools
 Tiva C Series Launchpad
 Temperature Sensor
 SD card Booster pack
3.2 Software Tools
 CCS (Code Composer Studio version5.4)
 FreeRTOS version8.0.1 (RTOS)
 Microsoft Visual Studio 2010
4. BLOCK DIAGRAM
The block diagram given below explains the whole process
of the system. The Tiva C Series Launchpad is the prime
component in this project. Tiva Launchpad is an ARM
based board. The microcontroller used in this kit is
TM4C123GH6PM which has ARM Cortex M4F core.
FreeRTOS is ported onto the microcontroller. FreeRTOS
helps in scheduling the temperature acquisition task
according to its priorities. So, it actually acts as an operating
system for the real time system. The temperature sensor is
inbuilt in this kit, it is at PE3 pin. It will sense the
temperature and give the data to FreeRTOS for scheduling.
The data acquired will be then redirected to SD card. This
SD card helps to store data acquired from sensor.
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
_______________________________________________________________________________________
Volume: 04 Issue: 04 | Apr-2015, Available @ http://www.ijret.org 681
Fig -1: Block Diagram
4.1 Tiva C Series Launchpad
Tiva C Series Launchpad is from the makers of Texas
Instruments. It is an improved version to the Stellaris
Launchpad. They are cheap, self-contained, single-board
microcontrollers, which features an ARM Cortex-M4F 32-
bit core. Launchpad provides top performance and advanced
integration. There are many input-output pins that have dual
functionality, which means that they can be easily be
configured as digital inputs or outputs, providing access to
variety of applications. The LaunchPad's TM4C123GH6PM
ARM Cortex M4F 32-bit microcontroller is capable of
fuelling up to 80 MHz. The controller can be run at lower
speed to reduce energy consumption. It has many features,
which makes it a worth choice.
4.2 FreeRTOS
FreeRTOS is an open source RealTime Operating system.
Its design is developed in such a way that it fits on very
small embedded systems and implements very minimalist
set of functions. It has many features, which makes it a good
choice to opt for. Amongst the various features, some of
them are as follows: preemptive tasks, a small footprint
written in C and compiled with various C compiler. It also
provides a provision to implement mutex binary and
counting semaphores and queues. FreeRTOS supports
unlimited number of tasks to be run as far as hardware can
handle it and of course memory too. There are many
functions available in FreeRTOS. The entire life cycle of a
task in FreeRTOS can be explained as follows. The “not
running” state can further be categorized as ready, blocked
and suspended. A task which is blocked can be changed to
suspended. A task which is running can be suspended. By
using different functions, one can switch between the not
running state and resume the function which the user wants.
The main aim of Task scheduling is to decide which task is
in “Ready” state which has to be run at a given time.
FreeRTOS achieves this purpose with priorities given to
tasks when they are created. Priority of a task is the prime
element the scheduler takes into account to decide which
task has to be switched in or switched out.
4.3 SDcard
SD card is used in this project, to store the acquired data
[13]. When the SD card is formatted, file system will be
written into flash region. So, this is the region where the file
system exists. „SD card controller‟ helps to communicate
„main core‟ with the external devices. It responds to a
certain set of standard SD commands and read/write data
from the memory core in [14]. SD card is interfaced with the
microcontroller using serial data bus. It is connected using
„SD buses‟. The „SD bus‟ is particularly designed for high
speed whereas the SPI bus can operate with much lower
speed only. The microcontroller can read/write data to the
memory core and read the registers using standard SD
commands send through these serial buses [15]. Before the
memory card starts responding to the commands, the
memory card should be triggered. Certain set of commands
should be shooted one after other to commence the SD card.
The SD card will switch to SD interfacing mode on reset.
5. PROCESS FLOW
The first and foremost task will be data acquisition. The
environmental temperature will be acquired by temperature
sensor. This temperature sensor will send the data to ADC.
The microcontroller TM4C123GH6PM on Tiva C Series
Launchpad, has 12 bit ADC in it. Now, FreeRTOS ported on
TM4C123GH6PM takes the lead. FreeRTOS will schedule
the temperature task and the resulting acquired data will be
written onto SD card. So, the temperature is written onto SD
card. This is how, the entire process flow takes place.
6. RESULT
Precise results have been obtained in laboratory by
following the above process flow. Figure 2 shows the
FreeRTOS ported onto Launchpad. The red LED shown in
the snapshot blinks after every 6 seconds. Figure 3 shows
the Launchpad interfaced with SD card. Booster packs for
SD card is used. Figure 4 shows the temperature reading
acquired in Code Composer Studio. It displays the
temperature in Celsius as well as Fahrenheit.
Fig -2: FreeRTOS ported on Launchpad
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
_______________________________________________________________________________________
Volume: 04 Issue: 04 | Apr-2015, Available @ http://www.ijret.org 682
Fig -3: Screenshot of Launchpad interfaced with SD card
Fig -4: Screenshot of obtained simulated results in CCS
7. APPLICATION AREAS
FreeRTOS (Free Real Time Operating System) based Data
Acquisition system can be used for environmental data
capturing. It can also be used for monitoring certain
parameters like Temperature, Humidity and Motion in
industries. Currently it is optimized to monitor just
temperature. It can be of profound use in cryogenic
industries for low temperature monitoring. This project can
be of utmost use in industrial applications. As it has the
capacity to store data, so this data can further be analyzed in
matlab to monitor the green house effect.
8. ADVANTAGES
The first and foremost advantage of this system is, it is
portable and cheap. It is light weight, unlike other systems
in market. It has data storage facility, which is another plus
point. This Data acquisition system runs on FreeRTOS,
which makes it a real robust system. The scheduling of task
is done at its best, which makes the system void of time
delays.
9. CONCLUSION AND FUTURE SCOPE
There are ample of Data acquisition systems available in the
market, but we needed to design one which is cheaper than
most of them, portable and robust. So, we have successfully
made this system which is much cheaper and it uses ARM
Cortex M4F core i.e. TM4C123GH6PM microcontroller,
which is the latest and much efficient microcontroller. It
also has a facility to store data in a SD card which is worth
it. This project can be further enhanced by adding different
types of sensors like Humidity sensor and Motion sensor.
The acquired data can be sent on to the cloud and from there
using AMQP protocol, data can be accessed. Diverting data
on to server or cloud would help to increase the accessibility
of the data for the analysts or users.
ACKNOWLEDGEMENTS
I would like to express my gratitude towards my mentor,
who always supported and encouraged me to do the things,
which i thought were impossible. I am highly obliged for his
guidance. I would also like to thank the entire faculty and
lab technicians of ITM University, Gurgaon. Again vote of
thanks for all the authors, whose work was helpful for me.
REFERENCES
[1]. Daogang Peng, Hao Zhang, Kai Zhang, Hui Li1, Fei
Xia, “Research and Development of the Remote I/O Data
Acquisition System Based on Embedded ARM Platform”
2009 IEEE
[2]. Jiangchun Xu, Jiande Wu, Yuhui Li , “A Networks Data
Collection Embedded System Based on ARM-uCLinux”
2009 IEEE
[3]. Hua Fang , Ming Tang , Lian Peng “Wireless data
acquisition system based on ARM” 2011 IEEE
[4]. Gan-ping Li “Design of an Embedded Control and
Acquisition System for Industrial Local Area Networks
Based on ARM” 2010 IEEE
[5]. Yakun , Xiaodong Cheng, “Design and Implementation
of Embedded Web Server Based on ARM and Linux” 2010
IEEE
[6]. Liu Zhongyuan, Cui Lili, Ding Hong, published a paper
titled “Design of Monitors Based on ARM7 and Micro
C/OS-II” 2010 IEEE
[7]. M.Jenko, N.Medjeral & P. Butala, “Component-based
software as a framework for concurrent design of programs
and platforms-an industrial kitchen appliance embedded
system,” Microprocessors and Microsystems, September
2001, pp. 287–296
[8]. Peng D.G, Zhang H., Yang L, “Design and Realization
of Modbus Protocol Based on Embedded Linux System”.
The 2008 International Conference on Embedded Softwares
and Systems Symposia. July 29-31, 2008, Chengdu,
Sichuan, China, pp:275-280.
[9]. Li D., Zhong C.Q., Yuan X.F. “Study on Embedded
Equipment Web Monitoring and Control Based on Industrial
Ethernet”. Proceedings of the 6th World Congress on
Control and Automation, June 21-23, 2006, Dalian, China,
pg: 4600-4603
[10]. Patinge, S, Suryawanshi, Y, Kakde S, “Design of
ARM based data acquisition & control using GSM &
TCP/IP network”, 2013 IEEE International Conference, 26-
28 Dec. 2013 Page(s): 1–4
[11]. Rafia Inam, Jukka Mäki-Turja, Mikael Sjödin,
Mohammad Ashjaei, Sara Afshar: “Support for Hierarchical
Scheduling in FreeRTOS”, 16th IEEE International
Conference on Emerging Technologies and Factory
Automation
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
_______________________________________________________________________________________
Volume: 04 Issue: 04 | Apr-2015, Available @ http://www.ijret.org 683
[12]. Wenbin Huang, Guanglong Wang, Jianglei Lu, FengQi
Gao: “Research of wireless sensor networks for an
intelligent measurement system based on ARM ”, 2011
International Conference on Mechatronics and Automation
(ICMA), Publisher IEEE
[13]. Mahzan, N.N, Shah Alam, Malaysia, Omar A.M,
Mohammad Noor, S.Z, Mohd Rodzi, M.Z, “Design of data
logger with multiple SD cards”, 2013 IEEE Conference on
Clean Energy and Technology (CEAT)
[14]. Zhenlin Lu, Jingjiao Li, Yao Zhang, “The
Reading/Writing SD Card System Based on FPGA”, 2010
First International Conference on Pervasive Computing
Signal Processing and Applications (PCSPA), Publisher
IEEE
[15]. Elkeelany, O, Todakar, V.S, “Data Archival to SD
Card Via Hardware Description Language”, Publisher:
Embedded Systems Letters, IEEE (Volume:3 , Issue: 4 )
BIOGRAPHIES
Yogita Patil is currently pursuing Masters
of Technology in Embedded Systems
from ITM University, Gurgaon, India.
Her areas of interest are Low Power
Embedded Systems, RTOS, Robotics.
Sidharth Bhatia has received his M.Tech
in Embedded Systems from SRM
University, Chennai. His areas of interest
are Remote sensing, Real time embedded
systems, High resolution satellite image
processing. He has various publications in
international journals and conferences.

More Related Content

PDF
Memory interfacing of microprocessor 8085
PDF
introduction to computers
PDF
VTU 4TH SEM CSE COMPUTER ORGANIZATION SOLVED PAPERS OF JUNE-2013 JUNE-2014 & ...
PDF
Embedded systems notes
PDF
A044050107
PPTX
Real Time OS For Embedded Systems
PPTX
IO hardware
PDF
16-bit Microprocessor Design (2005)
Memory interfacing of microprocessor 8085
introduction to computers
VTU 4TH SEM CSE COMPUTER ORGANIZATION SOLVED PAPERS OF JUNE-2013 JUNE-2014 & ...
Embedded systems notes
A044050107
Real Time OS For Embedded Systems
IO hardware
16-bit Microprocessor Design (2005)

What's hot (20)

PPTX
Embedded System Real Time Operating System (ERTS) I unit by vijay
PDF
Me it sem1-itid-cbcgs_dec18
PDF
Microcontroller pic 16f877 architecture and basics
PDF
Unit 1 intro-embedded
PPTX
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
PPT
E.s unit 4 and 5
DOC
Embedded two mark question
PDF
Tutorial Embedded System
PDF
Unit III ARM Interface and ARM Programming
PDF
Module 2 network and computer security
PPTX
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Processor Family
PDF
Io pro
PPTX
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Embeded Hardware
PDF
Unit 2 processor&memory-organisation
PDF
Computer Organization and Architecture 10th Edition by Stallings Test Bank
PPTX
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Embedded Systems Memory
PPTX
Computer organization
PPTX
EMBEDDED SYSTEMS SYBSC IT SEM IV UNIT V Embedded Systems Integrated Developme...
PDF
Memory interfacing of microcontroller 8051
PDF
20120140502007 2-3
Embedded System Real Time Operating System (ERTS) I unit by vijay
Me it sem1-itid-cbcgs_dec18
Microcontroller pic 16f877 architecture and basics
Unit 1 intro-embedded
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
E.s unit 4 and 5
Embedded two mark question
Tutorial Embedded System
Unit III ARM Interface and ARM Programming
Module 2 network and computer security
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Processor Family
Io pro
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Embeded Hardware
Unit 2 processor&memory-organisation
Computer Organization and Architecture 10th Edition by Stallings Test Bank
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Embedded Systems Memory
Computer organization
EMBEDDED SYSTEMS SYBSC IT SEM IV UNIT V Embedded Systems Integrated Developme...
Memory interfacing of microcontroller 8051
20120140502007 2-3
Ad

Viewers also liked (20)

PDF
EIS Technology: New marker using bioimpedance technology in screening for ADHD
PPT
Introduction of WebServices
PDF
EIS technology : bioimpedance application in selective serotonin reuptake
PDF
Bioimpedance density distribution
PDF
Summary of clinical investigations es teck complex system
PDF
Introduction to Web Services
PDF
ARM® Cortex M Boot & CMSIS Part 1-3
PDF
ARM® Cortex™ M Bootup_CMSIS_Part_2_3
PDF
Продвинутое использование ActiveRecord в Yii2
PDF
Примеры решения типичных задач за рамками ядра Yii2
PDF
1: Interfacing using ARM Cortex M4 || IEEE SSCS AlexSC
PDF
Yii2 restful 基礎教學
PDF
Web services
PDF
02 : ARM Cortex M4 Specs || IEEE SSCS AlexSC
PDF
Wearable Technology Design
PPT
Data Acquisition System and Data loggers
PDF
AAME ARM Techcon2013 Intro
PDF
ARM AAE - Intrustion Sets
PDF
ARM AAE - Architecture
EIS Technology: New marker using bioimpedance technology in screening for ADHD
Introduction of WebServices
EIS technology : bioimpedance application in selective serotonin reuptake
Bioimpedance density distribution
Summary of clinical investigations es teck complex system
Introduction to Web Services
ARM® Cortex M Boot & CMSIS Part 1-3
ARM® Cortex™ M Bootup_CMSIS_Part_2_3
Продвинутое использование ActiveRecord в Yii2
Примеры решения типичных задач за рамками ядра Yii2
1: Interfacing using ARM Cortex M4 || IEEE SSCS AlexSC
Yii2 restful 基礎教學
Web services
02 : ARM Cortex M4 Specs || IEEE SSCS AlexSC
Wearable Technology Design
Data Acquisition System and Data loggers
AAME ARM Techcon2013 Intro
ARM AAE - Intrustion Sets
ARM AAE - Architecture
Ad

Similar to Freertos based environmental data acquisition using arm cortex m4 f core (20)

PDF
Data Acquisition and Control System for Real Time Applications
PDF
IRJET- SD Card based File System for CNC Machine using TMS320F2837XD Proc...
PDF
Implementation of linux based uart device driver
PDF
H344250
PDF
Design and Implementation of Pipelined 8-Bit RISC Processor using Verilog HDL...
PDF
IRJET- Design of Low Power 32- Bit RISC Processor using Verilog HDL
PDF
FPGA Implementation of Real Time Data Acquisition System Using Micro blaze Pr...
PDF
A novel implementation of
PDF
An area and power efficient on chip communication architectures for image enc...
PPTX
ARDUINO BASED HEART BEAT MONITORING SYSTEM
PDF
Performance of State-of-the-Art Cryptography on ARM-based Microprocessors
DOCX
Casp report
PDF
LAS16-300: Mini Conference 2 Cortex-M Software - Device Configuration
PDF
Development of Software for Estimation of Structural Dynamic Characteristics ...
PDF
Reading 2 - Hardware sadsadsadasdsadand mobile devices.pdf
PPT
Micro processor
PDF
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIM
PDF
IRJET- BSIOTR IT SMART LAB using IOT
PDF
Realization of high performance run time loadable mips soft-core processor
Data Acquisition and Control System for Real Time Applications
IRJET- SD Card based File System for CNC Machine using TMS320F2837XD Proc...
Implementation of linux based uart device driver
H344250
Design and Implementation of Pipelined 8-Bit RISC Processor using Verilog HDL...
IRJET- Design of Low Power 32- Bit RISC Processor using Verilog HDL
FPGA Implementation of Real Time Data Acquisition System Using Micro blaze Pr...
A novel implementation of
An area and power efficient on chip communication architectures for image enc...
ARDUINO BASED HEART BEAT MONITORING SYSTEM
Performance of State-of-the-Art Cryptography on ARM-based Microprocessors
Casp report
LAS16-300: Mini Conference 2 Cortex-M Software - Device Configuration
Development of Software for Estimation of Structural Dynamic Characteristics ...
Reading 2 - Hardware sadsadsadasdsadand mobile devices.pdf
Micro processor
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIM
IRJET- BSIOTR IT SMART LAB using IOT
Realization of high performance run time loadable mips soft-core processor

More from eSAT Journals (20)

PDF
Mechanical properties of hybrid fiber reinforced concrete for pavements
PDF
Material management in construction – a case study
PDF
Managing drought short term strategies in semi arid regions a case study
PDF
Life cycle cost analysis of overlay for an urban road in bangalore
PDF
Laboratory studies of dense bituminous mixes ii with reclaimed asphalt materials
PDF
Laboratory investigation of expansive soil stabilized with natural inorganic ...
PDF
Influence of reinforcement on the behavior of hollow concrete block masonry p...
PDF
Influence of compaction energy on soil stabilized with chemical stabilizer
PDF
Geographical information system (gis) for water resources management
PDF
Forest type mapping of bidar forest division, karnataka using geoinformatics ...
PDF
Factors influencing compressive strength of geopolymer concrete
PDF
Experimental investigation on circular hollow steel columns in filled with li...
PDF
Experimental behavior of circular hsscfrc filled steel tubular columns under ...
PDF
Evaluation of punching shear in flat slabs
PDF
Evaluation of performance of intake tower dam for recent earthquake in india
PDF
Evaluation of operational efficiency of urban road network using travel time ...
PDF
Estimation of surface runoff in nallur amanikere watershed using scs cn method
PDF
Estimation of morphometric parameters and runoff using rs & gis techniques
PDF
Effect of variation of plastic hinge length on the results of non linear anal...
PDF
Effect of use of recycled materials on indirect tensile strength of asphalt c...
Mechanical properties of hybrid fiber reinforced concrete for pavements
Material management in construction – a case study
Managing drought short term strategies in semi arid regions a case study
Life cycle cost analysis of overlay for an urban road in bangalore
Laboratory studies of dense bituminous mixes ii with reclaimed asphalt materials
Laboratory investigation of expansive soil stabilized with natural inorganic ...
Influence of reinforcement on the behavior of hollow concrete block masonry p...
Influence of compaction energy on soil stabilized with chemical stabilizer
Geographical information system (gis) for water resources management
Forest type mapping of bidar forest division, karnataka using geoinformatics ...
Factors influencing compressive strength of geopolymer concrete
Experimental investigation on circular hollow steel columns in filled with li...
Experimental behavior of circular hsscfrc filled steel tubular columns under ...
Evaluation of punching shear in flat slabs
Evaluation of performance of intake tower dam for recent earthquake in india
Evaluation of operational efficiency of urban road network using travel time ...
Estimation of surface runoff in nallur amanikere watershed using scs cn method
Estimation of morphometric parameters and runoff using rs & gis techniques
Effect of variation of plastic hinge length on the results of non linear anal...
Effect of use of recycled materials on indirect tensile strength of asphalt c...

Recently uploaded (20)

PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
DOCX
573137875-Attendance-Management-System-original
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Well-logging-methods_new................
PDF
Digital Logic Computer Design lecture notes
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
Geodesy 1.pptx...............................................
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
Foundation to blockchain - A guide to Blockchain Tech
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
OOP with Java - Java Introduction (Basics)
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
573137875-Attendance-Management-System-original
R24 SURVEYING LAB MANUAL for civil enggi
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
CH1 Production IntroductoryConcepts.pptx
CYBER-CRIMES AND SECURITY A guide to understanding
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Well-logging-methods_new................
Digital Logic Computer Design lecture notes
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Operating System & Kernel Study Guide-1 - converted.pdf
Geodesy 1.pptx...............................................
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Embodied AI: Ushering in the Next Era of Intelligent Systems

Freertos based environmental data acquisition using arm cortex m4 f core

  • 1. IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308 _______________________________________________________________________________________ Volume: 04 Issue: 04 | Apr-2015, Available @ http://www.ijret.org 680 FreeRTOS BASED ENVIRONMENTAL DATA ACQUISITION USING ARM CORTEX M4F CORE Yogita Patil1 , Sidharth Bhatia2 1 M.Tech. (Embedded Systems), EECE Department, ITM University, Gurgaon, Haryana, India 2 Assistant Professor, EECE Department, ITM University, Gurgaon, Haryana, India Abstract In today’s decade of Big Data and complex computing, the Data acquisition systems hold a prime position. In this project, we present a Data acquisition system, which runs on ARM Cortex M4F core microcontroller and this whole system is managed by a real time operating system names FreeRTOS. Tiva C Series Launchpad is used as the board. The system is currently designed to monitor only temperature. A temperature sensor will be used for monitoring temperature. The data received will be stored in SD card. The main objective of this project is to design a data acquisition system, which is portable, cheaper and deterministic. Currently available systems in market are expensive and bulky whereas this FreeRTOS based Data acquisition system is cheaper and portable as well. Keywords: FreeRTOS, ARM Cortex M4F core, Temperature sensor, Tiva C series Launchpad, SD card. --------------------------------------------------------------------***---------------------------------------------------------------------- 1. INTRODUCTION The field of embedded systems is vast and it‟s getting broader day by day. In today‟s era of technology, where we have got lots and loads of data, acquisition and managing this data is also a big concern. There is unending need for data acquisition system [1]. Managing such a vast and enormous data is in itself a big task. So, such a system is required for data acquisition which is first of all easy to use, portable and cheap [2]. This paper gives a vivid description of a system based on ARM [3][4][5] having Cortex M4F core which is run by FreeRTOS. As an RTOS runs this system [6], so task scheduling becomes possible and easier. This system also has a provision to store data in SD card, which can be used further for review. The paper is split into various sections. The second section gives the basic concept of the project. Hardware and software specifications are covered in third section. Block diagram falls under fourth section. Screen shot of results is shown in fifth section. Sixth and seventh section deals with application areas and advantages. Eighth section entails the conclusion along with future work. 2. BASIC CONCEPT The prime component in this project is the Tiva C Series Launchpad. This Launchpad contains TM4C123GH6PM microcontroller. The TM4C123GH6PM microcontroller has ARM Cortex M4F [7] core. There is an inbuilt temperature sensor [8] on the board, Tiva C Series Launchpad. This temperature sensor on the PE3 pin helps to acquire precisely environmental temperature [9][10]. RTOS is ported on the microcontroller. Here, we have used FreeRTOS, as it is open-source. So, FreeRTOS [11] is ported on to TM4C123GH6PM microcontroller. Then FreeRTOS is programmed for carrying out temperature acquisition task [12]. Booster pack for SD card is interfaced on the launchpad to interface the SD card. The data received is stored onto SD card. 3. HARDWARE AND SOFTWARE DETAILS There are always some Hardware and Software tools required for a project. The different hardware and software used in this project are listed as below: 3.1 Hardware Tools  Tiva C Series Launchpad  Temperature Sensor  SD card Booster pack 3.2 Software Tools  CCS (Code Composer Studio version5.4)  FreeRTOS version8.0.1 (RTOS)  Microsoft Visual Studio 2010 4. BLOCK DIAGRAM The block diagram given below explains the whole process of the system. The Tiva C Series Launchpad is the prime component in this project. Tiva Launchpad is an ARM based board. The microcontroller used in this kit is TM4C123GH6PM which has ARM Cortex M4F core. FreeRTOS is ported onto the microcontroller. FreeRTOS helps in scheduling the temperature acquisition task according to its priorities. So, it actually acts as an operating system for the real time system. The temperature sensor is inbuilt in this kit, it is at PE3 pin. It will sense the temperature and give the data to FreeRTOS for scheduling. The data acquired will be then redirected to SD card. This SD card helps to store data acquired from sensor.
  • 2. IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308 _______________________________________________________________________________________ Volume: 04 Issue: 04 | Apr-2015, Available @ http://www.ijret.org 681 Fig -1: Block Diagram 4.1 Tiva C Series Launchpad Tiva C Series Launchpad is from the makers of Texas Instruments. It is an improved version to the Stellaris Launchpad. They are cheap, self-contained, single-board microcontrollers, which features an ARM Cortex-M4F 32- bit core. Launchpad provides top performance and advanced integration. There are many input-output pins that have dual functionality, which means that they can be easily be configured as digital inputs or outputs, providing access to variety of applications. The LaunchPad's TM4C123GH6PM ARM Cortex M4F 32-bit microcontroller is capable of fuelling up to 80 MHz. The controller can be run at lower speed to reduce energy consumption. It has many features, which makes it a worth choice. 4.2 FreeRTOS FreeRTOS is an open source RealTime Operating system. Its design is developed in such a way that it fits on very small embedded systems and implements very minimalist set of functions. It has many features, which makes it a good choice to opt for. Amongst the various features, some of them are as follows: preemptive tasks, a small footprint written in C and compiled with various C compiler. It also provides a provision to implement mutex binary and counting semaphores and queues. FreeRTOS supports unlimited number of tasks to be run as far as hardware can handle it and of course memory too. There are many functions available in FreeRTOS. The entire life cycle of a task in FreeRTOS can be explained as follows. The “not running” state can further be categorized as ready, blocked and suspended. A task which is blocked can be changed to suspended. A task which is running can be suspended. By using different functions, one can switch between the not running state and resume the function which the user wants. The main aim of Task scheduling is to decide which task is in “Ready” state which has to be run at a given time. FreeRTOS achieves this purpose with priorities given to tasks when they are created. Priority of a task is the prime element the scheduler takes into account to decide which task has to be switched in or switched out. 4.3 SDcard SD card is used in this project, to store the acquired data [13]. When the SD card is formatted, file system will be written into flash region. So, this is the region where the file system exists. „SD card controller‟ helps to communicate „main core‟ with the external devices. It responds to a certain set of standard SD commands and read/write data from the memory core in [14]. SD card is interfaced with the microcontroller using serial data bus. It is connected using „SD buses‟. The „SD bus‟ is particularly designed for high speed whereas the SPI bus can operate with much lower speed only. The microcontroller can read/write data to the memory core and read the registers using standard SD commands send through these serial buses [15]. Before the memory card starts responding to the commands, the memory card should be triggered. Certain set of commands should be shooted one after other to commence the SD card. The SD card will switch to SD interfacing mode on reset. 5. PROCESS FLOW The first and foremost task will be data acquisition. The environmental temperature will be acquired by temperature sensor. This temperature sensor will send the data to ADC. The microcontroller TM4C123GH6PM on Tiva C Series Launchpad, has 12 bit ADC in it. Now, FreeRTOS ported on TM4C123GH6PM takes the lead. FreeRTOS will schedule the temperature task and the resulting acquired data will be written onto SD card. So, the temperature is written onto SD card. This is how, the entire process flow takes place. 6. RESULT Precise results have been obtained in laboratory by following the above process flow. Figure 2 shows the FreeRTOS ported onto Launchpad. The red LED shown in the snapshot blinks after every 6 seconds. Figure 3 shows the Launchpad interfaced with SD card. Booster packs for SD card is used. Figure 4 shows the temperature reading acquired in Code Composer Studio. It displays the temperature in Celsius as well as Fahrenheit. Fig -2: FreeRTOS ported on Launchpad
  • 3. IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308 _______________________________________________________________________________________ Volume: 04 Issue: 04 | Apr-2015, Available @ http://www.ijret.org 682 Fig -3: Screenshot of Launchpad interfaced with SD card Fig -4: Screenshot of obtained simulated results in CCS 7. APPLICATION AREAS FreeRTOS (Free Real Time Operating System) based Data Acquisition system can be used for environmental data capturing. It can also be used for monitoring certain parameters like Temperature, Humidity and Motion in industries. Currently it is optimized to monitor just temperature. It can be of profound use in cryogenic industries for low temperature monitoring. This project can be of utmost use in industrial applications. As it has the capacity to store data, so this data can further be analyzed in matlab to monitor the green house effect. 8. ADVANTAGES The first and foremost advantage of this system is, it is portable and cheap. It is light weight, unlike other systems in market. It has data storage facility, which is another plus point. This Data acquisition system runs on FreeRTOS, which makes it a real robust system. The scheduling of task is done at its best, which makes the system void of time delays. 9. CONCLUSION AND FUTURE SCOPE There are ample of Data acquisition systems available in the market, but we needed to design one which is cheaper than most of them, portable and robust. So, we have successfully made this system which is much cheaper and it uses ARM Cortex M4F core i.e. TM4C123GH6PM microcontroller, which is the latest and much efficient microcontroller. It also has a facility to store data in a SD card which is worth it. This project can be further enhanced by adding different types of sensors like Humidity sensor and Motion sensor. The acquired data can be sent on to the cloud and from there using AMQP protocol, data can be accessed. Diverting data on to server or cloud would help to increase the accessibility of the data for the analysts or users. ACKNOWLEDGEMENTS I would like to express my gratitude towards my mentor, who always supported and encouraged me to do the things, which i thought were impossible. I am highly obliged for his guidance. I would also like to thank the entire faculty and lab technicians of ITM University, Gurgaon. Again vote of thanks for all the authors, whose work was helpful for me. REFERENCES [1]. Daogang Peng, Hao Zhang, Kai Zhang, Hui Li1, Fei Xia, “Research and Development of the Remote I/O Data Acquisition System Based on Embedded ARM Platform” 2009 IEEE [2]. Jiangchun Xu, Jiande Wu, Yuhui Li , “A Networks Data Collection Embedded System Based on ARM-uCLinux” 2009 IEEE [3]. Hua Fang , Ming Tang , Lian Peng “Wireless data acquisition system based on ARM” 2011 IEEE [4]. Gan-ping Li “Design of an Embedded Control and Acquisition System for Industrial Local Area Networks Based on ARM” 2010 IEEE [5]. Yakun , Xiaodong Cheng, “Design and Implementation of Embedded Web Server Based on ARM and Linux” 2010 IEEE [6]. Liu Zhongyuan, Cui Lili, Ding Hong, published a paper titled “Design of Monitors Based on ARM7 and Micro C/OS-II” 2010 IEEE [7]. M.Jenko, N.Medjeral & P. Butala, “Component-based software as a framework for concurrent design of programs and platforms-an industrial kitchen appliance embedded system,” Microprocessors and Microsystems, September 2001, pp. 287–296 [8]. Peng D.G, Zhang H., Yang L, “Design and Realization of Modbus Protocol Based on Embedded Linux System”. The 2008 International Conference on Embedded Softwares and Systems Symposia. July 29-31, 2008, Chengdu, Sichuan, China, pp:275-280. [9]. Li D., Zhong C.Q., Yuan X.F. “Study on Embedded Equipment Web Monitoring and Control Based on Industrial Ethernet”. Proceedings of the 6th World Congress on Control and Automation, June 21-23, 2006, Dalian, China, pg: 4600-4603 [10]. Patinge, S, Suryawanshi, Y, Kakde S, “Design of ARM based data acquisition & control using GSM & TCP/IP network”, 2013 IEEE International Conference, 26- 28 Dec. 2013 Page(s): 1–4 [11]. Rafia Inam, Jukka Mäki-Turja, Mikael Sjödin, Mohammad Ashjaei, Sara Afshar: “Support for Hierarchical Scheduling in FreeRTOS”, 16th IEEE International Conference on Emerging Technologies and Factory Automation
  • 4. IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308 _______________________________________________________________________________________ Volume: 04 Issue: 04 | Apr-2015, Available @ http://www.ijret.org 683 [12]. Wenbin Huang, Guanglong Wang, Jianglei Lu, FengQi Gao: “Research of wireless sensor networks for an intelligent measurement system based on ARM ”, 2011 International Conference on Mechatronics and Automation (ICMA), Publisher IEEE [13]. Mahzan, N.N, Shah Alam, Malaysia, Omar A.M, Mohammad Noor, S.Z, Mohd Rodzi, M.Z, “Design of data logger with multiple SD cards”, 2013 IEEE Conference on Clean Energy and Technology (CEAT) [14]. Zhenlin Lu, Jingjiao Li, Yao Zhang, “The Reading/Writing SD Card System Based on FPGA”, 2010 First International Conference on Pervasive Computing Signal Processing and Applications (PCSPA), Publisher IEEE [15]. Elkeelany, O, Todakar, V.S, “Data Archival to SD Card Via Hardware Description Language”, Publisher: Embedded Systems Letters, IEEE (Volume:3 , Issue: 4 ) BIOGRAPHIES Yogita Patil is currently pursuing Masters of Technology in Embedded Systems from ITM University, Gurgaon, India. Her areas of interest are Low Power Embedded Systems, RTOS, Robotics. Sidharth Bhatia has received his M.Tech in Embedded Systems from SRM University, Chennai. His areas of interest are Remote sensing, Real time embedded systems, High resolution satellite image processing. He has various publications in international journals and conferences.