Write a code that would modify the led brightness

Assignment Help Other Engineering
Reference no: EM131305036

Microcomputers Lab: Exploring PWM

Objectives: To gain a better understanding of Pulse Width Modulation.

What you will need: Arduino UNO, Analog Discovery Kit (ADK), LU EE Component Kit, jump wires, a computer with installed Arduino IDE and ADK.

Assignment:

1. Connect an LED to PWM pin 10. Use an appropriate resistor. Connect the oscilloscope channel 1 of Analog Discovery kit (ADK) to the same Arduino pin. Connect together grounds of Arduino and ADK.

2. Open "Fade" example from "Basics" and modify it for the pin 10. Upload the sketch to Arduino and observe the LED fading in.

3. Modify the sketch so that the LED would fade slower, start the ADK's oscilloscope and observe the voltage on the pin.

4. Adjust the scope's time base so that you would see a train of pulses. Take screenshots for two different pulse durations. Connect a 4.7 µF capacitor in parallel to the LED. Are there any changes in the pulses' shape? Take a screenshot and then remove the capacitor.

5. Adjust the scope's time base so that you would see a signal resembling a sawtooth. Take a screenshot.  Connect a 220 µF capacitor in parallel to the LED. Take a screenshot and then remove the capacitor.

6. Write a code that would modify the LED brightness according to a low-frequency sinusoid. Observe the corresponding voltage waveform on the scope, take a screenshot.

In your report:

1. Report the screenshots you have collected. Based on your observations, what do you conclude regarding the PWM operation?

2. Report the code you produced in 6. Comment on it.

3. Can you propose any ways to make the PWM digital signal closer to the analog signal?

Reference no: EM131305036

Questions Cloud

Find the price of call option on stock : The current price of a stock is $14. In 6 months, the price will be either $18 or $11. The annual risk-free rate is 6%. Find the price of a call option on the stock that has a strike price of $12 and that expires in 6 months.
Description of the developmental stages of children : Description of the developmental stages of children from Birth to Age 5/Pre-K and K to Age 8/Grade 3 with examples - Description of the relationship between brain research and the developmental theories of learning.
Maintain constant growth rate in its dividends : Suppose you know that a company’s stock currently sells for $50 per share and the required return on the stock is 10 percent. You also know that the total return on the stock is evenly divided between a capital gains yield and a dividend yield. If it..
Explain why you chose the first steps : Determine your first steps. Create requirement documents. Explain why you chose the first steps, in your status report due next week. Determine what is known and what is unknownabout the project. Explain why this might be important to the project.
Write a code that would modify the led brightness : ELEN 4486: Microcomputers Lab: Exploring PWM. Write a code that would modify the LED brightness according to a low-frequency sinusoid. Observe the corresponding voltage waveform on the scope, take a screenshot
Describe the the responsibilities of the workers : Describe the the responsibilities of the workers. Describe what the unions can do to help labor. Explain what management can legally say and do when they learn an organization movement is in progress.
What problems can occur if such methods are not used : Why is it important to use a structured, systematic method for designing networks? What problems can occur if such methods are not used?
Provide summary slide which address key point of your paper : Provide one summary slide which addresses key points of your paper. Narrate each slide, using a microphone, indicating what you would say if you were actually presenting in front of an audience.
Chemical formulas for carbonic acid : Why the second part of each statement is incorrect and correct it - Ammonium phosphate is (NH3)4PO4 Chemical formulas for Carbonic acid.

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