This is an old revision of the document!


Unit 6: Analog I/O and Process Control

Unit 6 Labs

Download This Document

1. Introduction

The purpose of this laboratory exercise is to investigate applications of embedded controllers to real time control algorithms that employ analog inputs and analog outputs. You will use a computer algorithm to implement a closed-loop processor fro motor speed control. You will see how feedback can be used to linearize an inherently nonlinear process and result in zero steady state control error.


2. Objectives

  • Generate PWM outputs to implement variable motor supply voltage.
  • Implement a tachometer operation using PIC32 Timers.
  • Develop MPLAB X projects that implement open-loop and closed-loop motor control.
  • Develop the C program code to implement a PI controller and a moving average digital filter.
  • Manage multiple background tasks in an interrupt driven system.
  • To monitor and display data from a process running in real-time.

3. Basic Knowledge

    • Basic circuit theory
    • Fundamentals of programming with C
  • How to configure I/O pins on a Microchip® PIC32 PPS microprocessor
  • How to implement a real-time system using preemptive foreground – background task control
  • How to generate a PWM output with the PIC32 processor
  • How to configure the Analog Discovery to display logic traces
  • How to implement the design process for embedded processor based systems

4. Equipment List

4.1. Hardware

In addition, we suggest the following instruments:

4.2. Software

The following programs must be installed on your development workstation: