Have you been to a WitBlox workshop? Not yet? Give it a try when the lockdown ends and you will understand why children are falling in love with the creativity of WitBlox mixed with technology and logical thinking. The best thing about our DIY Robotics startup is that they trigger the most active senses of children, one of them is the curiosity. From the day a child is born it is the curiosity that drives the little life to learn & explore everything within his or her reach. Children are like born scientists, they will try and use their senses to find out the answers to their curiosity. And when they see something operational or functioning on their own their excitement of gathering knowledge reaches to the highest level and when they find the answer out of their curiosity, we can consider it as the best form of education a child can have. Imagine the days when we used to see play cars which were controlled by a remote, we enjoyed playing with it but we never knew the logic happening behind its wireless movement. Today our children can build a similar car with Witblox. They are exposed to the ideas of how a simple combination of power, motor, sensor and nRF(near Radio Frequency) can work together and transform a car into a wireless device moving around. Not only that using WitBlox and simple logics children can create a vast combination of unique possibilities. Say for example this smart dust-bin by Manaswini. The simple idea of putting your hand in front of a sensor will open the top lid of the dust-bin and then it will automatically close after the use. Imagine a child growing up with such logical thinking & problem-solving attitude. Besides regular education, the future will always demand something extra. So let us prepare our children accordingly. And what better can it be if the learning process involves fun, innovation and happiness? That’s why the WitBlox makers are always falling in love with the idea of DIY robotics over & over again. So are you ready to try the magic of Witblox?
0 Comments
The need for home security alarm systems nowadays is a serious demand. As the number of crimes are increasing every day, there has to be something that will keep us safe. We are all aware of the high end security systems present in the market but they are not easily available to everyone. We therefore intend to provide a solution by constructing a cost efficient electronic system that has the capability of sensing the motion of the intruders and setting off the alarm along with sending a SMS alert to the user. The basic idea behind this project is that all the bodies generate some heat energy in the form of infrared which is invisible to human eyes. But, it can be detected by electronic motion sensor. The project involves the use of Arduino, motion sensor, buzzer, LCD display, SIM800 GSM module and a simple program. The sensor detect any motion in its permissible range and triggers the alarm. It will also send the signal to Arduino which processes the signal and set off the alarm along with detection message on display and also a SMS is sent to the user as soon as motion is detected. With this system we can easily set up a security alarm in our home for unwanted intruders. COMPONENTS REQUIRED · Arduino Uno · P.I.R Sensor Module · SIM800 GSM module · L.C.D(16 X 2) · 9V/12V Battery · 9V/12V Battery Clip · Casing Box · Piezo Buzzer · Breadboard · Some Jumper Wires · An USB Cable · A Computer WORKING This system is a basic motion activated alarm. It is built around an Arduino Microcontroller. It is connected to a GSM Module, a PIR motion sensor, a buzzer, a resistor, and a pair of external terminals. The whole system is battery powered so that it is easily portable. Once you have the code, you can connect all the external parts. The easiest way to do this is with a breadboard. This will let you make temporary connections to test everything out. Step 1: Connecting the P.I.R sensor to Arduino: 1. Connect Vcc pin of P.I.R sensor to positive terminal of Arduino (5V). 2. Connect Gnd pin of P.I.R sensor to any ground pin of Arduino. 3. Connect out pin of P.I.R sensor to Pin no. -7 of Arduino. Step 2: Connecting L.E.D and Piezo Buzzer To ArduinoConnecting L.E.D Connect Positive terminal (Longer Lead) Of L.E.D To Arduino Pin no. 13. Connect Negative terminal (Shorter Lead) Of L.E.D To Any Ground Pin. Connecting Piezo Buzzer Connect Positive terminal (Red Wire) Of Buzzer to Arduino Pin no. 8. Connect Negative terminal (Black Wire) Of Buzzer to Any Ground Pin. Step 3: Connecting L.C.D to Arduino: To wire your LCD screen to your Arduino, connect the following pins: LCD RS pin to digital pin 12 LCD Enable pin to digital pin 11 LCD D4 pin to digital pin 5 LCD D5 pin to digital pin 4 LCD D6 pin to digital pin 3 LCD D7 pin to digital pin 2 Additionally, wire a 10K pot to +5V and GND, with its wiper (output) to LCD screens VO pin (pin3). Step 4: Connecting GSM module to Arduino: Connect its Tx pin to Pin 9 of Arduino. Connect Rx to Pin 10 of Arduino. Vcc or Power Jack to +12 Volt. Make GND or Ground pin common to all other components and modules. Step 5 : Programming Arduino: 1. Download Arduino IDE 1.0.6 from https://www.arduino.cc/en/main/software. 2. Connect Your Arduino to your computer using USB Cable. 3. Open Arduino IDE, choose your correct board from Tools--Boards 4.Choose Your Correct Port from Tools--Serial Port 5. Copy the following sketch which appears in your Web Browser to your Arduino Sketch Page. 6. Click on Upload Icon or go to File—Upload
Step 6 : Drill Holes in the Housing: Next we need to drill a few holes in the housing so that we can mount all the parts. Start by using a ¼" hole in one end of the housing. This will be where we mount the buzzer. Then use a ¾" hole saw to drill a hole in the other side of the housing. This will be where we mount the motion sensor Step 7 : Glue the Motion Sensor and the Buzzer in Place Apply a small amount of hot glue around the motion sensor where it lines up with the hole in the housing. Then press the motion sensor into the hole. Apply more hot glue around the outside and hold it in place until the glue cools. Then apply a small amount of hot glue to the face of the buzzer. Align the hole in the buzzer with the hole in the housing and press it in place. Hold the buzzer in this position until the glue dries. The last thing that you need to do is connect the battery and close up the housing. ADVANTAGES
DISADVANTAGES
APPLICATIONS This type of motion sensing alarm system can be easily employable for security purposes at banks, various offices and even for sensitive establishments such as for military. We can easily set up this system for household purposes. The inbuilt SMS system is very essential factor for security purposes and for concerned authorities. APPENDIX Algorithm:
Project code: #include <SoftwareSerial.h> #include<LiquidCrystal.h> LiquidCrystal lcd(12, 11, 5, 4, 3, 2); SoftwareSerial mySerial(9, 10); int sensor=7; //The output of PIR sensor connected to pin 7 int push_switch=6; // push button switch connected to pin 6 int buzzer=8; // buzzer connected at pin 8 int sensor_value; //variable to hold read sensor value int sms_count=0; void setup() { pinMode(sensor,INPUT); // configuring pin 7 as Input pinMode(push_switch,INPUT); // configuring pin 6 as Input pinMode(buzzer,OUTPUT); // configuring pin 8 as OUTPUT mySerial.begin(9600); lcd.begin(16,2); delay(500); lcd.setCursor(2, 0); // Set LCD cursor position (column, row) lcd.print("GSM Security"); // Print text to LCD lcd.setCursor(5, 1); // Set LCD cursor position (column,row) lcd.print("System"); // Print text to LCD delay(4000); // wait 4s // Delay to read text lcd.clear(); // clear LCD display // Clear the display lcd.setCursor(2, 0); // Set LCD cursor position (column, row) lcd.print("Developed By"); // Print text to LCD lcd.setCursor(2, 1); // Set LCD cursor position (column, row) lcd.print("Suman Ssk Vinit"); // Print text to LCD delay(5000); // Delay to read text lcd.clear(); // Clear LCD lcd.setCursor(0, 0); lcd.print("Processing Data."); delay(3000); lcd.clear(); lcd.setCursor(3, 0); lcd.print("Waiting For"); lcd.setCursor(3, 1); lcd.print("Motion...."); } void loop() { Check_Burglar();// subroutine to check sensor status and activation of outputs Check_Reset(); // subroutine to check if alarm reset switch pressed or not } void Check_Burglar() {{sensor_value=digitalRead(sensor); // Reading sensor value from pin 7 if(sensor_value==HIGH) // Checking if PIR sensor sends a HIGH signal to Arduino { digitalWrite(buzzer,HIGH); // Activating the buzzer while(sms_count<3) //Number of SMS Alerts to be sent limited at 3 { SendTextMessage(); // Function to send AT Commands to GSM module } sensor_value=HIGH; lcd.setCursor(0,1); lcd.print("Intruder Alert! SMS sent"); }}} void Check_Reset() { if(digitalRead(push_switch==HIGH))// Checking if pushbutton was pressed { digitalWrite(buzzer,LOW); // turning OFF the buzzer lcd.setCursor(0,1); lcd.print("Alarm OFF!"); sms_count=0; // Reactivating the SMS Alert Facility }} void SendTextMessage() { mySerial.println("AT+CMGF=1"); //To send SMS in Text Mode delay(2000); mySerial.println("AT+CMGS=\"+919544xxxxxx\"\r"); // change to the phone no.to which sms is sent delay(2000); mySerial.println("Intruder detected and alarm initiated!");//the content of the message delay(200); mySerial.println((char)26);//the stopping character delay(5000); mySerial.println("AT+CMGS=\"+919847xxxxxx\"\r"); // change to the phone no.to which sms is sent delay(2000); mySerial.println("Intruder detected and alarm initiated!");//the content of the message delay(200); mySerial.println((char)26);//the message stopping character delay(5000); sms_count++; } Introduction We have designed an interesting and cheap home security alarm. This Gadget helps you to protect your house from thieves. In this project I am going to use an Arduino Uno R3 Board, P.I.R Sensor module, LCD and some other components. This Project can either powered with 9V Battery or with U.S.B of your computer. This is a basic motion-sensing alarm that detects when someone enters the area. When an intruder is detected, it activates a siren. Our body generates heat energy in the form of infrared which is invisible to human eyes. But it can be detected by electronic sensor. This type of sensor is made up of crystalline material that is Pyroelectric. In this project, we are using P.I.R. Motion Sensor Module as an infrared sensor that generates electric charge when exposed in heat and sends a signal to Arduino. According to level of the infrared in front of sensor, Arduino displays the status on L.C.D and start buzzing speaker and glows the L.E.D.A simple program is running on Arduino which checks sensor if anything is moved or new object has been detected. You can download the project report from the link below Circuit Diagram Components Required
Working This system is a basic motion activated alarm. It is built around an Arduino Microcontroller. It is connected to a PIR motion sensor, a buzzer, a resistor, and a pair of external terminals. The whole system is battery powered so that it is easily portable. Once you have the code, you can connect all the external parts. The easiest way to do this is with a breadboard. This will let you make temporary connections to test everything out. Step 1: Connecting the P.I.R sensor to Arduino.. 1. Connect Vcc pin of P.I.R sensor to positive terminal of Arduino (5V). 2. Connect Gnd pin of P.I.R sensor to any ground pin of Arduino. 3. Connect Out pin of P.I.R sensor to Pin no. -7 of Arduino. Step 2: Connecting L.E.D and Piezo Buzzer To Arduino.. Connecting L.E.D Connect Positive terminal (Longer Lead) Of L.E.D To Arduino Pin no. 13. Connect Negative terminal (Shorter Lead) Of L.E.D To Any Ground Pin. Connecting Piezo Buzzer Connect Positive terminal (Red Wire) Of Buzzer To Arduino Pin no. 10. Connect Negative terminal (Black Wire) Of Buzzer To Any Ground Pin. Step 3: Connecting L.C.D to Arduino To wire your LCD screen to your Arduino, connect the following pins: LCD RS pin to digital pin 12 LCD Enable pin to digital pin 11 LCD D4 pin to digital pin 5 LCD D5 pin to digital pin 4 LCD D6 pin to digital pin 3 LCD D7 pin to digital pin 2 Additionally, wire a 10K pot to +5V and GND, with it's wiper (output) to LCD screens VO pin (pin3). Step 4: Programming Arduino.. 1. Download Arduino IDE 1.0.6 from https://www.arduino.cc/en/main/software. 2. Connect Your Arduino to your computer using USB Cable. 3. Open Arduino IDE, choose your correct board from Tools--Boards 4.Choose Your Correct Port from Tools--Serial Port 6. Copy the following sketch which appears in your Web Browser to your Arduino Sketch Page. 7. Click On Upload Icon or Goto File—Upload Step 5: Drill Holes in the Housing Next we need to drill a few holes in the housing so that we can mount all the parts. Start by using a ¼" hole in one end of the housing. This will be where we mount the buzzer. Then use a ¾" hole saw to drill a hole in the other side of the housing. This will be where we mount the motion sensor Step 6: Glue the Motion Sensor and the Buzzer in Place Apply a small amount of hot glue around the motion sensor where it lines up with the hole in the housing. Then press the motion sensor into the hole. Apply more hot glue around the outside and hold it in place until the glue cools. Then apply a small amount of hot glue to the face of the buzzer. Align the hole in the buzzer with the hole in the housing and press it in place. Hold the buzzer in this position until the glue dries. Step 7: Close Up the Housing The last thing that you need to do is connect the battery and close up the housing. Algorithm
Project code //This Type Of Sensor Detects Motion And lows L.E.D And Start Buzzing,It Also Displays The That The "Motion is Detected" On An Lcd Screen #include <LiquidCrystal.h> int ledPin = 13; // choose the pin for the LED int inputPin = 7; // choose the input pin (for PIR sensor) int pirState = LOW; // we start, assuming no motion detected int val = 0; // variable for reading the pin status int pinSpeaker = 10; //Set up a speaker on a PWM pin (digital 9, 10, or 11) LiquidCrystal lcd(12, 11, 5, 4, 3, 2); // initialize the library with the numbers of the interface pins void setup() { pinMode(ledPin, OUTPUT); // declare LED as output pinMode(inputPin, INPUT); // declare sensor as input pinMode(pinSpeaker, OUTPUT); Serial.begin(9600); lcd.begin(16, 2); lcd.setCursor(2, 0); // Set LCD cursor position (column, row) lcd.print("P.I.R Motion"); // Print text to LCD lcd.setCursor(5, 1); // Set LCD cursor position (column,row) lcd.print("Sensor"); // Print text to LCD delay(4000); // wait 4s // Delay to read text lcd.clear(); // clear LCD display // Clear the display lcd.setCursor(2, 0); // Set LCD cursor position (column, row) lcd.print("Developed By"); // Print text to LCD lcd.setCursor(2, 1); // Set LCD cursor position (column, row) lcd.print("Zishan Ahmad"); // Print text to LCD delay(5000); // Delay to read text lcd.clear(); // Clear LCD lcd.setCursor(0, 0); lcd.print("Processing Data."); delay(3000); lcd.clear(); lcd.setCursor(3, 0); lcd.print("Waiting For"); lcd.setCursor(3, 1); lcd.print("Motion...."); } void loop(){ val = digitalRead(inputPin); // read input value if (val == HIGH) { // check if the input is HIGH digitalWrite(ledPin, HIGH); // turn LED ON playTone(300, 300); delay(150); if (pirState == LOW) { // we have just turned on Serial.println("Motion detected!"); lcd.clear() ; lcd.setCursor(0, 0); // Set LCD cursor position (column 0, row 0) lcd.print("Motion Detected!"); // We only want to print on the output change, not state pirState = HIGH; } } else { digitalWrite(ledPin, LOW); // turn LED OFF playTone(0, 0); delay(300); if (pirState == HIGH){ // we have just turned of Serial.println("Motion ended!"); lcd.clear() ; lcd.setCursor(3, 0); lcd.print("Waiting For"); lcd.setCursor(3, 1); lcd.print("Motion...."); // We only want to print on the output change, not state pirState = LOW; } } } // duration in mSecs, frequency in hertz void playTone(long duration, int freq) { duration *= 1000; int period = (1.0 / freq) * 100000; long elapsed_time = 0; while (elapsed_time < duration) { digitalWrite(pinSpeaker,HIGH); delayMicroseconds(period / 2); digitalWrite(pinSpeaker, LOW); delayMicroseconds(period / 2); elapsed_time += (period); } } You can download the project report from the link below
|
Archives
March 2022
Categories |