web analytics

DFRobot Archive

0

DFRobot Tilt Sensor

Introduction

DFRobot Tilt Sensor

The DFRobot Tilt Sensor is a digital mercury-based tilt switch that is either closed, disconnected or open. The module is based on the number of mercury switches. The mercury flows to the low-lying and could therefore be used as a simple tilt sensor. The dedicated sensor expansion boards with the Arduino, in combination, can achieve very interesting and an interactive work.

Note: Mercury is a toxic substance, please be careful to avoid breaking the glass case.

Specification

  • Digital mercury-based tilt switch
  • Can be used as a simple tilt sensor

 

Pin Definition

Touch Sensor module pin definition :

  1. Input
  2. Power
  3. GND

digital input module

Connection Diagram

Digital module connection diagram

Sample Code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
int ledPin = 13; // Connect LED to pin 13
int switcher = 3; // Connect Tilt sensor to Pin3
void setup()
{
pinMode(ledPin, OUTPUT); // Set digital pin 13 to output mode
pinMode(switcher, INPUT); // Set digital pin 3 to input mode
}
void loop()
{
if(digitalRead(switcher)==HIGH) //Read sensor value
{
digitalWrite(ledPin, HIGH); // Turn on LED when the sensor is tilted
}
else
{
digitalWrite(ledPin, LOW); // Turn off LED when the sensor is not triggered
}
}

Go Shopping Kedai Robot – DFRobot Tilt Sensor

 

Kata kunci untuk artikel ini:

1

DFRobot LM35 Linear Temperature Sensor

Introduction

LM35 Analog Linear Temperature Sensor

DFRobot LM35 Linear Temperature Sensor

The DFRobot LM35 Linear Temperature Sensor is based on the semiconductor LM35 temperature sensor. The DFRobot LM35 Linear Temperature Sensor can be used to detect ambient air temperature. This sensor is produced by National Semiconductor Corporation and offers a functional range between -40 degree Celsius to 150 degree Celsius. Sensitivity is 10mV per degree Celsius. The output voltage is proportional to the temperature.
It is commonly used as a temperature measurement sensors. It includes thermocouples, platinum resistance, thermal resistance and temperature semiconductor chips, which commonly used in high temperature measurement thermocouples. Platinum resistance temperature used in the measurement of 800 degrees Celsius, while the thermal resistance and semiconductor temperature sensor suitable for measuring the temperature of 100-200 degrees or below, in which the application of a simple semiconductor temperature sensor has good linearity and high sensitivity. The LM35 linear temperature sensor and sensor-specific expansion of Arduino board, in combination, can be very easy to achieve.

Specification

  • Based on the semiconductor LM35 temperature sensor
  • Can be used to detect ambient air temperature
  • Sensitivity: 10mV per degree Celcius
  • Functional range: -40 degree Celsius to 150 degree Celsius

Pin Definition

The definition of gray-scale sensor pin is

  1. Signal Output
  2. GND
  3. Power

Analog Sensor Pin Definition

Connection Diagram

Analog sensor connection diagram

Sample Code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
void setup()
{
Serial.begin(9600);//Set Baud Rate to 9600 bps
}
void loop()
{
int val;
int dat;
val=analogRead(0);//Connect LM35 on Analog 0
dat=(500*val)>>10;
Serial.print("Tep:"); //Display the temperature on Serial monitor
Serial.print(dat);
Serial.println("C");
delay(500);
}

Documents

Go Shopping Kedai Robot – DFRobot LM35 Linear Temperature Sensor