Arduino Temperature Circuit

Here are the directions and rules for making your Arduino Temperature Circuit in 332.

Rules:
1. Be careful with all of the parts, and even if you get mad, still be careful with them.

Step 1:
Make sure you have all of the parts you need:
1. Arduino
2. USB cable
3. Laptop with Arduino IDE installed. (If you do not have the Arduino IDE installed, tell Mr. Grimm)
4. Small Breadboard
5. Red wire
6. Blue wire
7. Black wire
8. TMP 36 sensor

When you are sure you have all of the parts, you can begin putting you circuit together.

Step 2, set up your circuit according to the digram below:
temperature_tmp36fritz.gif

Step 3:

  • Open the Arduino IDE on your tablet
  • Go to File/New
  • Erase all of the code from the window
  • Copy and paste all of the code from the box below into the Arduino Sketch




  • Upload the program
  • Click the Serial Monitor button to see the temperature readings.
Note:
The very end of the code is where you can change how often the temperature is printed to the serial monitor. Currently it is "waiting five minutes" by using the number 300000.

Here is a little table for you to see other options. Change the number in the code to change the time the program waits.

10 = 10 milliseconds
100 = 100 milliseconds
1000 = 1 second
2000 = 2 seconds
3000 = 3 seconds

You can see that if you want the time to be one minute, you must know that there are 60 seconds in one minute. Then you must convert seconds to milliseconds. You can use algebra for that.


No comments:

Post a Comment