Difference between revisions of "Microduino Rain sensor usage"

From Microduino Wiki
Jump to: navigation, search
(Created page with "{{Language | Microduino 雨滴传感器使用}} {| style="width: 800px;" |- | ==Objective== This tutorial will teach you how to use the rain sensor. ==Equipment== *'''Micro...")
 
(Rain sensor)
Line 18: Line 18:
  
 
==Rain sensor==
 
==Rain sensor==
Introduction:
+
Introduction:
  
*Voltage:5V
+
*Voltage: 5V
  
*Power indictor, output LED indicator.
+
*Power indicator, 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 .
+
*TTL output: 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
 
*Sensitivity can be adjusted through the potentiometer
Line 38: Line 38:
 
*Raindrops board size is 5.4*4.0MM
 
*Raindrops board size is 5.4*4.0MM
  
Usage introduction:
+
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.
 
*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.
Line 50: Line 50:
  
 
[[File:雨滴传感器.jpg|600px|center|thumb]]
 
[[File:雨滴传感器.jpg|600px|center|thumb]]
 
  
 
==Schematic==
 
==Schematic==

Revision as of 06:40, 12 September 2016

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 indicator, output LED indicator.
  • TTL output: 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