Write an arduino sketch to read the setting of potentiometer

Assignment Help Other Engineering
Reference no: EM131271170

Microcontrollers and Arduino

This assignment requires your own materials. You do not have to record a video but you will need to upload the layout of the breadboard so I can make the video.

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]

Reference no: EM131271170

Questions Cloud

Outline the personal selling process : Discuss changes that have taken place in the personal selling function.- Outline the personal selling process, highlighting, with examples, the fundamental importance of interactivity.
Discuss the importance of closing the sale : Discuss the importance of closing the sale, illustrating with at least one closing method.- Write a brief account of emerging roles within the selling function, taking account of the impact of new technology.
What are the sources of capital for a for profit company : What are the sources of capital for a for profit company? What are the sources of capital for a not for profit organization? What are the pros and cons of the various sources of capital
Relationship between frequency and cost per contact : Discuss the balance that can be achieved between fixed salary, bonuses and incentives and the link with motivation of sales people.
Write an arduino sketch to read the setting of 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.
Prepare the employee relations and power planing : Prepare the employee relations and power planing - HR challenges in arab gulf countries
How you plan to develop your communication skill set : Write a 200- to 350-word summary of your communication quiz score, describing your strengths and weaknesses and how you plan to develop your communication skill set
Discuss the importance of measuring sales performance : Discuss the importance of measuring sales performance. Include in your discussion examples of both qualitative and quantitative measures.
Market structure of the construction industry in south afric : Using the key distinguishing features of any market structure discuss the market structure of the construction industry in South Africa

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