Write a code that would modify the led brightness

Assignment Help Other Engineering
Reference no: EM131371821

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: EM131371821

Questions Cloud

Describe the workings of any home buyer assistance : Describe the workings of any home buyer assistance schemes and stamp duty concessions that may be available in your State or Territory. Would your client be eligible for any of these - Explain the role of the RBA with respect to interest rates and ..
Why play is an important part of a development : A description of why play is an important part of a developmentally appropriate curriculum. Be sure to support your statements with at least one scholarly source.
What protections are in place to ensure atomicity : If your implementation is correct, what protections are in place to ensure atomicity and consistency? Could a more effective method of ensuring data integrity be implemented in your solution?
Identify the people who will execute the procedure : The whole project is talking about changing lab in our university from English units to metric units. I want you also to talk about the safety, cost, and obstacles or challenges that I might face if I want to change the system from English to metr..
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
What is the purpose of interconnecting the two timers : Assume that output PL is on and power to the system is lost. When power is restored, what will the status of this output be?
What lessons can be gleaned from the experiences : What lessons can be gleaned from the experiences that occured with respect to the alliance and lessons learned from a cultural perspective. What could have been done better? Use the text and any outside references, but cite all references used.
Write a summary discussing the credibility of each source : For each of the given issues, write a summary discussing the credibility and authority of each source relative to the issue in question.
What about company self-concept : Why is it important for firms to address the question of their public image even without public agitation or scandal? What about company self-concept? How does this relate to the situation in the case?

Reviews

Write a Review

Other Engineering Questions & Answers

  Assignment on managerial communication oral presentation

For the purpose of this assignment, you are the chief information officer for the Stone Goose Company. This is your big chance to be the principle change agent in the Stone Goose Company and to propose a new social media policy to executive manage..

  Determine the per-unit resistance of the load

Determine the per-unit resistance of the load on the base for the low-voltage side. Then determine the load resistance RL in ohms referred to the high-voltage side and the per-unit value of this load resistance on the chosen base.

  Discuss the automotive applications of avr microcontrollers

Briefly discuss the automotive applications of AVR microcontrollers. Summarize the AVR microcontroller applications in electronics lab test equipment

  Describe the operations of this preamplifier circuit

Describe the operations of this preamplifier circuit and explain how these preamplifier circuits work with single-supply circuits in limiting low frequency resonating components from the signal?

  Find stress on both laminae of a laminate

Find σ1, σ2, and σ6 at z = 0, on both laminae of a laminate [±30]T subject to Nx = 1 N/m (all remaining forces and moments equal to zero), with t1 = t2 = 1.27 mm, E1 = 137.8 GP a, E2 = 9.6 GP a, G12 = 5.2 GP a, ν12 = 0.3.

  Production system of four serial automatic workstations

A medical facility treats non-emergency patients. Patients arrive according to an exponential interarrival time with a mean of 15 minutes. Upon arrival they check in at a registration desk staffed by a single nurse. Registration times follow a tri..

  Kk-3 system coding in grope technology

how to write code for any particle shape using KK-3 system coding in grope technology

  Explain friedmans arguments about social responsibility

Explain Friedman's arguments about social responsibility? Compare and contrast Milton Friedman on the social responsibility of business and Michael McFarland on the social responsibility of engineers.

  Six-pole wound-rotor induction motor

A 100-kW, three-phase, 60-Hz, 460-V, six-pole wound-rotor induction motor develops its rated full-load output at a speed of 1158 r/min when operated at rated voltage and frequency with its slip rings short-circuited.

  Good project for the symposium

Each year the School of Science, Mathematics and Engineering hosts a symposium (Links to an external site.) show-casing student work, during spring semester.

  In order to execute the program

In this program we are going to load the .wav files into MATLAB code and we can be able to play the required key tones from 0 to 9 by executing the code and listen through the system output devices.

  Fundamental statistical concepts-quality management methods

1. Fundamental Statistical Concepts and Quality Management Methods 2. Design Approaches for Quality and Performance Excellence

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