Preview

Motor Speed Control

Satisfactory Essays
Open Document
Open Document
952 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Motor Speed Control
EE 308

New Mexico Tech

Spring 2011

Lab 5 – Part 2 Final Project: Motor Speed Control
Introduction and Objectives
In this lab you will control the speed of a motor. Figure 1 shows the hardware setup, which is the same as for Week 1 of Lab 4. You will use the potentiometer on your evaluation board to set the desired speed of the motor, and you will control the speed through the PWM output of the HCS12. You will measure the speed of the motor using an input capture pin, and display the desired and actual speeds on the terminal..

1. The Lab
It is up to you how you design the system to accomplish the goal of this lab, nonetheless, here are some guidelines to assist you in ensuring proper operation of the system. 1. Build the circuit shown in Figure 1. 2. Design a real-time routine that gets executed every 8ms. Develop a method to verify the timing of that routine, e.g., increment LEDs. 3. Program the A/D converter to read the value from the pot either the one on the microcontroller board or an external one. In the routine developed in Part 1, read the A/D converter (use 8-bit mode). Again develop a method to display the results and verify the operation of the A/D converter as you change the input voltage. 4. Set up the PWM to generate a 50 kHz PWM signal on one of the four PWM channels. Set it up for high polarity. It will be easiest to set PWPERx to 255. Verify that the PWM works. In the real-time routine, write the eight most significant bits to the A/D value you read to PWDTYx. The motor speed should change as you use the pot to vary the voltage on the A/D. 5. Measure the speed of the motor by determining the time between two falling edges of the optical encoder. In your main program display this time on the LCD display. You can use floating point arithmetic to convert this time into RPM. Display the RPM value on the LCD display. What is the maximum motor speed? 6. Measure the speed for several different duty cycles by varying the voltage with the pot.

You May Also Find These Documents Helpful

  • Powerful Essays

    Nt1330 Unit 5 Lab Report

    • 1050 Words
    • 5 Pages

    Figure 8 shows the variable step input (Speed) and the motor actual output speed after using PID controller…

    • 1050 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    Xc60 Unit 8 Project

    • 568 Words
    • 3 Pages

    In the PC the math lab code is written to get the frequency of different voltages that are produced by brainwave sensor. This is given to the ARM processor by the protocol which is responsible by the UART. The ARM will process the signal and the corresponding emotion is displayed on the LCD display and the speed of the DC motor is reduced or increased based on the voltage and by changing the duty cycle of the PWM signal which is derived by the relay driver and the below diagram represents the serial data transmission to the arm through UART and driving the output to different devices which is responsible by the GPIO. The speed of the wheel is reduced based on the generated frequencies and there cross- ponding emotions by differing the PWM signal which is done by writing the embedded C programme in keil software and it is processed by using the ARM…

    • 568 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Click on the fly lab button. After reading through the lab and understanding what you will be doing, click on start lab.…

    • 862 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    BIOL102 Lab 1

    • 1686 Words
    • 8 Pages

    To conduct your laboratory exercises, use the Laboratory Manual located under Course Content. Read the introduction and the directions for each exercise/experiment carefully before completing the exercises/experiments and answering the questions.…

    • 1686 Words
    • 8 Pages
    Powerful Essays
  • Satisfactory Essays

    70-410 R2 Lab 1

    • 1445 Words
    • 7 Pages

    The lab environment consists of computers connected to a local area network. The computers required for this lab are listed in Table 1-1.…

    • 1445 Words
    • 7 Pages
    Satisfactory Essays
  • Good Essays

    Initially, we set up our track from some desirable point from the table and we made it touch the top of the edge of the table. We placed the car at the beginning of the track which was tied to a tight string. The string was running over the pulley and was holding the washers on the other end at a certain height. The car’s height didn’t really matter because it wasn’t changing at all throughout the lab. Each data run, I let the car go and it would go until the washers hit the ground. Kelvin watched the washers and when they hit the ground he would press stop before they hit to find the maximum velocity at that…

    • 631 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    NETW206 W7 Labreport

    • 309 Words
    • 2 Pages

    Also, after completing the lab, you must show your work by copying and pasting a screenshot of the following configurations/verification:…

    • 309 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Netw206

    • 319 Words
    • 2 Pages

    Also, after completing the lab, you must show your work by copying and pasting a screenshot of the following configurations/verification:…

    • 319 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Photosynthesis Lab

    • 310 Words
    • 2 Pages

    What is the control in this experiment? What is the purpose of the control in this experiment?…

    • 310 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    5. Click the “Information” bar at the bottom of the lab simulation and read all the background information.…

    • 954 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    What is the control in this experiment? What is the purpose of the control in this experiment?…

    • 350 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    1. First view the recording on my message board under “Supplemental Learning Materials” for this lab. You will need the “code words” from the recording for one of your conclusion questions. Link to recording: http://www.connectionslivelesson.com/p2fwrdno8yk/…

    • 844 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    Newton Lab Report

    • 1330 Words
    • 6 Pages

    The second part of the lab was different in that: a group had to tie a small scale to opposite end of the rope where the weight was located. Immediately following that scale, one would then tie a toy car. After the toy car another scale would be attached; likewise another car would follow. One student would then pull the whole system back before the back end of the second car would touch the wall provided by the ramp. Immediately after that student would release the system he and a second student would read the scales. Essentially, one student would have to read one…

    • 1330 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    What is the goal of this lab? What question is it trying to answer, or what problem is it trying to explain?…

    • 962 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    science

    • 1032 Words
    • 5 Pages

    To conduct your laboratory exercises, use the Laboratory Manual located under Course Content. Read the introduction and the directions for each exercise/experiment carefully before completing the exercises/experiments and answering the questions.…

    • 1032 Words
    • 5 Pages
    Good Essays