Create a periodic interrupt used to implement two pwm signal

Assignment Help Other Engineering
Reference no: EM131752193

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.

Reference no: EM131752193

Questions Cloud

Describe the step-by-step sequence to reduce the rate : Describe the step-by-step sequence to reduce the rate of inflation.
Explain procedures in auditing the provision : ABC Bank is one of the second-tier banks in Hong Kong, providing a variety of banking services and products to a broad range of customers in Hong Kong.
What is the corporate culture of your organization : What is the corporate culture of your organization? what are the principles you will imbibe in its corporate culture?
Brief description of the indicated preventive intervention : Designing and implementing an effective intervention presents various challenges for the counselor. How might a counselor best address these challenges?
Create a periodic interrupt used to implement two pwm signal : Your ultimate goal for this lab is to use SysTick system timer to create a periodic interrupt which will then be used to implement two separate PWM signals.
Establish the standards for unit of single product : ABC Company began operations on June 1, 2019. For its first month of operations, ABC Company established the following standards for unit of its single product.
Everything else remaining unchanged : Everything else remaining unchanged, what will happen if the Fed buys government bonds in the open market and borrowed reserves is zero?
Competitive advantage in supply chain : Name a successful company that has a competitive advantage in supply chain. How have they grown in the past 10 years? Where are they located at?
Determine that the variance is unfavorable : Calculate the direct material price variance for June. If the variance is favorable, enter an F after your number with a space between the number.

Reviews

Write a Review

Other Engineering Questions & Answers

  Characterization technology for nanomaterials

Calculate the reciprocal lattice of the body-centred cubic and Show that the reciprocal of the face-centred cubic (fcc) structure is itself a bcc structure.

  Calculate the gasoline savings

How much gasoline do vehicles with the following fuel efficiencies consume in one year? Calculate the gasoline savings, in gallons per year, created by the following two options. Show all your work, and draw boxes around your answers.

  Design and modelling of adsorption chromatography

Design and modelling of adsorption chromatography based on isotherm data

  Application of mechatronics engineering

Write an essay on Application of Mechatronics Engineering

  Growth chracteristics of the organism

To examine the relationship between fermenter design and operating conditions, oxygen transfer capability and microbial growth.

  Block diagram, system performance and responses

Questions based on Block Diagram, System Performance and Responses.

  Explain the difference in a technical performance measure

good understanding of Mil-Std-499 and Mil-Std-499A

  Electrode impedances

How did this procedure affect the signal observed from the electrode and the electrode impedances?

  Write a report on environmental companies

Write a report on environmental companies

  Scanning electron microscopy

Prepare a schematic diagram below of the major parts of the SEM

  Design a pumping and piping system

creating the pumping and piping system to supply cool water to the condenser

  A repulsive potential energy should be a positive one

Using the data provided on the webvista site in the file marked vdw.txt, try to develop a mathematical equation for the vdW potential we discussed in class, U(x), that best fits the data

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd