Project 3: Interrupt Service Routines and Pulse-Width Modulation Control

Project Goals

At the end of this project, you should be able to:


Project Components

All components are required to receive full credit for the project.

Part 1: Microcontroller Circuit

The current amplifier board is composed of two full H-Bridge circuits. We will be using one full H-Bridge to control the middle fan (allowing us to control rotation speed and direction). We will split the other H-Bridge into two "Half Bridges": one for each of the left and right fans. This will allow us to control speed of these two fans, but not direction.

The board and connections to your circuit are documented on the Lab Hardware page: see the Motor Control Board section.

Connect the current amplifier board to your three fans and to motor power:

Connect the current amplifier board to your Atmel chip (the 15 pin connector on one side of the board):

Part 2: Interrupt Service Routine

Note: this part will count for one personal programming credit

Create an interrupt service routine that will generate the PWM signals for each of the three PWM inputs to the motor control board.

ISR words of wisdom:

Part 3: High-Level Control

Note: this part will count for one personal programming credit

Modify the your main function such that it executes one of two segments of code, depending on the initial state of your switch.

Part 4: Hovercraft Layout

Revisit the mounting of your components on the Frisbees: Let us know if you need any additional components for mounting.


References


What to Hand In

All components of the project are due by Tuesday, April 6th at 5:00pm.


Grading

Group grade distribution:

Grades for individuals will be based on the group grade, but weighted by the assessed contributions of the group members.


fagg [[at]] cs.ou.edu

Last modified: Sun Mar 28 01:15:57 2010