Microduino Rain sensor usage

From Microduino Wiki
Revision as of 02:40, 25 April 2014 by Pkj (talk) (Created page with "{{Language | Microduino 雨滴传感器使用}} {| style="width: 800px;" |- | ==Objective== This tutorial will teach you how to use the rain sensor. ==Equipment== *'''Micro...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Language: English  • 中文

Objective

This tutorial will teach you how to use the rain sensor.

Equipment

  • Other equipment
    • USB cable one
    • Jumper several
    • Rain sensor one

Rain sensor

Introduction:

  • Voltage:5V
  • Power indictor, output LED indicator.
  • TTL ouput: TTL output signal for low level effectively. Drive power is about 100ma, can driven relay, buzzer, small fan, and so on directly .
  • Sensitivity can be adjusted through the potentiometer
  • Raindrops board and control board are separated, convenient to wire leads.
  • The raindrops plates has large area, and more conducive to detect the rain.
  • The board with a hole and convenient installation.
  • Control board size is 3*1.6MM
  • Raindrops board size is 5.4*4.0MM

Usage introduction:

  • Connect the 5V power, the power LED indicator light. If no rain on raindrop board, DO port outputs high voltage, then switch LED off, otherwise, D0 port outputs low voltage, switch LED on.
  • Remove the rain on raindrop board, system will recover to original state and output high voltage.
  • AO analog output, can be connected to the microcontroller AD port to detect the rainfall.
  • DO TTL output also can be connected to microcontroller to defect the rain.


雨滴传感器.jpg


Schematic

雨滴传感器原理图.jpg


Program

https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Sensor/rainDropSensor

The program is very simple. Read the A0 analog value directly, the rain sensor will generatea voltage when hit the rain.

Debug

Step 1:Stack all Microduino module and sensor, as follows:

雨滴传感器连接图.jpg

Step 2:Compile the program and download it.

Step 3:Drop two drops of water, the OLED displayed value will be changed.

Result

OLED displays value will be changed with the rainfall.

Video

http://v.youku.com/v_show/id_XNzAxMTA2MDAw.html