Home
About Us
Achievement
Home
Raspberry-Pi Projects
_Raspberry Pi 4 Complete Guide
Arduino Project
_All Projects
Esp8266 Project
_All Projects
Esp32 Project
_Automation-with-feedback
Arduino Interfacing With Soil Moisture Sensor
Just Do Electronics
August 20, 2022
Circuit Diagram :-
Code :-
//Prateek //www.prateeks.in #include
#include
LiquidCrystal lcd(12,11,10,9,8,7); int m; int percentage; int led = 13; int map_low = 1023; int map_high = 280; void setup() { pinMode(A5, INPUT_PULLUP); pinMode(4,OUTPUT); pinMode(5,OUTPUT); Serial.begin(9600); lcd.begin(16,2); lcd.clear(); lcd.setCursor(0,0); lcd.print("Irrigation Systm"); lcd.setCursor(0,1); lcd.print("Pump="); lcd.setCursor(10,1); lcd.print("M= "); } void loop() { int m= analogRead(A5); Serial.println(m); percentage = map(m, map_low, map_high, 0, 100); lcd.setCursor(10,1); lcd.print("M= "); if (percentage>100) { percentage = 100; } lcd.setCursor(12,1); lcd.print(percentage); lcd.print ("%"); lcd.print (" "); delay(200); if (m>=780) { digitalWrite(4, HIGH); lcd.setCursor(6,1); lcd.print("ON "); digitalWrite (led,LOW); } else if(m<=770) { digitalWrite(4, LOW); lcd.setCursor(6,1); lcd.print("OFF"); digitalWrite (led,HIGH); } }
Video :-
0 Comments
Newer
Older
ESP32 Interfacing With LDR Sensor
How To Make RFID & Keypad Based Door Lock
IoT Based Fingerprint Biometric Attendance System Using NodeMCU (Esp8266)
Esp32 Cam Based Face Unlock
Ultrasonic Sensor as a Counter with Arduino
NRF Based Servo Motor Control
ESP32 Led Blink With Push Button
How to Make a Conveyor Belt System | Counter Machine
IoT Based Patient Health Monitoring System Using Blynk App
Arduino ebook
YouTube
Like on Facebook
Follow on Twitter
Follow on Google+
Follow on Instagram
Subscribe on Youtube
Hi WelCome To My Website If you have a creative mind and want to learn Electronics even without studying it then FRIENDS this Website And Youtube Channel is for you, I am crazy creators who love making Electronics things. I have a bunch of more than 130 Tutorial Videos on My YouTube Channel and I upload a new Tutorial every Sunday.
Tags
Arduino Project
Esp32 Project
Esp8266 Project
0 Comments