Using Sensors with an Arduino
- Watch the videos:
- 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.
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.
- Explain the process you used in this lab to arrive at the final design of both the hardware portion and the software portion to achieve the design objectives.
- Investigate how a temperature sensor such as the TMP36 used in this lab works. In other words, describe the relationship between the values read from this device and how it correlates to temperature.
- Why is this device also referred to as a “transducer”? What are some other common types of transducers that you are familiar with?
- Measure the output voltage of the TMP36 at the point at which the program turns the LED off with a digital multi-meter. Take a picture of the digital multi-meter to verify that proper measurement has been made.
- How does the previous measurement compare to the information found in the following plot of output voltage versus temperature?
- Answer these questions and submit with code and screenshots of your circuit and program.