Humidity sensor with led alarm | Arduino project

This page contains Arduino Humidity sensor with led alarm source code. This project is good for someone who wants to make a humidity meter or hygrometer with led alarm if humidity and temperature over a threshold. It's easy to make and doesn't require an external power supply, just use power from an Arduino UNO R3 board (USB power compatible with this project).

Electronic components list:
1 x Arduino Uno R3
1x 20 x4 I2C LCD display
1 x AM 2320 humidity/temp sensor
1 x 5 mm led ( 2 x if you plan to use led for pin 13 instead built-in led)
1 x 1000 ohms resistor ( 2 x if you plan to use led for pin 13 instead built-in led)
Any USB power adapter, 500 mA current at least.

Here is the Arduino code:
AM 2320 library https://github.com/hibikiledo/AM2320
LCD display i2c library https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library


#include <Wire.h>
#include <AM2320.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x3F, 20, 4);
AM2320 th;
int led2 = 12;
vo…

Low volts simple circuit water detector.

Hello everybody, today I'm going to show you how to make simple circuit water detector. The circuit is very easy to build and use minimal component and works very well.

How the circuit works.
This circuit use transistor to amplifies small current that pass through water to enough current to drive led light without using complex ic.

List of component.
The circuit is very simple and easy to build.
2 transistor bd 139
2 resistor 10kohms, 100 ohms
1 led
2.4 to 6 volts batteries(usb power compatible).
conductive tape.

The video below show test circuit and how it's working and circuit diagram





Water detector schematic diagram.





Water detector wiring diagram.



Comments

  1. do you have the programming code for this?

    Thanks

    ReplyDelete
  2. No, This circuit works by transistors amplify small current past through water from + pole to transistor base.

    Additional : When you supply small current to transistor base, big current will flow from collector to emitter. transistor can amplify current from 10 to even 1,000 times from base current depend on what type of transistor.

    ReplyDelete
  3. Can u pls. Give me instructions on how to build this? I really need it

    ReplyDelete
  4. Can u pls. Give me instructions on how to build this? I really need it

    ReplyDelete
    Replies
    1. The instructions is very easy. I use npn type transistor so when you put small positive current to base of transistor the much bigger current flow to collector to emitter. If you put load between collector and positive polarity of the battery you get load work(such as LED in the video in this page) or you put load between emitter to ground you get load work too.

      If you want the detector more sensitive you can connect transistor 1 emitter leg to transistor 2 base leg and connect collector of both transistors together and connect load(led,motor,etc)between emitter to ground and everything will work like a charm.

      when transistors set to darlington you must beware over current to led or the led(s) will burn. For five volts it is easy to add just 100 ohms between led and transistor (it's very inefficient but easy to work with) for transistor 1 (base connect the detector pad)I limit current to the transistor by add 10 kilo ohms between tr1 collector and positive polarity.

      The circuit is very easy if you try and work with it.

      P.S. find ohm's law explain it google if you like electronic diy.

      Delete

Post a Comment