Introduction: Yr 10 Weatherstation Project
Step 1: Buy the Components
LDR and TMP36
Step 2: Assemble the Circuit
remember if the buldge of the temperature sensor is facing away the positive pin is on the left and the ground pin is on the right and the output pin is in the middle
start the assembly of the circuit by connecting the 5v power pins of the arduino to the power rails of the bread board. Add a single colour LED to the top right corner of the bread board and connect the cathode to the top negative rail, Then connect the anode to pin 13 on the arduino with a 1k resistor inline. Then connect and RGB LED to the bread board in the upper half with the cathode in slot 24 and the red pin of the LED to slot 23 and but the other pins in the corresponding pins. Put a 330 resistor in line with cathode, connect the red pin of the LED to pin 6 of the arduino, the green pin to pin 9 of the arduino and the blue pin to pin 5 of the arduino. Next connect an LDR to slot 19 and 20 of the breadboard then connect slot 20 to the positive rail of the bread board, Next connect the other pin of the LDR to pin A0 of the arduino. Place the temperture sensor with the bulge facing away and the middle pin in column 11 of the breadboard, then connect that slot to pin A1 of the arduino. connect the left pin to the positive power rail and the right pin to negative.
Step 3: Next the Code
Below is the code i have written to make this weatherstation function. Also in the file are comments and what each piece of code does for the functionality of this project