Thursday, May 6, 2021

HOME AUTOMATION SECURITY SYSTEM IN ENGLISH

 

HOME AUTOMATION SECURITY SYSTEM

 


Programme discription:

 In void setup  the input and output pins that we gonna use are declared .In this program  led pins 29(red led),10(green led),9(yellow led) are assigned as output.At initial state all  leds should  be in OFF state hence  all  leds are set to OFF state. Since we are using serial monitor for printing the information in order to print enable printing in serial monitor we need to declare serial.begin(115200) here 115200 represents the baud rate  of cc3200 launch pad ( an IoT microcontroller) used for  hardware implementation. It varies for each  launch pad model  hence we have be very careful in representing the baud rate of the launch pad.

In void loop the commands which are programmed to run repeatedly are declared here.We need to fetch the datas measured by the IR sensor for that we need analog pin because sensor will reads the physical signal which will be always in analog nature.In cc3200 launch pad  pin number 2,4,23,24 and 33 are in analog nature.In this programme I gonna use pin number 2 for reading analog input.In general if IR sensor detects any interference the sensor value will be less than 2800 else the sensor value will be at a range of 4500 . Hence we are using ‘ If ’ statement for the command followed by condition   sensor value < 2800.If the condition is true red led is programmed to switch ON for additional buzzer intimation buzzer’s positive terminal is connected to the pin number 29(red led pin) and  negative terminal is grounded .By doing so both the red led and buzzer will be made series connection and also “An unauthorised intrusion detected “ is made to displayed on serial monitor .Else in case condition is false green led is programmed to switch ON and “Safe home” is made to displayed on serial monitor. At the end we need to make a delay of minimum 100 ms because in order to monitor using serial monitoring by doing so we can able to monitor for every 100 ms interval.

  Hardware description

For uploading the program to the cc3200 launch pad we need to connect pin 2 of SOP and tck together .The Vcc and ground of the IR sensor are connected to launch pad’s  Vcc and ground . The  Output of the IR sensor is connected to P58(pin number 2).A buzzer is connected to launch pad by connecting positive terminal to P64(pin number 29) and negative terminal is connected to ground of the launch pad.

Video demonstration:

Youtube link:

 https://youtu.be/pYpjF8k1ddE

USD TO INR C++ PROGRAMMING

  NALLAMUTHU GOUNDER MAHALINGAM COLLEGE                                                 POLLACHI-642001                                     ...