Lab 2: using pwm to light an led

 

 

 

 

 

 

 

Introduction:

 

In this lab I will be learning about the use of buttons, PWM (pulse width modulation), and functions as the name of the lab suggests. There are two parts. The first part I will be watching a video and constructing the circuit as instructed on the video and writing the program to interact with it. This circuit will be using PWM to control the brightness of an LED. The second part I will be creating a program that will interact with the Arduino with the use of a button to control an LED.

 

Equipment/Components:

 

·         Arduino Uno

 

·         Small breadboard

 

·         Jumper wires

 

·         10kΩ resistor (x1)

 

·         220Ω resistors (x3)

 

·         USB cable

 

·         Pushbutton

 

·         5mm single-color LED

 

·         Digital Multimeter

 

 

 

Procedure: 

 

1.       Lab 2a: Procedure:

 

·         Watch the video: Tutorial 02 for Arduino: Buttons, PWM, and Functions (https://www.youtube.com/watch?feature=player_embedded&v=_LCCGFSMOr4)

 

·         Construct the breadboard circuit and implement the program presented in the video and in Chapter 2 (pp. 29-35) of your textbook to control the brightness of the external LED via PWM.

 

2.       Lab 2b:Procedure:

 

·         Design a circuit and Arduino program that accomplishes the following:.

 

·         Reads a press of a pushbutton once, and it cycles through all possible brightness values.

 

·         A press of the pushbutton a second time during the cycle, and it will “reset” the system by turning the LED off and setting the brightness value back to 0.

 

·         Another press of the pushbutton again, and it will then start the brightness cycle over again.

 

·         Include a video of your circuit in operation and any computer screenshots during its operation. Please include your Grantham ID number in the video to show your work..

 

·         Send your code file (.ino) of the lab completed and operational as well for credit.

 

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

STAY HOME, SAVE LIVES. Order your essay today and save 20% with the discount code ATOM