Arduino

4-Sensor Data-Meter

Contents
  • 25 resistors (5 of each: 100R, 220R, 330R, 1K, 10K)
  • 15 LEDs (5 of each: Red, Yellow, Green)
  • 1N4148 small signal diode
  • 10K miniature preset potentiometer
  • 5 miniature "tact" switches (2-pin, 6mm square)
  • 830 tie-point breadboard
  • Miniature speaker (12mm diameter, 40 ohm)
  • 9V PP3 battery connector for Arduino
  • 65 male-male jumper wires
  • 16 chars by 2 line LCD module with blue backlight
  • Miniature light dependent resistor (LDR)
  • DHT11 Digital humidity sensor
  • LM35DZ Analog temperature sensor
  • SW-520D Tilt sensor (non-mercury)
Sensor 1: Tilt Sensor (SW-520D)
This is a simple ball tilt switch

With the two pins level, a 10° tilt will close the contacts

Connect 1  pin to ground and the other pin to a 10k pullup resistor and to Arduino pin 6
Tilt sensor wiring
Both pins are the same, so it doesn't matter which you use for Sense and 0V
Connect one pin to 0V
Connect second pin to Arduino digital input pin 6
Second pin is also connected to one end of10k pullup resistor
Other end of pullup resistor is connected to 5V

 
Sensor 2: Temperature Sensor (LM35DZ)
A precision analog temperature sensor in 3-pin package
Connect the Temp pin to Arduino analog input pin
The output voltage is 10mV per °C
When Arduino is using the 5V reference with 10bit ADC it has a 1024 count
Temp = (5.0 * analogRead(tempPin) * 100.0) / 1024
Temperature sensor wiring
Connect +5V and 0V pins
Connect Temp pin directly to Arduino analog input pin 0
You may need to add a filter to stabilise the reading when using breadboards

 
Sensor 3: Light Sensor (LDR - Light Dependent Resistor)
A basic, uncalibrated light dependent resistor
Resistance varies from a few hundred ohms in bright light, to several megohms in darkness
Use a lookup table or calculations to convert to Lux values
 

Light sensor wiring
Connect one pin to 0V
Connect second pin to Arduino Analog input pin1
Second pin is also connected to one end of10k pullup resistor
Other end of pullup resistor is connected to 5V

 
Sensor 4: Humidity Sensor (DHT-11)
A digital humidity and temperature sensor in 4-pin package
Resolution is 1°C or 1% RH (so better to use analog LM35 for temp measurements)
The output is a stream of 40 bits: 4 bytes of data and 1 byte of checksum
No external components are required
Simply connect Data pin to Arduino digital input pin  7
 
Data Logger Fritzing Image
  • Click Image for larger view
  • Download Logger code from >>HERE<<