Show the initial led display and the result of the button

Assignment Help Other Engineering
Reference no: EM131285196

Microprocessor Lab

Lab Assignment

The lab work for this module requires you to familiarize yourself with the use of the components and modules listed below:

• Turning LEDs on and off
• Sensing the state of a pushbutton
• PWM output with analogWrite
• Reading value of potentiometer
• Using a photoresistor
• Using the DHT11 temperature and humidity sensor
• Programming the RGB LED

All the wiring and programming information is available in the textbook and/or at the resource links provided under Study Materials.

Please complete all the lab exercises given below and submit a report including a video demonstration. You will submit the report and video demonstration separately on the course website.

Report: The report should list all the major procedures required to complete each of the exercises. Here are the general guidelines for the report:

1. Cover Sheet: The lab report must include a completed cover sheet with your name, student ID number, the lab number, lab title, and submission date. Note: Your lab report will not be graded without a completed cover sheet.

2. Objective: A short paragraph stating the purpose (main ideas) of the experiment.

3. Procedure: At the beginning of this section, give a summary description of the procedures taken during the lab.

4. Discussion/Conclusion: State your understanding of this experiment. (What did you learn from these experiment?) State challenges and problems faced, and measures taken to resolve these problems and overcome challenges.

5. Arduino Sketches: At the end of the report, please append the text of all the Arduino sketches you have developed. To do this, simply cut the entire text from the Arduino IDE editor window and paste it in the report document. Start on a fresh page for each sketch.

Video Demonstration: In this section, your video demonstration should provide a visual record of the results obtained in each exercise. Please start with recording a brief video clip giving your name, course number, and assignment number. Record a video clip for each exercise according to the instructions provided. Use a video editor to combine all the clips into one video file before you submit/upload to the course website. For guidelines to record and merge video clips, check Record, Merge, and Upload Your Videos.

Exercise 1: LEDs and pushbutton

Connect three LEDs, one each of Red, Yellow, and Green, to pins A2, A4, and A6 respectively, on the breadboard. Connect a pushbutton to pin 7. Be sure to use the resistors to limit current as you have learned from the study material. Write an Arduino sketch to sequentially turn on the LEDs, one at a time. This should create a Red, Yellow, and Green LED flowing display. Now add code, in the beginning of the loop, to check the status of the pushbutton. If the button is OFF (normal) then let the LED code execute. If it is ON (pushed), then skip the LED part and go to the end of loop at a time for one second. The LED display should come on as before. When you keep the button pressed, the display would stop at the end of sequence and will remain so as long as the button is pressed. It would start again when you let go.

The video clip for this exercise should show the initial LED display and the result of the button being pushed. Please repeat by letting go and pushing the button again, two or three times.

Exercise 2: Using a potentiometer to control the brightness of LED

You have learned to control the brightness of LED using the PWM, but you were just incrementing values in a loop. You also know how to read the setting of a potentiometer. Write an Arduino sketch to read the setting of the potentiometer and use it to control the brightness of the LED. This way, you should be able to interactively control the brightness.

The video clip for this exercise should show the wiring of the experiment and the changing brightness of the LED with the setting of the potentiometer.

Exercise 3: Temperature and humidity monitor using DHT11

Load the test program given in the Reading Assignment, DHT11 Temperature and Humidity Sensor, in Arduino IDE. Modify it to send the data to the serial port every 5 seconds. Compile and download to the UNO board. Open the serial monitor window.

The video clip for this exercise should show the wiring of the experiment and the running display of the results in a serial monitor window. Reset the UNO board after starting video recording, breathe on the sensor, and display the text in the serial monitor window. [MO2.1, MO2.2, MO2.3, MO2.4, MO2.6, MO2.8]

Use the Add submission button to submit your lab assignment.

Reference no: EM131285196

Questions Cloud

What is the thermal efficiency of that cycle : evaluate the compression ratio that results in the maximum work output from the cycle. What is the thermal efficiency of that cycle? What effect does the peak pressure have on the result?
How heavily the company should invest in manufacturing : Why a local bank has been losing customers.- How heavily the company should invest in manufacturing and marketing home fax machines.
Uses activity-based costing overhead allocation system : X Company uses an activity-based costing overhead allocation system. It has identified three activities - Setup, Purchasing, Packaging - and their respective cost drivers - setup hours, purchase orders, packages. The following cost driver information..
Fundamentals of human resource management : In Chapter 11 of Fundamentals of Human Resource Management, the text discusses the process people often go through as dissatisfaction sours their commitment to the organization or their job. For this discussion, choose one of these options as a re..
Show the initial led display and the result of the button : The video clip for this exercise should show the initial LED display and the result of the button being pushed. Please repeat by letting go and pushing the button again, two or three times.
What types of people read the local newspaper : Are consumers more likely to buy brands that are labeled as environmentally friendly?- How do female consumers determine if a particular perfume is right for them?
Influence a person view of change : How can ethical challenges, leadership, and sustainability, influence a person view of change? (Include at least 120 words for completed understanding and at least one empirical article)
Find the temperature reached after constant pressure : The specific heat at constant pressure of ethylene is approximately 1.71 kJ/kg K over the temperature range of the reactants.
Change and adventure on the one hand and stability : Human beings have desires for change and adventure on the one hand and stability and safety on the other hand. How do leaders most effectively address both of these needs in organizations that invoke a model of continuous change? (Include an empi..

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