Skip to main content

Soil Moisture sensor with Arduino in Tinkercad | how to use soil moisture sensor in Tinkercad

  Soil Moisture sensor with Arduino in Tinkercad | how to use soil moisture sensor in Tinkercad Circuit diagram: Arduino Sketch: // C++ code // int moisture_data = 0; void setup() {   pinMode(A0, INPUT);   Serial.begin(9600);   pinMode(12, OUTPUT);   pinMode(6, OUTPUT); } void loop() {   moisture_data = analogRead(A0);   Serial.println(moisture_data);   if (moisture_data < 21) {     digitalWrite(12, HIGH);     digitalWrite(6, HIGH);   } else {     digitalWrite(12, LOW);     digitalWrite(6, LOW);   }   delay(10); // Delay a little bit to improve simulation performance }

PIR Sensor Based Security System using an Arduino in Tinkercad .

 PIR Sensor Based Security System using an Arduino in Tinkercad 

In this project we are going to create a simple security system circuit with an Arduino and PIR motion sensor which can detect movement around it. An LED will light up when movement is detected and also buzzer will turn on.

We can use this project as security system in various places in home, ware houses PIR (“passive infrared”) sensors use to sense the motion. We can use PIR to detect whether a human has moved in or out of the sensor’s range. They are mainly found in appliances and gadgets used at home or for industries.

Introducing the PIR Motion Sensor:

The PIR motion sensor is used to detect movement in particular area. PIR stand for “Passive Infrared”. Basically, the PIR motion sensor measures infrared light which is coming from the objects within its field of range.

So, it can detect motion based on changes in infrared light in the environment which is coming from the human being.

 

The sensor in the above picture has two settable potentiometers to regulate the delay time for that on the left side and for regulating   the sensitivity of PIR has potentiometer on the right side.

 

 


Inside the PIR sensor:

 


Backside of PIR Sensor:



Pinout:

PIR sensor has only 3 pins.

·       GND – connect to ground

·       OUT – connect to an Arduino digital pin

·       5V – connect to 5V

 

 

 

Circuit Diagram:



 

Connection:

·      VCC-of PIR conncted to the +5v of an Arduino.

·      GND-of PIR conncted to the GND of an Arduino.

·      OUT-of PIR connected to the pin 2 of an Arduino.

·      Postive pin of buzzer connected to pin 1 of an Anrduino.

 

Code Explanation (Block Based):

Belowpicture explains the coding block we have used, here we have used the conditional statement that is if block and comparison operator “=”.

Read the digital pin 2 checked whether its HIGH or LOW.

If the digital pin 2 is 1 that means HIGH then buzzer will on and off after sec ,which is connected to pin 1.

 


Arduino Sketch:


void setup()

{

  pinMode(2, INPUT);

  pinMode(1, OUTPUT);

}

 

void loop()

{

  if (digitalRead(2) == 1) {

    digitalWrite(1, HIGH);

    delay(1000); // Wait for 1000 millisecond(s)

    digitalWrite(1, LOW);

    delay(1000); // Wait for 1000 millisecond(s)

  }

}



Watch Working Video:



 

Like share and comment :

                                                     Our FaceBook Page                                                           







For Any queries please contact:

impulseTech101@gmail.com

 

Comments

Popular posts from this blog

Water level monitoring system using IoT | IoT based water level using Nodemcu ESP8266 & ESP32

Water level monitoring system using IoT | IoT based water level using Nodemcu ESP8266 & ESP32 Hello Everyone! I have come up with new tutorial Water level monitoring system using IoT | IoT based water level using Nodemcu ESP8266 & ESP32 For Code & Circuit Diragram: In this video what you will learn about? 1. How to configure the new Blynk IoT Platform. 2. How to setup web dashboard 3. How to create template in blynk iot 4. How to interface ultrasonic sensor with node mcu esp8266. 5. How to read ultrasonic sensor with esp8266 1.You can Watch Playlist on New Blynk IoT Platfom New Blynk IoT platform with esp32 | how to setup automation in Blynk IoT app https://youtu.be/O2HZuu4KtIc 2.How to create events in blynk IoT platform | events in new Blynk IoT platform 🔥🔥 https://youtu.be/X5zVaGk8QV0 3.IoT Based smart garden monitoring system | Smart plant monitoring using Blynk IoT https://youtu.be/GTdxD5vQwy0 4.Water level monitoring system using IoT | IoT based

Soil Moisture sensor with Arduino in Tinkercad | how to use soil moisture sensor in Tinkercad

  Soil Moisture sensor with Arduino in Tinkercad | how to use soil moisture sensor in Tinkercad Circuit diagram: Arduino Sketch: // C++ code // int moisture_data = 0; void setup() {   pinMode(A0, INPUT);   Serial.begin(9600);   pinMode(12, OUTPUT);   pinMode(6, OUTPUT); } void loop() {   moisture_data = analogRead(A0);   Serial.println(moisture_data);   if (moisture_data < 21) {     digitalWrite(12, HIGH);     digitalWrite(6, HIGH);   } else {     digitalWrite(12, LOW);     digitalWrite(6, LOW);   }   delay(10); // Delay a little bit to improve simulation performance }

DS18B20 Temperature sensor with new Blynk IOT Platform | DS18B20 with Esp32 & Blynk IoT Cloud

DS18B20 Temperature sensor with new Blynk IOT Platform | DS18B20 with Esp32 & Blynk IoT Cloud   Hello Everyone! I have come up with new tutorial based on the all new Blynk IoT platform. which is DS18B20 Temperature sensor with new Blynk IOT Platform | DS18B20 with Esp32 & Blynk IoT Cloud #iot #blynk In this video what you will learn about? 1. How to configure the new Blynk IoT Platform. 2. How to interface DS18B20 sensor with esp32 4. How to configure mobile blynk IoT platform 5. How to setup Automation in Blynk IoT 1.You can Watch Playlist on New Blynk IoT Platfom New Blynk IoT platform with esp32 | how to setup automation in Blynk IoT app | #iot #blynk #esp32 https://youtu.be/O2HZuu4KtIc 2.How to create events in blynk IoT platform | events in new Blynk IoT platform 🔥🔥 #blynk #esp32 #iot https://youtu.be/X5zVaGk8QV0 3.IoT Based smart garden monitoring system | Smart plant monitoring using Blynk IoT #iot #blynk #esp32 https://youtu.be/GTdxD5vQwy0 4.Water