Posts

Showing posts from December, 2023

Passive Infrared sensors

Image
  PIR is a device  which can detect sensor and infrared radiation that are emitted by any living beings(humans and animals), also due to this PIR are mostly used in house as a security. Hardware required : Arduino Uno Jumper Wires LED HC-SR501 Passive Infrared Sensor This PIR sensor consist of 3 pins (VCC, Ground pin , and Output pin in the middel) Here we will connect VCC of PIR to Arduino 5 volts. Likewise connect ground to ground pin and connect output pin of PIR to digital pin no.3 of Arduino. Lastly place LED positive leg  to  pin 13 and negative leg to  GND of Arduino. Code /the time we give the sensor to calibrate (10-60 secs according to the datasheet) int calibrationTime = 30; //the time when the sensor outputs a low impulse long unsigned int lowIn; //the amount of milliseconds the sensor has to be low //before we assume all motion has stopped long unsigned int pause = 5000; boolean lockLow = true; boolean takeLowTime; int pirP...

Quantum Learning Companion

                                              Quantum Learning Companion In the not so distant future, quantum computing became an important part of curriculum and each student received Quantum Learning Companion, a type of device that uses quantum computing to enhance learning and personal development. Max and Emma two high school friend who were having difficulty in adapting the new technology . Max was an intellectual student always being curious of learning new gadgets. Max who had been using Quantum Learning Companion was enjoying its use in his learning while Emma was more concerned and tensed of the Quantum Learning Companion. She was scared of using it as she thought it might hamper her way of learning. On a sunny day, Max and Emma were sitting on the park, Emma worriedly sighing said she still is afraid of using the this new device as she thought it might...

Arduino PIR sensor LED and Buzzer

Image
  Hardware Required: Arduino UNO PIR Sensor LED Buzzer 220ohm Resistor Breadboard Jumper Wire .    Connect LED to breadboard ( negative pin of LED is connected to negative pin in breadboard) .    Connect 220ohm resistor to LED positive terminal        Connect buzzer to breadboard       Connect LED and buzzer to arduino       Connect LED positive pin to arduino digital pin 5       Connect buzzer positive pin to arduino digital pin 6       Connect GND pin of arduino to GND side  of breadboard       Connect 5v of arduino to VCC of breadboard       Connect PIR Sensor to arduino      Connect GND pin of PIR to GND side of breadboard      Connect Output pin of PIR to digital pin 7 of arduino     Connect VCC pin of PIR  to 5v pin of breadboard //the time we give the sensor to calibrate (10-60 secs according to th...