This shows you how to create an intruder alert that sends you text message alerts when motion is detected. The range sensor senses motion and tells your Bolt device to send the text. So you can leave the intruder detector at home, connected to your network, and still receive the SMS alerts no matter where you are.
Steps or Procedures are to be followed to connect Bolt Wifi module:1) Get a 5V 1A mobile charger which has a micro-usb port and is usually used to charge your Android mobile. You can also use your laptop to power on the Bolt device
2) Now that you have all the components, let's start with downloading the Bolt IoT mobile App and installing it in the mobile phone
3) Download the ‘Bolt IoT’ App for Android or iOS
4) You will need to create an account on the Bolt Cloud to control the Bolt device.
5) After creating the Bolt cloud account. You will see your Bolt device with status as 'ONLINE' on your account on the dashboard
6) The output pin of PIR motion sensor should be connected with 4th GPIO pin and hence VCC of PIR sensor with VCC of bolt and GND(ground) of PIR sensor with GND pin of bolt.
7) Connect the shorter pin(-ve) to the GND of bolt device and longer(+ve) pin to 3rd GPIO pin of bolt device
8) Connect the shorter pin(-ve) to the GND of bolt device and longer(+ve) pin to 0th GPIO pin of bolt device.
Here the Python Script checks the output of PIR Sensor sent to the Bolt device from the Bolt Cloud for every 5 sec and if The PIR Sensor outputs 1 then it switches on The LED and BUZZER and put them on for 5 sec and during that time it requests the Twillio API to send message to your phone number and requests the MailGun API to send notification that some intruder entered your room to your E-mail.
Message:
Email:
That'sit!!now its all set.Saveyour python code
Run it...(Before Running it you have to switch on the BOLT wifi module)
Place your hand to set buzzer on and led flashing on. If you remove your hand, led no longer flashes but buzzer keeps on buzzing until you turn it off.
Comments