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

  Design a digital clock according to the given specifications

Design a digital clock according to the following specifications: The clock will display time in the standard 12 hour format HH:MM with an indicator for AM/PM. Your clock will use a 7-segment display unit.

  Inductance of each conductor due to internal flux linkages

Calculate in mH/km (a) the inductance of each conductor due to internal flux linkages only, (b) the inductance of each conductor due to both internal and external flux linkages, and (c) the total inductance of the line.

  How would you define the problem differently

What is the problem that needs to be addressed? If applicable, how would you define the problem differently? What do you think is the correct solution and why?

  Calculate hoop and axial stress in each section

Pressurize assembly to 100 psi. Calculate hoop and axial stress in each section. Design both bolt patterns (number and spacing) for safe operation. Justify your design. Ignore stress concentrations

  What would be the average delay per vehicle over the cycle

How long must the cycle length be so that the queue that forms at the beginning of the cycle - what would be the average delay per vehicle over the cycle?

  The voltage waveforms shown

When you have completed your exam and reviewed your answers, click Submit Exam. Answers will not be recorded until you hit Submit Exam. If you need to exit before completing the exam, click Cancel Exam.

  Determining the complementary error function

Suppose that the signaling rate doubled. Find the new value of the average probability of error. You may use Table to evaluate the complementary error function.

  What are some other products and features of the products

What are some other products and features of those products for which the Arduino would be a possible candidate as that product's microcontroller?

  Design logic to produce six outputs using and and or gates

Divide up the 80 seconds available for the cycle through the 16 combinations into 16 intervals and determine which lamps should be lit in each interval based on expected driver behavior. Assume that, for interval 0000, a change has just occurred a..

  Mobile applications require high availability because end

1.assess the effectiveness and efficiency mobile-based applications provide to capture geolocation data and customer

  Investigate the role of signal conditioning

Investigate the role of signal conditioning and to design, implement and use signal processing algorithms - brief description of how you designed it, how it works, and the salient (important) features.

  Design a circuit that accomplishes the ir distance sensor

Design a circuit and Arduino program that accomplishes the IR distance sensor will detect the presence (through waving of a hand).

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