Arduino 007: Outdoor Temperature Indicator

This will help you:

Use a temperature sensor to create a light indicator that will change color based on the temperature outside

Time: 1-2 hours / Level: B3

You should already:

You Will Need:

Get the code and resources for this activity by clicking below. It will allow you to download the files from a Google Drive folder. Unzip the folder and save it in a sensible location.

Step 1: Temperature Sensor

Assemble the circuit as pictured in temp_indicator.png. Open temperature_sense.ino and read the code to understand what is going on.

[image]

Step 2: Color Indicator

Modify the circuit to add an RGB LED which will indicate the temperature. Open temperature_glow.ino and read the code to understand what's going on. Here is a schematic of an RGB LED with an explanation for connecting it. Connect your Arduino and run the script. Try changing the upper, lower and middle temperature values to the weather you're used to.

Step 3: (Optional) Put it Outside

If the parts you used are your own, you can take the sensor home and mount it. Secure the temperature sensor inside the plastic cup, so the cup can be turned upside-down. Glue the suction cup to the plastic cup. Run a wire from the temperature sensor, inside your window, to the rest of the circuit. Mount the cup upside-down outside, so the sensor is exposed to the air but protected from light rain. Now, you can see the outside temperature from inside your room!

Step 3: Finishing Off

Take a video of your circuit in use, showing off a quick demo of the functionality. Share it via the submission button below to get it featured on the Circuit Board!

Return any parts to the supply area, and please sort things by the correct value so the next person can find what they need. Thanks!