Lab 3: using sensors with an arduino

 

 

 

 

Introduction:

 

In this lab I will be expanding my knowledge of buttons and PWM in the first part. I will be simulating a nightlight that cycles through 8 different color mode and combinations. The second section will be learning about the use of sensors and how to use them with the Arduino.

 

 

 

Equipment/Components:

 

  1. Arduino Uno
  2. Small breadboard
  3. Jumper wires
  4. 10kΩ potentiometer
  5. 10kΩ resistor (x2)
  6. 220Ω resistor (x3)
  7. USB cable
  8. Photoresistor
  9. TMP36 temperature sensor
  10. Digital Multimeter

 

 

 

Procedure: 

 

1.       Lab 3a: Procedure:

 

·         Watch the videos:

 

1.       Tutorial 03 for Arduino: Electrical Engineering Basics(https://www.youtube.com/watch?v=abWCy_aOSwY)

 

2.       Tutorial 04 for Arduino: Analog Inputs (https://www.youtube.com/watch?v=js4TK0U848I)

 

3.       TechBits 13 – Analog and Digital Signals (https://www.youtube.com/watch?v=Z3rsO912e3I)

 

·         Construct the breadboard circuit and implement the program presented in the video to create an adaptable night light and detailed in Chapter 2 (pp.35-39) of your textbook.

 

2.       Lab 3b:Procedure:

 

  • This week’s lab will simulate the coffee maker heater functionality we saw in Week 1. The difference in our program and the actual coffee maker is that instead of turning on a heating element, our program will blink an LED.
    • Design a circuit and Arduino program that expands the concepts explained in Chapter 3 ( pp. 52- 59) of your textbook and accomplishes the following:

 

      • Blinks an LED when the temperature of a temperature sensor is at or below room temperature for more than 5 seconds
      • If the temperature exceeds room temperature for more than 5 seconds, the LED will turn off.
    • 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.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>