Skip to main content

Posts

Showing posts from February, 2023

Solar Lights Auto OnOff and Home Automation with an Arduino Uno and LDR Module A Simple Guide

Solar Lights Auto OnOff and Home Automation with an Arduino Uno and LDR Module A Simple Guide: Automatic street light control is used to control the street lights(Turn on and off based on the light). Here we make use of LDR(Light Dependent Resistor) and LED(Light Emitting diode) and arduino. Hard Ware Components Required: 1) LDR 2)LED 3)4.7k Resistor 4)Bread Board 5)Connecting wires 6)Arduino LDR is used to detect the light, Arduino is used to on/off the Light. Hardware Connections.- Arduino 3rd pin connected to LED +ve Arduino GND connected to LED -ve through 4.7k Arduino +5v is connected to LDR One End Arduino A0 pin is connected to LDR other end Arduino GND is connected to LDR other end with 4.7k Arduino Step 1: Programming, Compiling and Uploading to Arduino // Program related to LDR and LED interfacing to Arduino #include <SoftwareSerial.h> int sensorPin = A0; // select the input pin for the LDR int sensorValue = 0; // variable to store the value coming from the sensor int l...

Getting Started with Arduino and PIR Sensors for Home Security: An Easy Guide to Implementing Motion Detection with Code

Getting Started with Arduino and PIR Sensors for Home Security: An Easy Guide to Implementing Motion Detection with Code Arduino Motion Sensor/Detector Project using PIR Sensor Detecting motions or movements has always been important in most projects. With the help of the PIR Sensor it has become very easy to detect human/animal movements. In this project we will learn how we can  interface a PIR Sensor with a microcontroller like Arduino . We will  interface an Arduino with PIR module  and blink a LED and beep a Buzzer whenever a movement is detected. The following components will be needed to build this project. Materials Required: PIR Sensor Module Arduino UNO (any version) LED Buzzer Breadboard Connecting Wires 330 ohm resistor PIR sensor:    The PIR sensor stands for Passive Infrared sensor. It is a low cost sensor which can detect the presence of Human beings or animals. There are two important materials present in the sensor one is the pyroelect...

Getting Started with Arduino and Ultrasonic Sensors: An Easy Guide to Calculating Distance with Code

Getting Started with Arduino and Ultrasonic Sensors: An Easy Guide to Calculating Distance with Code: The HC-SR04 ultrasonic sensor uses SONAR to determine the distance of an object just like the bats do .  It offers excellent non-contact range detection with high accuracy and stable readings in an easy-to-use package from 2 cm to 400 cm or 1” to 13 feet. The operation is not affected by sunlight or black material, although acoustically, soft materials like cloth can be difficult to detect. It comes complete with ultrasonic transmitter and receiver module. Technical Specifications Power Supply − +5V DC Quiescent Current − <2mA Working Current − 15mA Effectual Angle − <15° Ranging Distance − 2cm – 400 cm/1″ – 13ft Resolution − 0.3 cm Measuring Angle − 30 degree Components Required You will need the following components − 1 × Breadboard 1 × Arduino Uno R3 1 × ULTRASONIC Sensor (HC-SR04) Procedure Follow the circuit diagram and make the connections as shown in the image given be...

Getting Started with Arduino and IR Modules: An Easy Guide to Implementing Home Automation and Object Detection with Code

Getting Started with Arduino and IR Modules: An Easy Guide to Implementing Home Automation and Object Detection with Code: An  infrared proximity sensor or IR Sensor  is an electronic device that emits infrared lights to sense some aspect of the surroundings and can be employed to detect the motion of an object. As this is a passive sensor, it can only measure infrared radiation. This sensor is very common in the electronic industry and if you’ve ever tried to design an obstacle avoidance robot or any other proximity detection-based system, chances are you already know about this module, and if you don’t, then follow this article as here we will discuss everything about it. IR Sensor Pinout The IR sensor has a 3-pin connector that interfaces it to the outside world. The connections are as follows: VCC   is the power supply pin for the IR sensor which we connect to the 5V pin on the Arduino. OUT  pin is a 5V TTL logic output. LOW indicates no motion is detected; HIGH ...