Embedded software design for a microcontroller-based data logger for stepper motor fault diagnosis

Two independent pieces of embedded software have been developed to operate a data logging system based on a PIC18F8722 microcontroller for a stepper motor diagnosis application. The first piece of embedded software is implemented with several state machines in a foreground/background (superloop) str...

Full description

Bibliographic Details
Published:
Online Access:http://hdl.handle.net/2047/d20002560
id ndltd-NEU--neu-1327
record_format oai_dc
spelling ndltd-NEU--neu-13272021-05-25T05:09:42ZEmbedded software design for a microcontroller-based data logger for stepper motor fault diagnosisTwo independent pieces of embedded software have been developed to operate a data logging system based on a PIC18F8722 microcontroller for a stepper motor diagnosis application. The first piece of embedded software is implemented with several state machines in a foreground/background (superloop) structure, while the second is implemented as an RTOS-enabled software based on the Salvo Lite cooperative real time operating system. The superloop implementation results in data for up to 8 stepper motor channels being logged to an SD card and RS-232 link at a rate of 10 Hz, with approximately 50% processor overhead time reserved for RS-232 communications. The RTOS-enabled implementation results in an improved high priority interrupt service routine execution time, but is overall slower to respond to interrupts compared to the superloop implementation due to the cooperative nature of the chosen operating system. A custom binary-to-ASCII conversion software is also developed for converting the resulting data log file produced by both software implementations to human readable text, as the result of both implementations is a binary data log file containing data of interest for up to 8 stepper motors.http://hdl.handle.net/2047/d20002560
collection NDLTD
sources NDLTD
description Two independent pieces of embedded software have been developed to operate a data logging system based on a PIC18F8722 microcontroller for a stepper motor diagnosis application. The first piece of embedded software is implemented with several state machines in a foreground/background (superloop) structure, while the second is implemented as an RTOS-enabled software based on the Salvo Lite cooperative real time operating system. The superloop implementation results in data for up to 8 stepper motor channels being logged to an SD card and RS-232 link at a rate of 10 Hz, with approximately 50% processor overhead time reserved for RS-232 communications. The RTOS-enabled implementation results in an improved high priority interrupt service routine execution time, but is overall slower to respond to interrupts compared to the superloop implementation due to the cooperative nature of the chosen operating system. A custom binary-to-ASCII conversion software is also developed for converting the resulting data log file produced by both software implementations to human readable text, as the result of both implementations is a binary data log file containing data of interest for up to 8 stepper motors.
title Embedded software design for a microcontroller-based data logger for stepper motor fault diagnosis
spellingShingle Embedded software design for a microcontroller-based data logger for stepper motor fault diagnosis
title_short Embedded software design for a microcontroller-based data logger for stepper motor fault diagnosis
title_full Embedded software design for a microcontroller-based data logger for stepper motor fault diagnosis
title_fullStr Embedded software design for a microcontroller-based data logger for stepper motor fault diagnosis
title_full_unstemmed Embedded software design for a microcontroller-based data logger for stepper motor fault diagnosis
title_sort embedded software design for a microcontroller-based data logger for stepper motor fault diagnosis
publishDate
url http://hdl.handle.net/2047/d20002560
_version_ 1719405912620269568