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

  Why do people perceive change as linear over time

Why do people perceive change as linear over time - Why is change not linear and ever increasing and What are the four big categories of US energy consumption and what percentage of total energy consumption does each category consume?

  Prepare a optical networks

Prepare a Optical networks - Background about optical network and how it is work

  Calculate the total number of hours spent on each work order

You work in a company that hire and pay workers on weekly basis. At the end of each week you have to provide the total number of hours those workers spent in order to pay them. You will be provided with one Excel file at the end of each week that ..

  Write a literature review on the kerr effect

Write a Literature Review on the Kerr Effect.

  Find minimized sop logic expression having inputs a-b-c

A city council has three members, A, B, and C. Each member votes on a proposition (1 for yes, 0 for no). Find a minimized SOP logic expression having inputs A,B, and C and output X that is high when the majority vote is yes and low otherwise. Show..

  What is the mechanical advantage

Given an inclined plane, if the length of the inclined plane equals 11.5 feet and the vertical height equals 4.5 feet, what is the mechanical advantage?

  Briefly describe the meaning of the term mechatronics

Briefly describe the meaning of the term mechatronics both in terms of the 'systems approach' and the technology involved and state the elements that are common to all mechatronic systems and state their purpose.

  Formulate the above problem mathematically and formulate

problem 1 the board of directors of general wheels co. is considering seven large capital investments. each investment

  Particular characteristics related to the microstructure

Investigate and assess the quality of suitable data from three different sources - Detail the appropriate properties and criteria for the selection of a metallic, ceramic, polymer and composite material

  Compare and contrast wired media with wireless media

Discuss, compare, and contrast wired media (coaxial cable, twisted pair, fiber optic) with wireless media (802.11 a,b,g,n). Decide which is better and defend your position.

  The data bus of a microprocessor system

b) RD and MEMRQ are control lines from the CPU. What must their logic state be in order to read the switches?

  Find the signal-tonoise ratio for conductor

The signal power for a particular class of network wiring is 2898dB and the noise rating at that particular signal strength at 100MHz is 40dB. Find the signal-tonoise ratio for this conductor.

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