License

Recommend Projects

Water Sensor

4 years ago 974
  • Description
  • Documents
  • BOM
  • Attachments
  • Members
  • Comments

Description

Water Sensor to Arduino

enter image description here When a drop of water onto the sensor, digital output port raindrop sensor module can output low, the analog output can change the output voltage based on the number of raindrops, the more raindrops, the lower voltage. When the sensor detects water, the digital output port high, the analog output voltage of the power supply voltage port Vcc. Module PCB board has two LED lights, one for power indicator, and one for indicating whether there raindrops. When the light is on behalf of the raindrops digital output module output is low, Microduino can detect high and low potential of the digital port for processing. There is also a potentiometer to adjust the sensitivity with different sensitivity, a drop of water dripping can have two effects. There is also a voltage comparator LM393 chip, voltage comparator with the high and low logic input and the inverting input voltage comparator, the output of the fast response, but it can not achieve the same LM358 linear scale operations. water sonsor

CODE Project


void  setup()
{
  pinMode(13,OUTPUT);
  Serial.begin(9600);
}
void loop()
{
  int value=analogRead(A0);
  Serial.println(value);
  if(value<800)//You  can change this value to fit for your app
    digitalWrite(13,HIGH);//Open the led
  else 
    digitalWrite(13,LOW);//close
  delay(1000);
}

Arduino IDE Serial Port Monitor

water sensor

Documents

Water Sensor

BOM

ID Name Designator Footprint Quantity
1 Rain connector J1 CONNECTOR_MINI-SMD-5P 1
2 Arduino MEGA 2560 U1 DIP 1

Attachments

None

Members

Success
The owner does not allow comments in this project now

Comments (0)

goToTop
你现在访问的是EasyEDA海外版,使用建立访问速度更快的国内版 https://lceda.cn(需要重新注册)
如果需要转移工程请在个人中心 - 工程 - 工程高级设置 - 下载工程,下载后在https://lceda.cn/editor 打开保存即可。
有问题联系QQ 3001956291 不再提醒
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow
We use cookies to offer you a better experience. Detailed information on the use of cookies on this website is provided in our Privacy Policy. By using this site, you consent to the use of our cookies.