The University of Michigan
Department of Mechanical Engineering

Design and Manufacturing II
ME350 Fall 2002


RESOURCE PAGE FOR ME350
MECHATRONICS                                                              bob's home page
 

MOTOR CONTROLLERS, CABLES,  AND PROXIMITY SWITCHES
can be checked out beginning Thursday, October 17.
Time: Thursdays 6:00 pm to 7:20 pm
Location: room 2178 GG Brown
To set up an alternate checkout time, contact Steve Emanuel:  fulcrum@umich.edu

Note:  These materials must be returned at the end of the semester for you to revceive a grade for the course.
 

Course materials are available below:


Fast Instructions for using the Motor Controller, Cables, and Photodetectors:
    1- Check out the hardware from Steve "Vicegrip" Emanuel  (fulcrum@umich.edu)
    2- Solder the motor cable to your motor (this is a brown "lamp cord", two conductor cable)
    3- Connect the power bus (plastic plate with two screws and a RED and BLACK wire) to the board
    4- Clip the battery charger to the power bus bolts.  BE SURE TO MATCH THE WIRE COLORS:
          BLACK battery charger clamp connects to the bolt with the BLACK wire
          RED battery charger clamp connects to the bolt with the RED wire
    5- Plug in the battery charger.
    6- After a short delay, the motor should start spinning:
          Allow an initial startup delay of at least 5 seconds after applying power
          The initial direction will depend on how you soldered the cable to the motor
          The motor will spin for 5 seconds, then it will apply a brake for 1 second
          The motor will spin in the opposite direction for 5 seconds, then it will brake for 1 second
          The motor will reverse and continue the % seconds ON, 1 second BRAKE cycle, reversing every 6 seconds
    7- This simple procedure will allow you to test your mechanisms.  You may add photointerrupters at a later point if you wish to gain additional control over the motion of your mechanism.  Details for how to do this are included below.

Motor Control Tutorial

LMD18245 Motor Controller Datasheet

PIC16F84A Datasheet

Photo Interrupter Datasheet

Instructions for Programming the Microcontrollers in the Motor Controller Circuits

Sample "C" code for Microcontroller:

  The following files are just text files with a *.c extension.  You can read them with any text editor.
  We compile these programs and burn them into the memory of a microcontroller in the lab.
  This has been done for you, but you can modify the source code to change the function of the controller.
     (for example, you can change the current level to the motor, the time delays, etc...)
Example #1:  Simple motor driver: reverse every 5 seconds (no detectors) source code: me350t.c
Example #2:  Drive motor from Detector to Detector

Below is a link to the HELP files for the compiler program for the microcontrollers.  It gives examples of syntax for the simple C code.
Help File for "C" Compiles (CCS)

Comments, questions, suggestions?  Send a message to Prof. Robert Dennis, Department of Mechanical Engineering, the University of Michigan