Lab Assignment 3


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

·         Driving a DC motor using a transistor

·         Using the ULN2003 module to drive a stepper motor

·         Controlling a servo

·         Generating sounds

·         Using a shift register to expand I/O

·         Receiving IR signals from the supplied remote control unit

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 (60 percent): 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 (5 points): 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 (15 points): A short paragraph stating the purpose (main ideas) of the experiment.

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

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

5.    Arduino Sketches (20 points): 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 (40 percent): 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: Toggling LEDs using IR remote

Connect three LEDs (different colors) and the IR receiver to the UNO board. The purpose is to turn the LEDs on and off using keys on the remote. Select three keys on the remote that you would use to toggle the LEDs. Write an Arduino sketch to detect the keys and turn the corresponding LED on or off when the key is pressed. The sketch should turn on all the LEDs in the setup part. In the loop part, it will simply look for the selected keys being pressed and change the state of the corresponding LED. This implies that you will need to store the present current of each LED in a variable.

The video clip for this exercise should show the wiring of the experiment and the use of the remote to toggle the three LEDs.


Exercise 2: Using a potentiometer to control the servo

Attach the small (one-sided) arm to the servo. Connect the servo and a potentiometer to the UNO board as shown in the example. Use the potentiometer to position the servo.

The video clip for this exercise should show the wiring of the experiment and the changing position of the servo arm with the setting of the potentiometer.


Exercise 3: Controlling the speed of a stepper motor

Modify the test program to let the stepper motor run continuously in the clockwise direction at about 10 RPM. This means that one full rotation should take about 6 seconds. The motion should take place at a constant speed which would require that the delay in each step is the same.

The video clip for this exercise should show the wiring of the experiment and the stepper motor running. Keep the motor in view for a little more than two full rotations. [MO3.2, MO3.3, MO3.6]


Use the Add submission button to submit your lab assignment.

 

 

    • 10 years ago
    Microprocessor W3
    NOT RATED

    Purchase the answer to view it

    • lab3.zip