This is a Arduino moisture sensor. It will give us values between 450-1023, so we need to map it to get the percentage value.
Step 1: What You Need?
1 x Arduino UNO / Arduino Pro Mini1 x Moisture Sensor
1 x Breadboard
1 x LCD (16x2)
1 x Potentiometer (10k-20k Ohm)
1 x 9V Battery
1 x 9V Battery Holder
Male-to-Male Jumper Wires
Don't have components? Don't worry. Just click the component's name.
Step 2: Connect The LCD & Potentiometer.
Connect the LCD with the wires to Arduino as it's shown on the schematic.Step 3: Connect Moisture Sensor.
- Connect the moisture sensor board Vcc pin to Positive rail of the breadboard and Gnd pin to the Gnd of Arduino.- Moisture sensor data pin need to be connected to A0 (last of 4 pins) on the Arduino board.
Step 4: Upload The Code.
Step 5: Connect The Power Supply.
Add the power supply (9V Battery) and set the contrast of your LCD with the potentiometer. Also set the potentiometer on the moisture sensor if the red light on the small board is not on. What you should get is as its shown on the picture, but instead of Wilgotnosc, you'll get "Humidity", as the Wilgotnosc is other language. Check if the sensor is working properly with a cup of water.
Download:
Arduino softwareSources:[http://www.instructables.com/id/Arduino-LCD-Soil-Moisture-Sensor/?ALLSTEPS]
0 comments:
Post a Comment