Skip to main content

Posts

Showing posts from December, 2020

SMART AUTOMATION

  SMART AUTOMATION SYSTEM USING ARDUINO AND RAIN DROP SENSOR BLOCK DIAGRAM Arduino Code   #include<Servo.h> intrain_sensor = A0, servo = 3; Servo myServo; void setup() { Serial.begin(9600); myServo.attach(servo); myServo.write(0);   } void loop() { intsensorvalue=analogRead(rain_sensor); int motor = map(sensorvalue, 220,1023,180,0); myServo.write(motor); Serial.println("Sensor vlaue is  "); Serial.println(sensorvalue); Serial.println("Servo motor rotates by angle  "); Serial.println(motor); delay(1000);   }

Automatic Irrigation

  The automatic watering system helps you to water plants at your home, garden or farm in your absence. It uses technology to detect the moisture level of the soil and automatically water the plant when there is no moisture detected in the soil. required components Arduino uno Soil moisture sensor Relay for Arduino Dc motor pump Breadboard Jumper wires CIRCUIT DIAGRAM  ARDUINO CODE int ACWATERPUMP = 13; //You can remove this line, it has no use in the program. int sensor = 8; //You can remove this line, it has no use in the program. int val; //This variable stores the value received from Soil moisture sensor. void setup() {   pinMode(13,OUTPUT); //Set pin 13 as OUTPUT pin, to send signal to relay   pinMode(8,INPUT); //Set pin 8 as input pin, to receive data from Soil moisture sensor. } void loop() {    val = digitalRead(8);  //Read data from soil moisture sensor     if(...

VALLALAR ATL WEATHER STATION

  What is a DHT11 Sensor? DHT11 is a low-cost digital sensor for sensing temperature and humidity.  This sensor can be easily interfaced with any micro-controller such as Arduino, Raspberry Pi etc… to measure humidity and temperature instantaneously. CIRCUIT DIAGRAM ARDUINO CODE #include <SimpleDHT.h> // for DHT11,  //      VCC: 5V or 3V //      GND: GND //      DATA: 2 int pinDHT11 = 2; SimpleDHT11 dht11(pinDHT11); void setup() {   Serial.begin(115200); } void loop() {   // start working...   Serial.println("=================================");   Serial.println("VALLALAR ATL WEATHER STATION");      // read without samples.   byte temperature = 0;   byte humidity = 0;   int err = SimpleDHTErrSuccess;   if ((err = dht11.read(&temperature, &humidity, NULL)) != SimpleDHTErrSuccess) {     Serial.print("Read DHT11 failed, err="); Serial.println(err);del...