Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Other Engineering Expert

Assignment

Your ultimate goal for this week's lab is to use SysTick system timer to create a periodic interrupt which will then be used to implement two separate PWM signals (variable duty cycle digital outputs) to control the left/right and up/down position of a small robotic arm.

By varying the duty cycle between limits, the robotic arm's left/right and up/down angles will be changed.

Here are the requirements for this solution (given a breadboard, single variable resistor, wires, and 2 axis microservo robotic arm):

1. Implement a "manual" mode which you will be able to change the position of the left/right servo and the up/down servo one at a time.

2. There must be a method to adjust the PWM (duty cycle) of each servo axis (one at a time) using a single analog input from the user in real-time.

3. You must also implement an "automatic" mode which will automatically change the servo position for both the left/right and up/down servo from one extreme position (-90 degrees from neutral to 90 degrees from neutral) continuously until manual mode is entered.

4. You must have a display indicator that gives an alphabetic label for the servo axis you are currently adjusting (or last adjusted), i.e. l/r, u/d, or bth for left/right, up/down or both. This must work in both manual and automatic modes.

5. You must have a way to latch each servo's position (in degrees) from neutral and continuously display it after it is set. This must work in both manual and automatic.

6. There should be no way to make your PWM'ed servos, display of the duty cycle, or software malfunction just by switching the switches, or adjusting the variable resistor at any time.

7. There must be at least 50 levels of PWM resolution from -90 degrees from neutral to 90 degrees from neutral. The servos don't have to move exactly 180 total degrees (they don't) but they do have to move as far as they can judging by an oscilloscope measuring the duty cycles of digital outputs going to the servos at -90 and +90 degrees.

8. NOTE: You may only write in C and use no assembly files except for functions SetSysClock(), gpio_c_init(), gpio_d_init(), seg7_init(), seg7_put(), adc_start(), adc_done, and adc_init. I suggest using your last week's lab main.c (and makefile) and build on it from there.

Other Engineering, Engineering

  • Category:- Other Engineering
  • Reference No.:- M92560877

Have any Question?


Related Questions in Other Engineering

A detailed review of spatial modulation and simulation

A Detailed Review of Spatial Modulation and Simulation Learning Outcomes a. Learn how to model mobile communication channels d. Discern knowledge development and directions on the recent advances in 4G to the research pr ...

Conceptual design of forced-free-mixed convection

Conceptual Design of Forced-Free-Mixed Convection Experiment This assessment is to be completed individually. 1. Learning Outcomes: - Develop a basic ability to conceptually design an experimental apparatus - Use theory ...

Control theory - lab reportsfor experiments 1 to 4 you must

Control Theory - Lab Reports For experiments 1 to 4 you must undertake the following: a) At the start of each section (including the pre-lab activities) there are a number learning outcomes. That is, what students should ...

Part 1configure verify and troubleshoot wan links and ip

Part 1 Configure, verify and troubleshoot WAN links and IP services Answer to all questions below: 1. What is the name of the Safe Work Australia code of practise that provides guidance on how to manage the risks of elec ...

Projection of planes1 a regular pentagon of 25 mm side has

Projection of Planes 1. A regular pentagon of 25 mm side has one side on the ground. Its plane is inclined at 45° to H.P. and perpendicular to the V.P. Draw its projections. 2. Draw the projection of a circle of 50 mm di ...

Introduction to engineering design assignment -

Introduction to Engineering Design Assignment - Drafting Question 1 - Field notes and traverse drawing may be an outdated form of keeping and presenting information on the position of features on a site. Modern electroni ...

1 online discussion forum - post your proposed topic and

1. Online Discussion forum - Post your proposed topic and chosen data set as well as a short plan for the project. This is required for approval of the topic. As discussed, students must select unique topics, therefore i ...

Assignment -problem 1 - given is the lcc difference

Assignment - Problem 1 - Given is the LCC difference equation that represents some LTI system: y(n) - ¾y(n-1) - ¼y(n-2) = x(n) + x(n-1)   a) Find the impulse response of the system (solve the LCCDE). b) Draw a block diag ...

Register design a cpu register is simply a row of

Register design A CPU register is simply a row of flip-flops (i.e. SR, JK, T, etc) put side by side in an array to make the size of register required. For example, an 8 bit register has 8 flip-flops side by side for stor ...

Assignment 11 what is the purpose of ore reserve and

ASSIGNMENT 1 1. What is the purpose of ore reserve and resource estimation? Why are resource and reserve estimates important to the mining industry? 2. What is meant by ore? What is meant by the term waste? How is the di ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As