Microduino Rain sensor usage

来自Microduino Wikipedia
Pkj讨论 | 贡献2014年4月25日 (五) 02:40的版本 (Created page with "{{Language | Microduino 雨滴传感器使用}} {| style="width: 800px;" |- | ==Objective== This tutorial will teach you how to use the rain sensor. ==Equipment== *'''Micro...")
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索
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.



Schematic


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:

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