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.
- Arduino Uno
- Small breadboard
- Jumper wires
- 10kΩ potentiometer
- 10kΩ resistor (x2)
- 220Ω resistor (x3)
- USB cable
- TMP36 temperature sensor
- Digital Multimeter
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.